Ask Your Question

source .zshrc to set ROS environment don't take effect

asked 2016-11-28 00:47:28 -0500

yin gravatar image

hello all,

part of the .zshrc file as following:

source /opt/ros/indigo/setup.zsh
source /home/adminyin/catkin_ws/devel/setup.zsh
source /home/adminyin/rosws/devel/setup.zsh

when source .zshrc at terminal, it does nothing

only source /opt/ros/indigo/setup.zsh or other .zsh file manually can take effect

could someone tell me what's wrong about this?

It was occured when I use qtcreator open my ROS package, but failed at the CMake execution step

edit retag flag offensive close merge delete


➜ ~ source ./.zshrc
➜ ~ printenv | grep ROS ROS_DISTRO=indigo ROS_PACKAGE_PATH=/home/adminyin/rosws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks

it was over write?

yin gravatar image yin  ( 2016-11-28 01:08:56 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2016-11-28 02:18:09 -0500

gvdhoorn gravatar image

it was over write?

Yes. By default, setup.* files will overwrite the environment set by the previous one you sourced.

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


Asked: 2016-11-28 00:47:28 -0500

Seen: 646 times

Last updated: Nov 28 '16