ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi,
I'm assuming you are trying to get the turtlebot3 repository from ROBOTIS to work. I see that there is a node called turtlebot3_obstacle_detection
inside the turtlebot3_example
package. First make sure you clone the correct repositories:
git clone -b dashing-devel https://github.com/ROBOTIS-GIT/turtlebot3
git clone -b dashing-devel https://github.com/ROBOTIS-GIT/turtlebot3_msgs
git clone -b dashing-devel https://github.com/ROBOTIS-GIT/turtlebot3_simulations
Once you have them cloned on your /src
folder inside your workspace, compile and source your environment with
colcon build
. install/setup.bash
Once it's compiled, you can try launching the node instead of the launch file (sometimes, if a public repository indicates that is devel
, then it might have things that are not working correctly yet):
ros2 run turtlebot3_example turtlebot_obstacle_detection
And that should run the node correctly. I also made this video that explains what I wrote above if you are interested:
https://www.youtube.com/watch?v=or-BpfA1lnM&ab_channel=TheConstruct