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

Problem with sourcing setup.bash

asked 2017-04-14 11:56:46 -0500

Eirtrand gravatar image

Hi, I have some packages installed with apt, and some from from source in catkin_ws. The problem Im having is that the source /opt/ros/kinetic/setup.bash file and the ~/catkin_ws/devel/setup.bash file conflicts. As soon as I source catkin I can not find some packages In opt/ros, and as soon as I source opt/ros I can not find any of my catkin nodes. I have been struggling with this for a while now and Im wondering if it is a way of resolving this conflict?

edit retag flag offensive close merge delete

Comments

how do u try to find packages? are you using roscd? if you don't have opt/ros sourced the roscd command would not be even recognized ?? In other words I don't think you have your ros environment not sourced

mohsen1989m gravatar image mohsen1989m  ( 2017-04-14 15:53:12 -0500 )edit

or setup an alias setup="source devel/setup.sh" in your .bashrc or whatever shell you have there

eugene.katsevman gravatar image eugene.katsevman  ( 2017-04-14 17:28:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-04-14 15:54:44 -0500

mohsen1989m gravatar image

I think your problem is u r sourcing the workspace locally in terminals and when you open a new one it is not sourced and you need to source again, to avoid it try to source your work space using .bashrc

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-04-14 11:56:46 -0500

Seen: 569 times

Last updated: Apr 14 '17