Gazebo | Ignition | Community
Ask Your Question

Building TurtleBot from source and still having gazebo&gazebo-ros-pkgs from pre-compiled binaries

asked 2014-05-01 16:33:57 -0500

Robert gravatar image

Hi Everyone, I installed the TurtleBot from source since I need to rebuild some source files from the turtlebot and I have gazebo&gazebo-ros-pkgs installed from the pre-compiled binaries. Is there any conflict to mix up source and binaries for gazebo&gazebo-ros-pkgs&turtlebot? Do I need to install everything from source to avoid any conflict? I just recompiled some source code from the turtlebot and I observed that there were no changes. It seems that gazebo ignores the new library file Thanks for any help with this issue

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-06 11:20:44 -0500

Jose Luis Rivero gravatar image

There is no conflict on mixing gazebo and gazebo-ros-pkgs from binaries, as long as gazebo-ros-pkgs are the ones that works with the specific version of gazebo (i.e gazebo-current and gazebo-ros-pkgs-current), and building the software from source.

You don't need to build everything from source. In fact, and according to the documentation, there are very few cases when someone would need to compile gazebo or gazebo-ros-pkgs from source. What you probably need, and you are doing, is to compile turtlebot software from source.

About your last point:

I just recompiled some source code from the turtlebot and I observed that there were no changes. It seems that gazebo ignores the new library file

Sorry, I can't understand what is exactly your problem. Could you specify it a bit more?

edit flag offensive delete link more


Thanks a lot for your reply. About my last point, I made some changes on the "gazeboroscreate.cpp" file, that belongs to the turtlebot, and recompile using catkin_make.

Robert gravatar imageRobert ( 2014-05-06 17:22:09 -0500 )edit

Also, I verified that file was updated. Then i ran again the turtlebot simulation but nothing change (same results). Even if I delete the file, i can still running the simulation. I thought that the turtlebot need this library to run properly. Please can you clarify this point. thanks a lot again , Jose

Robert gravatar imageRobert ( 2014-05-06 17:30:22 -0500 )edit

@Robert was this resolved?

isura gravatar imageisura ( 2014-05-10 13:14:11 -0500 )edit

Isura, I found a workaround solution changing the kobukigazebourdf.xacro file. But I still have my doubts about source code approach. Are you facing the same problem?

Robert gravatar imageRobert ( 2014-05-12 10:24:06 -0500 )edit

Your problem may be that the binary path shadows your workspace. i.e. The path to /opt/ros/groovy/stacks etc appears before ~/catkinws in your $ROSPACKAGEPATH. You can check this by running 'echo $ROSPACKAGE_PATH' in a terminal.

isura gravatar imageisura ( 2014-05-14 03:53:24 -0500 )edit

Hi Isura, thanks for reply. I checked the path using echo $ROSPACKAGEPATH and the result is : ~/turtlebot/src:/opt/ros/hydro/share:/opt/ros/hydro/stacks Where "/tutlebot" is my /catkinws. I checked my bashrc file and the bash file for /ros/hydro appears first. Do you think that I need to swap positions of bash files of hydro and turtlebot inside the bashrc file to fix my issue? Thanks alot again for your help

Robert gravatar imageRobert ( 2014-05-15 10:41:01 -0500 )edit

Your configuration seems correct. Your source will be checked first since it is before your binary directories. I presume this is the package you want to modify :

Did you try removing the binary version of the turtlebot-simulator package?

isura gravatar imageisura ( 2014-05-16 00:03:04 -0500 )edit

Hi Isura, You are correct with the package. I removed the binary version of the turtlebot-simulator pack. applying "sudo apt-get remove" for all the packages that I installed for this simulator then I installed the source version of this simulator. The only thing that i didn't do is to delete all the folders created during binary installation. Do you think that I need to delete all the folders from the binary installation?. Thanks again

Robert gravatar imageRobert ( 2014-05-20 10:37:55 -0500 )edit

Question Tools


Asked: 2014-05-01 16:33:57 -0500

Seen: 683 times

Last updated: May 06 '14