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

source catkin_ws/src/setup.bash after each reboot ?

asked 2014-01-16 23:36:35 -0500

Matt_Matt gravatar image

updated 2014-01-17 02:34:59 -0500

dornhege gravatar image

Hi, I use Ubuntu 12.04 LTS with ROS-groovy.

I followed the tutorial "InstallingandConfiguringROSEnvironment" on how to create a catkin workspace.

When I reboot my laptop I've to

source devel/setup.bash

to find packages in catkin_ws/src with the command

rospack find <package_name>

Clearly I'm doing something wrong or I'm misinformed.

I appreciate your help, Matt

edit retag flag offensive close merge delete


I tried your solution and it worked. Thank you!

Matt_Matt gravatar image Matt_Matt  ( 2014-01-17 02:33:09 -0500 )edit

If Kamiccolo's answer was correct could you please "accept" it?

Tim Sweet gravatar image Tim Sweet  ( 2014-01-17 11:28:27 -0500 )edit

Sorry, I oversaw the "mark this answer as correct button" so I just voted it up. Now i fixed it.

Matt_Matt gravatar image Matt_Matt  ( 2014-01-18 01:43:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-17 00:48:22 -0500

Kamiccolo gravatar image

updated 2014-01-17 04:10:33 -0500

Could You be more specific on the system You're running, please?

In general case, after adding source path_to_your/catkin_ws/devel/setup.bash to ~/.bashrc it should work automagically on each start-up or new terminal run. More on this topic: step 8

Another solution would be adding an alias for mentioned source call. Something like:

alias robot1_ws="source path_to_your/catkin_ws/devel/setup.bash"
alias robot2_ws="source path_to_your/catkin_ws2/devel/setup.bash"
alias robot3_ws="source path_to_your/catkin_ws3/devel/setup.bash"

in Your ~/.bash_aliases file. To source one of those workspaces You'd have only to type robot1_ws, robot2_ws or robot3_ws in the terminal.

edit flag offensive delete link more

Question Tools



Asked: 2014-01-16 23:36:35 -0500

Seen: 2,258 times

Last updated: Jan 17 '14