Skip to content

Kobuki simulation ros2 humble - #47

Open
Juancams wants to merge 19 commits into
kobuki-base:develfrom
Juancams:humble-devel
Open

Kobuki simulation ros2 humble#47
Juancams wants to merge 19 commits into
kobuki-base:develfrom
Juancams:humble-devel

Conversation

@Juancams

Copy link
Copy Markdown

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.

YuZhong-Chen added a commit to YuZhong-Chen/ros2-essentials that referenced this pull request Nov 15, 2023
YuZhong-Chen added a commit to YuZhong-Chen/ros2-essentials that referenced this pull request Nov 15, 2023
Juancams and others added 5 commits January 19, 2024 11:07
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
@sabrinaacardoso

Copy link
Copy Markdown

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.
Do you have any idea how I can solve this?

@Juancams

Copy link
Copy Markdown
Author

Hello good,

Sorry for answering so late.
I know about that error, but I haven't been able to find the solution. Apparently, in the transform tree everything is linked, just like in the urdf you have base_footprint linked to base_link, but for some reason it is not.

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.

@corot

corot commented Sep 19, 2025

Copy link
Copy Markdown
Contributor

Hi, @Juancams, @sabrinaacardoso, are you running the TB2 on ROS 2?
If so, which repos are you using? and on which ROS 2 disto?
For kobuki base devel branch is for ROS 2, but not for turtlebot. The closest I saw is https://github.com/ros2/turtlebot2_demo, but it's now archived
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants