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

Why are ROS commands not recognised when I open a new terminal?

asked 2013-10-16 08:55:41 -0500

fjleishman gravatar image

I know I'm a complete noob and it will be something stupid, but I've been going through the tutorials trying to get ROS installed and set up and I've got to ROS\Tutorials\UnderstandingNodes where one of the steps says run the roscore command (which runs until you stop it right?) and run something else in a new terminal while it's running. Everytime I open a new terminal it won't recognise any ROS commands. rosnode: command not found roscd: command not found etc... I'm using Ubuntu 12.04 and I think I've tried to install both ROS Groovy and Hydro. Not going to lie, I have absolutely zero idea what I'm doing here... Cheers.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
3

answered 2013-10-16 09:25:18 -0500

It sounds like setup.bash hasn't been sourced in the new terminal window. When you open a new window try executing this command:

source /opt/ros/hydro/setup.bash

I personally include that in my .bashrc file, which will do that automatically every time you open a new terminal, however some people don't like that approach.

edit flag offensive delete link more

Comments

1

Perfect, Thank you so much! I think I'll go and add it to my .bashrc file to save me from forgetting every time.

fjleishman gravatar image fjleishman  ( 2013-10-16 09:40:22 -0500 )edit
1

answered 2013-10-16 09:03:44 -0500

updated 2013-10-16 09:17:53 -0500

The Hydro installation instructions appear to be missing the Environment Setup step. I believe you should be able to follow the Groovy Environment Setup instructions, and replace every instance of groovy with hydro.

Note: I haven't yet installed Hydro myself, so I can't guarantee this will work.

edit flag offensive delete link more

Comments

1

The Environment Setup instructions were probably ommitted by mistake. I've added them back. (I have Hydro installed, so I could check that they work).

Martin Günther gravatar image Martin Günther  ( 2013-10-17 01:48:33 -0500 )edit

Question Tools

Stats

Asked: 2013-10-16 08:55:41 -0500

Seen: 2,508 times

Last updated: Oct 16 '13