Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to ROS 2 Jazzy and make TurtleBot naming generic #52

Merged
merged 11 commits into from
Dec 14, 2024
Merged

Conversation

sea-bass
Copy link
Owner

@sea-bass sea-bass commented Dec 11, 2024

This PR upgrades to ROS 2 Jazzy and replaces most mentions of TurtleBot3 / tb3 with generic TurtleBot / tb

We needed #51 merged in first, since Gazebo classic is not in this version of ROS 2.

@sea-bass sea-bass mentioned this pull request Dec 11, 2024
2 tasks
@sea-bass sea-bass changed the title Use ROS 2 Jazzy by default Update to ROS 2 Jazzy Dec 11, 2024
@sea-bass sea-bass force-pushed the jazzy-support branch 3 times, most recently from 6d43f18 to d4b795b Compare December 14, 2024 00:50
@sea-bass sea-bass marked this pull request as ready for review December 14, 2024 16:15
@sea-bass sea-bass changed the title Update to ROS 2 Jazzy Update to ROS 2 Jazzy and make TurtleBot naming generic Dec 14, 2024
@sea-bass
Copy link
Owner Author

sea-bass commented Dec 14, 2024

@elsayedelsheikh This was working until I renamed all the tb3_ packages to just tb_ ... do you by any chance know what it could be?

I'm basically getting a disconnected TF tree in the Nav2 setup, but I can't figure out what is misconfigured.


EDIT: ... never mind, I did a clean rebuild and it works now. Could you review regardless?

@elsayedelsheikh
Copy link
Contributor

elsayedelsheikh commented Dec 14, 2024

So far so good, I think turtlebot 4 is spawned with turtlebot3_gazebo_bridge so this line needs to be updated TURTLEBOT3_MODEL -> TURTLEBOT_MODEL

turtlebot_model_os_value = os.getenv("TURTLEBOT3_MODEL", "3")

And if the default is turtlebot 3, this one needs to be updated as well turtlebot4_bridge.yaml -> turtlebot3_bridge.yaml
default_value=os.path.join(bringup_dir, "configs", "turtlebot4_bridge.yaml"),

EDIT: Maybe this isn't the best practice (TURTLEBOT_MODEL is read twice)

  • tb_world.launch.py reads TURTLEBOT_MODEL to set the bridge config file and passed to turtlebot_spawner.launch.py as argument
  • turtlebot_spawner.launch.py has access as well to choose the suitable way either xacro or robot_description topic to spawn the robot

@sea-bass
Copy link
Owner Author

Thanks @elsayedelsheikh -- good catch!

I just made those fixes and was able to run the TB3 and TB4 examples.

Might merge this, and then we can make other "nice to have" fixes as we find time.

@sea-bass sea-bass merged commit 3f566d7 into main Dec 14, 2024
2 checks passed
@sea-bass sea-bass deleted the jazzy-support branch December 14, 2024 18:16
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.

2 participants