Robotics StackExchange | Archived questions

new package not created properly on Raspbian

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/Installing%20ROS%20Kinetic%20on%20the%20Raspberry%20Pi

I'm trying to setup a custom package with publishers and subscribers from scratch, by following this tutorial: http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29

Based on my understanding I have to use catkinmakeisolated 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 catkinmake, but none of them seems to work for Raspbian. Any ideas on why it didn't work? Does it have something to do with wstoolmerge?

Asked by hz on 2018-05-18 17:03:58 UTC

Comments

Answers

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.

Asked by hz on 2018-05-18 22:06:01 UTC

Comments