Skip to content

Commit acff3d4

Browse files
committed
add more noise + fix rover odometry plugin
1 parent 5998e47 commit acff3d4

5 files changed

Lines changed: 36 additions & 28 deletions

File tree

CustomRobots/rover_4wd_description/urdf/rover_4wd_noisy_high.urdf

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,20 @@
205205
</plugin>
206206

207207
<plugin filename="libNoisyOdometryPlugin.so" name="custom_plugins::NoisyOdometryPlugin">
208-
<ros_topic>/odom</ros_topic>
209-
<gz_cmd_vel_topic>/cmd_vel</gz_cmd_vel_topic>
208+
<ros_topic>/odom_noisy</ros_topic>
210209
<frame_id>odom</frame_id>
211210
<child_frame_id>base_link</child_frame_id>
212-
<alpha1>0.005</alpha1>
213-
<alpha2>0.005</alpha2>
214-
<alpha3>0.003</alpha3>
215-
<alpha4>0.003</alpha4>
216-
<slip_factor>0.15</slip_factor>
217-
<lateral_slip_ratio>0.25</lateral_slip_ratio>
211+
212+
<!-- must match the DiffDrive plugin values above — one joint per side -->
213+
<left_joint>fl_wheel_to_chassis</left_joint>
214+
<right_joint>fr_wheel_to_chassis</right_joint>
215+
<wheel_separation>0.24</wheel_separation>
216+
<wheel_radius>0.122</wheel_radius>
217+
218+
<alpha1>1.5</alpha1>
219+
<alpha2>1.5</alpha2>
220+
<alpha3>0.8</alpha3>
221+
<alpha4>0.8</alpha4>
218222
</plugin>
219223
</gazebo>
220224

CustomRobots/rover_4wd_description/urdf/rover_4wd_noisy_low.urdf

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,20 @@
205205
</plugin>
206206

207207
<plugin filename="libNoisyOdometryPlugin.so" name="custom_plugins::NoisyOdometryPlugin">
208-
<ros_topic>/odom</ros_topic>
209-
<gz_cmd_vel_topic>/cmd_vel</gz_cmd_vel_topic>
208+
<ros_topic>/odom_noisy</ros_topic>
210209
<frame_id>odom</frame_id>
211210
<child_frame_id>base_link</child_frame_id>
212-
<alpha1>0.0005</alpha1>
213-
<alpha2>0.0005</alpha2>
214-
<alpha3>0.0002</alpha3>
215-
<alpha4>0.0002</alpha4>
216-
<slip_factor>0.05</slip_factor>
217-
<lateral_slip_ratio>0.15</lateral_slip_ratio>
211+
212+
<!-- must match the DiffDrive plugin values above — one joint per side -->
213+
<left_joint>fl_wheel_to_chassis</left_joint>
214+
<right_joint>fr_wheel_to_chassis</right_joint>
215+
<wheel_separation>0.24</wheel_separation>
216+
<wheel_radius>0.122</wheel_radius>
217+
218+
<alpha1>0.1</alpha1>
219+
<alpha2>0.1</alpha2>
220+
<alpha3>0.05</alpha3>
221+
<alpha4>0.05</alpha4>
218222
</plugin>
219223
</gazebo>
220224

CustomRobots/turtlebot3/models/turtlebot3_noisy_high/model.sdf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,10 @@
567567
<wheel_radius>0.033</wheel_radius>
568568
<wheel_separation>0.287</wheel_separation>
569569

570-
<alpha1>0.5</alpha1>
571-
<alpha2>0.5</alpha2>
572-
<alpha3>0.3</alpha3>
573-
<alpha4>0.3</alpha4>
570+
<alpha1>1.5</alpha1>
571+
<alpha2>1.5</alpha2>
572+
<alpha3>0.8</alpha3>
573+
<alpha4>0.8</alpha4>
574574
</plugin>
575575

576576
</model>

CustomRobots/turtlebot3/models/turtlebot3_noisy_low/model.sdf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,10 @@
567567
<wheel_radius>0.033</wheel_radius>
568568
<wheel_separation>0.287</wheel_separation>
569569

570-
<alpha1>0.05</alpha1>
571-
<alpha2>0.05</alpha2>
572-
<alpha3>0.02</alpha3>
573-
<alpha4>0.02</alpha4>
570+
<alpha1>0.1</alpha1>
571+
<alpha2>0.1</alpha2>
572+
<alpha3>0.05</alpha3>
573+
<alpha4>0.05</alpha4>
574574
</plugin>
575575

576576
</model>

CustomRobots/turtlebot3/models/turtlebot3_noisy_med/model.sdf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,10 @@
567567
<wheel_radius>0.033</wheel_radius>
568568
<wheel_separation>0.287</wheel_separation>
569569

570-
<alpha1>0.2</alpha1>
571-
<alpha2>0.2</alpha2>
572-
<alpha3>0.1</alpha3>
573-
<alpha4>0.1</alpha4>
570+
<alpha1>0.5</alpha1>
571+
<alpha2>0.5</alpha2>
572+
<alpha3>0.25</alpha3>
573+
<alpha4>0.25</alpha4>
574574
</plugin>
575575

576576
</model>

0 commit comments

Comments
 (0)