diff --git a/examples/03_waypoints.py b/examples/03_waypoints.py index d1448c8f..15dec61d 100644 --- a/examples/03_waypoints.py +++ b/examples/03_waypoints.py @@ -30,7 +30,6 @@ inp.max_acceleration = [3, 2, 2] inp.max_jerk = [6, 10, 20] - print('\t'.join(['t'] + [str(i) for i in range(otg.degrees_of_freedom)])) # Generate the trajectory within the control loop diff --git a/examples/04_waypoints_online.py b/examples/04_waypoints_online.py index 6e68a18d..04abcbe2 100644 --- a/examples/04_waypoints_online.py +++ b/examples/04_waypoints_online.py @@ -32,7 +32,6 @@ inp.interrupt_calculation_duration = 500 # [µs] - print('\t'.join(['t'] + [str(i) for i in range(otg.degrees_of_freedom)])) # Generate the trajectory within the control loop diff --git a/examples/05_velocity.py b/examples/05_velocity.py index 6f10c045..9552fbdd 100644 --- a/examples/05_velocity.py +++ b/examples/05_velocity.py @@ -21,7 +21,6 @@ inp.max_acceleration = [3.0, 2.0, 1.0] inp.max_jerk = [6.0, 6.0, 4.0] - print('\t'.join(['t'] + [str(i) for i in range(otg.degrees_of_freedom)])) # Generate the trajectory within the control loop diff --git a/examples/06_stop.py b/examples/06_stop.py index b11e3465..046f223c 100644 --- a/examples/06_stop.py +++ b/examples/06_stop.py @@ -21,7 +21,6 @@ inp.max_acceleration = [3.0, 2.0, 1.0] inp.max_jerk = [4.0, 3.0, 2.0] - print('\t'.join(['t'] + [str(i) for i in range(otg.degrees_of_freedom)])) # Generate the trajectory within the control loop diff --git a/examples/07_minimum_duration.py b/examples/07_minimum_duration.py index e254c9fc..789dd115 100644 --- a/examples/07_minimum_duration.py +++ b/examples/07_minimum_duration.py @@ -24,7 +24,6 @@ # Set minimum duration (equals the trajectory duration when target velocity and acceleration are zero) inp.minimum_duration = 5.0 - print('\t'.join(['t'] + [str(i) for i in range(otg.degrees_of_freedom)])) # Generate the trajectory within the control loop diff --git a/examples/08_per_section_minimum_duration.py b/examples/08_per_section_minimum_duration.py index 42a44e8a..8eeb0364 100644 --- a/examples/08_per_section_minimum_duration.py +++ b/examples/08_per_section_minimum_duration.py @@ -35,7 +35,6 @@ # Define a minimum duration per section of the trajectory (number waypoints + 1) inp.per_section_minimum_duration = [0, 2.0, 0.0, 1.0, 0.0, 2.0, 0] - print('\t'.join(['t'] + [str(i) for i in range(otg.degrees_of_freedom)])) # Generate the trajectory within the control loop diff --git a/examples/14_tracking.py b/examples/14_tracking.py index 9eda4a49..952824f6 100644 --- a/examples/14_tracking.py +++ b/examples/14_tracking.py @@ -14,6 +14,7 @@ def model_ramp(t, ramp_vel=0.5, ramp_pos=1.0): target.acceleration = [0.0] return target + def model_constant_acceleration(t, ramp_acc=0.05): target = TargetState(1) target.position = [t * t * ramp_acc] @@ -21,6 +22,7 @@ def model_constant_acceleration(t, ramp_acc=0.05): target.acceleration = [ramp_acc] return target + def model_sinus(t, ramp_vel=0.4): target = TargetState(1) target.position = [sin(ramp_vel * t)] @@ -67,7 +69,6 @@ def model_sinus(t, ramp_vel=0.4): target_list.append([target_state.position, target_state.velocity, target_state.acceleration]) follow_list.append([out.new_position, out.new_velocity, out.new_acceleration]) - # Plot the trajectory # from pathlib import Path # project_path = Path(__file__).parent.parent.absolute() diff --git a/pyproject.toml b/pyproject.toml index a993f399..4668b057 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,9 +38,9 @@ CMAKE_POSITION_INDEPENDENT_CODE = "ON" [tool.ruff] -select = ["A", "COM", "E", "F", "G", "N", "PIE", "PTH", "PYI", "RSE", "RET", "SIM", "TCH", "W", "Q", "E201", "E202", "E203"] line-length = 160 +lint.select = ["A", "COM", "E", "F", "G", "N", "PIE", "PTH", "PYI", "RSE", "RET", "SIM", "TCH", "W", "Q"] -[tool.ruff.flake8-quotes] +[tool.ruff.lint.flake8-quotes] inline-quotes = "single" multiline-quotes = "single"