Ask Your Question
0

Build and run a node (absolute beginner)

asked 2019-01-18 08:16:03 -0500

jatt gravatar image

updated 2019-01-18 13:13:11 -0500

jayess gravatar image

Hello everyone,

I am very new into the world of ROS (catkin, sourcing etc.), I had Ubuntu 18.04 installed recently and ROS-Melodic as well.

I am trying to follow and build examples from Ouster here but I can't make Ros Node work so far. I should be able to launch "roslaunch ouster_ros os1.launch replay:=true" but I get this error message:

RLException: [os1.launch] is neither a launch file in package [ouster_ros] nor is [ouster_ros] a launch file name The traceback for the exception was written to the log file

I was told to check what's wrong with roswtf but there was no useful information.

I followed tutorials but it still seems not clear to me how to make everything work. I try to find other tutorials and videos for beginners, but it doesn't help me to understand.

  • I am not even sure I built correctly the Sample ROS Node: how can I check a build goes well ?
  • Should I always use "catkin_ws", or can I chose to name it "myProject_ws"?

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-01-18 10:27:30 -0500

My first guess would be that you haven't sourced your workspace. You can do this with the following command in the root of your workspace:

source ./devel/setup.bash

You can also use the rospack command to check that your pacakge has been made and sourced properly

rospack list | grep ouster_ros

should show the package name, if it doesn't show anything then your haven't sourced your workspace. Not this needs doing every time you open a new terminal.

Regarding your final two questions, if you run catkin_make and you don't get any red errors then it should have built okay, if you get a red error then something went wrong. Finally you can name your workspace directory anything you want, as long as it has the correct structure within it, it will work fine.

Hope this helps.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-01-18 08:16:03 -0500

Seen: 128 times

Last updated: Jan 18