Skip to content

Commit 12d2d8e

Browse files
Update limits
1 parent cdc8736 commit 12d2d8e

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

gz_ros2_control_demos/config/tricycle_drive_controller.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ tricycle_controller:
1717
traction_wheels_radius: 0.3 # Radius of front wheel
1818
wheelbase: 1.7 # Distance between center of back wheels and front wheel
1919

20+
# Rate Limiting
21+
linear:
22+
x:
23+
max_acceleration: 5.0
24+
max_deceleration: -8.0
25+
max_jerk: 1000.0
26+
angular:
27+
z:
28+
max_velocity: 1.0
29+
max_acceleration: 5.0
30+
max_deceleration: -8.0
31+
max_jerk: 1000.0
32+
2033
# Odometry
2134
odom_frame_id: odom
2235
base_frame_id: base_link
@@ -30,3 +43,6 @@ tricycle_controller:
3043

3144
# cmd_vel input
3245
reference_timeout: 0.5 # In seconds. Timeout to stop if no cmd_vel is received
46+
47+
# debug
48+
publish_limited_velocity: true

gz_ros2_control_demos/urdf/test_tricycle_drive.xacro.urdf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
<parent link="chassis" />
122122
<child link="steering_link" />
123123
<axis xyz="0 0 1" />
124+
<limit effort="100" velocity="1" lower="-1.57" upper="1.57" />
124125
</joint>
125126

126127
<!-- traction wheel link -->
@@ -148,6 +149,7 @@
148149
<child link="wheel_front_link" />
149150
<origin xyz="0 0 0" rpy="-1.57 1.57 0" />
150151
<axis xyz="0 0 1" />
152+
<limit effort="100" velocity="1"/>
151153
</joint>
152154

153155
<ros2_control name="GazeboSystem" type="system">

0 commit comments

Comments
 (0)