PDA

View Full Version : ROS Beginner Tutorials - stuck @ rosmsg compile step



perigalacticon
06-06-2016, 05:50 PM
Hello,

I am a huge noob (the noobyness is great with this one) and I got stuck and I was wondering if someone might help me with something that appears to be a simple step in the Ros Beginner tutorials. http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv

In the section: 10. "Creating a ROS msg and srv" I ran the command
rosmsg show beginner_tutorials/Num
after compiling with
catkin_make install. It's printing the error:

Unable to load msg [beginner_tutorials/Num]: Cannot locate message [Num]: unknown package beginner_tutorials on search path [{'rosconsole}: ['/opt/ros/kinetic/share/rosconsole/msg'], ...

I get the same error when trying to show the service AddTwoInts. I reviewed the CMakeLists and package.xml files and I don't see anything wrong. Did anyone else have a problem here? I haven't had any other errors yet in the tutorials. This is my first experience with compiling and using make commands.

I'd like to upgrade my awesome Creeper http://letsmakerobots.com/node/47466 to ROS so he can chase you down and blow up or dance to the music but I need to get through the tuts first !

Thanks,
Perigalacticon

KevinO
06-06-2016, 06:00 PM
Ok first off the Creeper is cool. My son would love it.

That tutorial is dependent on previous tutorials, are you doing them all in order?


Other possibility is, if you didn't add the additional path into your .bashrc you will not be able to compile.

Run in your catkin workspace

source devel/setup.bash

Then try catkin_make again.

perigalacticon
06-06-2016, 07:40 PM
accidental double post

perigalacticon
06-06-2016, 07:42 PM
Ok first off the Creeper is cool. My son would love it.

That tutorial is dependent on previous tutorials, are you doing them all in order?


Other possibility is, if you didn't add the additional path into your .bashrc you will not be able to compile.

Run in your catkin workspace

source devel/setup.bash

Then try catkin_make again.


Thanks that worked! :happy: Is that part missing from the tutorial? Yes I have been doing the tutorials sequentially from the start. I really appreciate it. I would really like to understand what is happening better with this part of the system as I am new to C outside of Arduino sketches (I have a 500-line one for Curt though now). Do you know of any good references for explaining the make process ?

I have a lot of ideas for Curt.

Thanks again!
Perigalacticon

KevinO
06-06-2016, 07:56 PM
Do you know of any good references for explaining the make process ?


I don't have any additional references other than the tutorials. Although I did go through them all twice to just drive home how ROS did things.

The "devel/setup.bash" is in the tutorials but in the very beginning when you first setup your workspace. It is easy to forget after a few days so I just added it to my .bashrc so it is always there.

perigalacticon
06-06-2016, 09:21 PM
I don't have any additional references other than the tutorials. Although I did go through them all twice to just drive home how ROS did things.

The "devel/setup.bash" is in the tutorials but in the very beginning when you first setup your workspace. It is easy to forget after a few days so I just added it to my .bashrc so it is always there.


Sorry for the double post I am just getting the hang of the forum I guess!

Thanks again. I posted more information about Curt if you are interested there's more info at LetMakeRobots where I started him.