Skip to content

Commit

Permalink
move plotter helper class to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Nov 21, 2023
1 parent ec8987b commit 3269c32
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 28 deletions.
5 changes: 1 addition & 4 deletions examples/01_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@

# Plot the trajectory
# from pathlib import Path
# import sys
# project_path = Path(__file__).parent.parent.absolute()
# sys.path.append(str(project_path / 'test')) # For plotter.py

# from plotter import Plotter

# project_path = Path(__file__).parent.parent.absolute()
# Plotter.plot_trajectory(project_path / 'examples' / '01_trajectory.pdf', otg, inp, out_list, plot_jerk=False)
5 changes: 1 addition & 4 deletions examples/03_waypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@

# Plot the trajectory
# from pathlib import Path
# import sys
# project_path = Path(__file__).parent.parent.absolute()
# sys.path.append(str(project_path / 'test')) # For plotter.py

# from plotter import Plotter

# project_path = Path(__file__).parent.parent.absolute()
# Plotter.plot_trajectory(project_path / 'examples' / '03_trajectory.pdf', otg, inp, out_list, plot_jerk=False)
5 changes: 1 addition & 4 deletions examples/04_waypoints_online.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@

# Plot the trajectory
# from pathlib import Path
# import sys
# project_path = Path(__file__).parent.parent.absolute()
# sys.path.append(str(project_path / 'test')) # For plotter.py

# from plotter import Plotter

# project_path = Path(__file__).parent.parent.absolute()
# Plotter.plot_trajectory(project_path / 'examples' / '04_trajectory.pdf', otg, inp, out_list, plot_jerk=False)
5 changes: 1 addition & 4 deletions examples/05_velocity.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@

# Plot the trajectory
# from pathlib import Path
# import sys
# project_path = Path(__file__).parent.parent.absolute()
# sys.path.append(str(project_path / 'test')) # For plotter.py

# from plotter import Plotter

# project_path = Path(__file__).parent.parent.absolute()
# Plotter.plot_trajectory(project_path / 'examples' / '05_trajectory.pdf', otg, inp, out_list, plot_jerk=False)
5 changes: 1 addition & 4 deletions examples/06_stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@

# Plot the trajectory
# from pathlib import Path
# import sys
# project_path = Path(__file__).parent.parent.absolute()
# sys.path.append(str(project_path / 'test')) # For plotter.py

# from plotter import Plotter

# project_path = Path(__file__).parent.parent.absolute()
# Plotter.plot_trajectory(project_path / 'examples' / '06_trajectory.pdf', otg, inp, out_list, plot_jerk=False, time_offsets=time_offsets)
5 changes: 1 addition & 4 deletions examples/07_minimum_duration.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@

# Plot the trajectory
# from pathlib import Path
# import sys
# project_path = Path(__file__).parent.parent.absolute()
# sys.path.append(str(project_path / 'test')) # For plotter.py

# from plotter import Plotter

# project_path = Path(__file__).parent.parent.absolute()
# Plotter.plot_trajectory(project_path / 'examples' / '07_trajectory.pdf', otg, inp, out_list, plot_jerk=False)
5 changes: 1 addition & 4 deletions examples/08_per_section_minimum_duration.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@

# Plot the trajectory
# from pathlib import Path
# import sys
# project_path = Path(__file__).parent.parent.absolute()
# sys.path.append(str(project_path / 'test')) # For plotter.py

# from plotter import Plotter

# project_path = Path(__file__).parent.parent.absolute()
# Plotter.plot_trajectory(project_path / 'examples' / '08_trajectory.pdf', otg, inp, out_list, plot_jerk=False)
File renamed without changes.

0 comments on commit 3269c32

Please sign in to comment.