Robotics StackExchange | Archived questions

Problem with ROS tutorial

Hi everybody,

im new to ROS and doing the tutorial right now. I have a Problem with the tutorial "Creating a ROS msg and srv": In the point 1.3 i want to use the "rosmsg show beginnertutorials/Num" but i dont get the right answer which should be "int 64", the only thing i get is an error message: "Unable to load msg[beginnertutorials/Num]: Cannot locate message [Num]: unknown package .........." and it goes on.

I wasnt even able to open the "CMakeLists.txt" with the command rosed, because ROS couldnt find the package "beginner_tutorials"

So where is my mistake? i created that package like in the tutorials before.

Hope anyone can help me.

Cheers,

Rubey

Asked by Rubey on 2015-11-04 04:11:38 UTC

Comments

Answers

You probably need to source devel/setup.bash(or whatever shell you use)

the devel directory appears after the first build of your workspace.

To edit .bashrc on ubuntu type in the terminal:

gedit ~/.bashrc

.bashrc is a file in your home directory (/home/your_user_name). It is a bash script which is executed each time you start a bash terminal. One of the things it does is set up environment variables like e.g. paths to your ROS packages if you add the line source devel/setup.bash to the bottom.

Asked by Dimitri Schachmann on 2015-11-04 04:42:19 UTC

Comments

Possibly, it is related with your workspace and package path. Please make sure that you sourced the bash file, i.e; source /home/<username>/catkin_ws/devel/setup.bash

If so, your package setup may be the problem. Your package should be listed when you run rospack find beginner_tutorials .

If these are not related, please supply more details like directory tree of your workspace and contents of package.xml file.

Asked by Akif on 2015-11-04 04:43:23 UTC

Comments

I needed to do the setup.bash or write this into my .bashrc. The problem is that i dont knowed what the bashrc is because im new to Ubuntu.

But thanks guys!

Cheers

Asked by Rubey on 2015-11-04 05:10:19 UTC

Comments