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

new package not created properly on Raspbian

asked 2018-05-18 17:03:58 -0600

hz gravatar image

I'm trying to get ROS setup on Raspberry Pi 3 with Raspbian. I've followed this tutorial to get Kinetic setup, and everything went well. http://wiki.ros.org/ROSberryPi/Instal...

I'm trying to setup a custom package with publishers and subscribers from scratch, by following this tutorial: http://wiki.ros.org/ROS/Tutorials/Wri...

Based on my understanding I have to use catkin_make_isolated instead of the regular catkin_make when compiling the package, so that's the only line of command that I did differently:

sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic

I've yet to find a way to only compile my package, so for now it take a very very long time. Now when I get to the point where I call:

 rosrun beginner_tutorials talker

I get the error "[rosrun] Couldn't find executable named talker". All my searches online seems to suggest something to do with catkin_make, but none of them seems to work for Raspbian. Any ideas on why it didn't work? Does it have something to do with wstool_merge?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-05-18 22:06:01 -0600

hz gravatar image

Okay I have figured it out after a bit more digging on the internet. I will answer my own question.

First of all, use catkin_make -DCATKIN_WHITELIST_PACKAGES="package" to make only a single package.

Secondly, the main problem lies with the first command of the "Writing a Simple Publisher and Subscriber (C++)" tutorial. On the raspberry pi, roscd beginner_tutorials would bring me to the /opt/ros/kinetic/share/beginner_tutorials folder; however, I needed to be in the /ros_catkin_ws/src/beginner_tutorials folder when creating the publisher and subscriber.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-05-18 17:03:58 -0600

Seen: 188 times

Last updated: May 18 '18