Ask Your Question
1

Conflicts when source setup.bash

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

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

Comments

1

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 imageAlexR ( 2014-12-18 18:16:37 -0600 )edit
1

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

BennyRe gravatar imageBennyRe ( 2014-12-19 04:22:13 -0600 )edit
1

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

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

1 Answer

Sort by ยป oldest newest most voted
2

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

Thomas D gravatar image

This sounds like issues with workspace overlaying ( http://wiki.ros.org/catkin/Tutorials/... ). 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

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: 2014-12-18 15:14:59 -0600

Seen: 135 times

Last updated: Dec 18 '14