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

Problem with ROS tutorial

asked 2015-11-04 03:11:38 -0500

Rubey gravatar image

updated 2015-11-04 03:45:02 -0500

Akif gravatar image

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 beginner_tutorials/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[beginner_tutorials/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

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2015-11-04 03:42:19 -0500

Dimitri Schachmann gravatar image

updated 2015-11-04 04:21:42 -0500

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.

edit flag offensive delete link more
0

answered 2015-11-04 03:43:23 -0500

Akif gravatar image

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.

edit flag offensive delete link more
0

answered 2015-11-04 04:10:19 -0500

Rubey gravatar image

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-04 03:11:38 -0500

Seen: 856 times

Last updated: Nov 04 '15