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

Conflicts when source setup.bash

asked 2014-12-18 15:14:59 -0500

Tixiao gravatar image

Hi, I wrote an global planner for my turtlebot. But when I tried to source my .bashrc, only one setup.bash can work. When I source ~/turtlebot/devel/setup.bash, I can use simulator or navigation . But I need to load my own planner plugin, so I source ~/catkin_ws/devel/setup.bash, Then I can see the plugin. But I can not use anything about turtlebot now. It seems that source ~/turtlebot/devel/setup.bash is cancelled. If I source ~/turtlebot/devel/setup.bash again, I can use turtlebot but I can not see my plugin, source ~/catkin_ws/devel/setup.bashstopped working. Can anybody help me with this? For convenience, I usually put all such things in .bashrc file. But it seems that only one setup.bash can work at a time.

edit retag flag offensive close merge delete



I would suggest copying the whole turtlebot package into your catin_ws/src and only sourcing catin_ws/devel/setup.bash will not produce any conflicts. I have been tweaking a lot of turtlebot packages this way and had no issues so far. Try it.

AlexR gravatar image AlexR  ( 2014-12-18 18:16:37 -0500 )edit

Especially take care of section 3.3 of the tutorial @Thomas D linked.

BennyRe gravatar image BennyRe  ( 2014-12-19 04:22:13 -0500 )edit

Also, this question and this question are closely related to your problem.

Murilo F. M. gravatar image Murilo F. M.  ( 2014-12-22 18:16:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-18 15:31:35 -0500

Thomas D gravatar image

This sounds like issues with workspace overlaying ( ). You should be able to do what you want, I'm just not sure exactly how without diving into it more. Hopefully that link gets you in the right direction.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-12-18 15:14:59 -0500

Seen: 385 times

Last updated: Dec 18 '14