Kobuki simulation ros2 humble - #47
Conversation
Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
Fix Xacros with real tags
|
Hello, I think you can help me. I'm using the kobuki_node along with the kobuki_description in ROS Humble to visualize the robot's movement in Rviz. My robot is a Turtlebot2i, so I created a specific package with the URDF of the robot's structure and used the URDF of the Kobuki itself for the base. When I open Rviz, I can only see the robot moving if the frame is set to odom, but I want it fixed on base_link. In the TF tree, the order is odom -> base_footprint -> base_link, and even so, it only moves in odom. |
|
Hello good, Sorry for answering so late. The patch to make it work is to directly publish the transform. I do it in the following way in my simulation launcher: tf_footprint2base_cmd = Node(
package='tf2_ros',
executable='static_transform_publisher',
output='screen',
arguments=[
'0.0', '0.0', '0.001',
'0.0', '0.0', '0.0',
'1.0', 'base_link', 'base_footprint'
],
)I hope this works for you too. |
|
Hi, @Juancams, @sabrinaacardoso, are you running the TB2 on ROS 2? |
Good,
I have modified the urdfs and created a launcher so that you can spawn the kobuki in ros2 humble.
please someone take a look.
Ty.