Building TurtleBot from source and still having gazebo&gazebo-ros-pkgs from pre-compiled binaries
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
Asked by Robert on 2014-05-01 16:33:57 UTC
Answers
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?
Asked by Jose Luis Rivero on 2014-05-06 11:20:44 UTC
Comments
Thanks a lot for your reply. About my last point, I made some changes on the "gazebo_ros_create.cpp" file, that belongs to the turtlebot, and recompile using catkin_make.
Asked by Robert on 2014-05-06 17:22:09 UTC
Also, I verified that libgazebo_ros_create.so file was updated. Then i ran again the turtlebot simulation but nothing change (same results). Even if I delete the libgazebo_ros_create.so 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
Asked by Robert on 2014-05-06 17:30:22 UTC
@Robert was this resolved?
Asked by isura on 2014-05-10 13:14:11 UTC
Isura, I found a workaround solution changing the kobuki_gazebo_urdf.xacro file. But I still have my doubts about source code approach. Are you facing the same problem?
Asked by Robert on 2014-05-12 10:24:06 UTC
Your problem may be that the binary path shadows your workspace. i.e. The path to /opt/ros/groovy/stacks etc appears before ~/catkin_ws in your $ROS_PACKAGE_PATH. You can check this by running 'echo $ROS_PACKAGE_PATH' in a terminal.
Asked by isura on 2014-05-14 03:53:24 UTC
Hi Isura, thanks for reply. I checked the path using echo $ROS_PACKAGE_PATH 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
Asked by Robert on 2014-05-15 10:41:01 UTC
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 : http://wiki.ros.org/turtlebot_simulator?
Did you try removing the binary version of the turtlebot-simulator package?
Asked by isura on 2014-05-16 00:03:04 UTC
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
Asked by Robert on 2014-05-20 10:37:55 UTC
Comments