Skip to content

Commit

Permalink
Added base_footprint tf
Browse files Browse the repository at this point in the history
  • Loading branch information
exMachina316 authored and D-1shu committed May 27, 2024
1 parent 23075b7 commit 0916770
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion launch/bcr_bot_gz_spawn.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def generate_launch_description():
"--pitch", "0.0",
"--roll", "0.0",
"--frame-id", "kinect_camera",
"--child-frame-id", "bcr_bot/base_link/kinect_camera"]
"--child-frame-id", "bcr_bot/base_footprint/kinect_camera"]
)

return LaunchDescription([
Expand Down
7 changes: 7 additions & 0 deletions urdf/bcr_bot.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,16 @@
</xacro:if>

<!-- ................................ BASE LINK .................................. -->
<link name="base_footprint"/>

<link name="base_link"/>

<joint name="base_joint" type="fixed">
<parent link="base_footprint"/>
<child link="base_link"/>
<origin xyz="0.0 0 ${chassis_height/2 + traction_wheel_radius}" rpy="0 0 0.0" />
</joint>

<link name="chassis_link">

<collision>
Expand Down
4 changes: 2 additions & 2 deletions urdf/gazebo.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<right_joint>middle_right_wheel_joint</right_joint>
<wheel_separation>${traction_track_width+traction_wheel_width-0.01}</wheel_separation>
<wheel_diameter>${2*traction_wheel_radius+0.01}</wheel_diameter>
<robot_base_frame>base_link</robot_base_frame>
<robot_base_frame>base_footprint</robot_base_frame>
<max_wheel_torque>${traction_max_wheel_torque}</max_wheel_torque>
<command_topic>cmd_vel</command_topic>
<odometry_topic>$(arg wheel_odom_topic)</odometry_topic>
Expand Down Expand Up @@ -66,7 +66,7 @@
</ros>
<always_on>true</always_on>
<update_rate>30.0</update_rate>
<body_name>base_link</body_name>
<body_name>base_footprint</body_name>
<gaussian_noise>0.00</gaussian_noise>
<frame_name>$(arg ground_truth_frame)</frame_name>
</plugin>
Expand Down
4 changes: 2 additions & 2 deletions urdf/gz.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<tf_topic>/tf</tf_topic>
</xacro:if>
<frame_id>odom</frame_id>
<child_frame_id>base_link</child_frame_id>
<child_frame_id>base_footprint</child_frame_id>
</plugin>
</gazebo>

Expand All @@ -39,7 +39,7 @@
<plugin filename="libignition-gazebo6-odometry-publisher-system"
name="ignition::gazebo::systems::OdometryPublisher">
<odom_frame>odom</odom_frame>
<robot_base_frame>base_link</robot_base_frame>
<robot_base_frame>base_footprint</robot_base_frame>
<odom_topic>$(arg wheel_odom_topic)</odom_topic>
<tf_topic>/tf</tf_topic>
<dimensions>2</dimensions>
Expand Down

0 comments on commit 0916770

Please sign in to comment.