Package 'turtlebot3_gazebo' not found:

asked 2021-12-30 04:42:21 -0500

rookiee gravatar image

I fellow this toturial in my ubuntu20.04 and use foxy. [https://emanual.robotis.com/docs/en/p...]

But when i run

ros2 launch turtlebot3_gazebo empty_world.launch.py

I get

Package 'turtlebot3_gazebo' not found: "package 'turtlebot3_gazebo' not found, searching: ['/opt/ros/foxy']"

edit retag flag offensive close merge delete

Comments

Have you sourced turtlebot3?

osilva gravatar image osilva  ( 2021-12-30 06:27:23 -0500 )edit

I have already run this code

echo 'export ROS_DOMAIN_ID=30 #TURTLEBOT3' >> ~/.bashrc source ~/.bashrc

I don't know if it is source turtlebot3. But I find a stupid method: First:

find . -iname *.bash

Then, source all the result. It's work! But it's looks so stupid.

rookiee gravatar image rookiee  ( 2021-12-30 06:50:12 -0500 )edit

Sourcing allows to work in multiple workspaces. This is necessary when working in multiple projects or sometimes even between ROS versions.

osilva gravatar image osilva  ( 2021-12-30 07:11:33 -0500 )edit

Suggest you go over the beginner’s tutorials: https://docs.ros.org/en/foxy/Tutorial...

osilva gravatar image osilva  ( 2021-12-30 07:12:58 -0500 )edit

Ok, thanks for your reply.

rookiee gravatar image rookiee  ( 2021-12-30 07:33:49 -0500 )edit