Robotics StackExchange | Archived questions

file 'turtlebot3 obstacle detection' was not found in the share directory of package 'turtlebot3 example'

I did everything step by step , but still have this problem. I also reinstall again and again,still not see the file turtlebot3 obstacle_detection in the directory. Please help me to fix the problem,thank you.

Asked by ckt on 2021-01-20 03:23:33 UTC

Comments

Answers

Can you tell us what steps did you do? Can you explain to us more clear since we couldn't see what you did. Be sure to add details!

Asked by kak13 on 2021-03-12 07:41:46 UTC

Comments

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

Asked by rodrigo55 on 2021-03-26 04:25:45 UTC

Comments