Ask Your Question
0

where is the command roscd

asked 2018-05-17 23:26:32 -0600

bear234 gravatar image

I've installed ROS from source successfully and the command roscd works as expected.

Now I want to execute roscd in a bash script but get the error: roscd: not found

I've tried to find the command roscd but I got nothing: the output of find / -name roscd is empty.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-05-18 00:47:02 -0600

jayess gravatar image

Have you completed the installation instructions? Namely, the environment setup section? From that section

It's convenient if the ROS environment variables are automatically added to your bash session every time a new shell is launched:

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

Just make sure to change the kinetic portion to whatever version you installed.

edit flag offensive delete link more

Comments

1

Note: @jayess links to the regular (ie: binary) installation instructions, but environment setup is shared between from-source and binary installations.

gvdhoorn gravatar imagegvdhoorn ( 2018-05-18 01:21:47 -0600 )edit

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: 2018-05-17 23:26:32 -0600

Seen: 82 times

Last updated: May 18 '18