ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

catkin_ws in raspberry pi

asked 2017-12-07 03:28:17 -0500

Hunter gravatar image

I have installed raspbian (stretch) and ros indigo in a raspberry pi 1. I followed the document from http://wiki.ros.org/ROSberryPi/Instal... . Different from my ROS in Ubuntu, there are a lot of files and folders in ros_catkin_ws. Now I want to create a new package in ras pi. I used the common way that I catkin_create_pkg a package in ros_catkin_ws/src. After that, however, I cannot find this package through roscd or rospack find. Also, it takes a lot of time to catkin_make the ros_catkin_ws. I think my way of using ROS on ras pi is wrong. Could anyone tell me how to solve these problems.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-12-07 04:31:48 -0500

l4ncelot gravatar image

The right way to do this is to create your own catkin package outside workspace where the whole ROS was compiled. Then you have to source your new workspace adding e.g. source ~/my_package/devel/setup.bash to your .bashrc file. If ROS still can't see your package try typing rospack profile command and it should find it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-12-07 03:28:17 -0500

Seen: 328 times

Last updated: Dec 07 '17