Ask Your Question

No source code cpp file for turtlebot

asked 2014-04-18 07:54:08 -0500

Robert1 gravatar image

Hi Everyone, I have tried to run two turtlebots independently on the same simulation and I just use the model from the tutlebot simulator (hydro) to create two copies using different namespaces, robot1 and robot2. I spawned two and can input velocities independently using the rostopic pub[] command but the problem is that i just got one odom(nav_msgs/Odometry) topic no separate by namespace. Some people posted the solution for this problem by changing the "gazebo_ros_create.cpp" file. I searched for this file in my PC but I couldn't find it. Please can somebody tell where I can find this source file in my PC? I am using Hydro version with turtlebot simulator files.

Thanks alot

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-04-18 09:01:14 -0500

demmeln gravatar image

If you installed ros with apt-get, you will only have binary packages and no source code. You will have to create your own catkin workspace and include the source. It is in the create_gazebo_plugins package. To find the source the following command can help, which outouts rosinstall syntax that can be merge into a workspace with wstool.

roslocate info create_gazebo_plugins --distro hydro
edit flag offensive delete link more


Thanks a lot Demmeln!! I got it

Robert1 gravatar image Robert1  ( 2014-04-19 16:41:19 -0500 )edit

If your Problem is solved, Plesse Mark an answer an accepted to indicate that to everyone. Thanks :-).

demmeln gravatar image demmeln  ( 2014-04-20 00:41:40 -0500 )edit

Demmeln, I installed turtlebot from source using: > cd ~/turtlebot > wstool init src rosinstall -j8 > source /opt/ros/hydro/setup.bash > rosdep install --from-paths src -i -y > catkin_make I made some changes but i don't know how to recompile using catkin_make help

Robert1 gravatar image Robert1  ( 2014-04-24 14:08:28 -0500 )edit

answered 2014-04-20 05:12:41 -0500

Robert1 gravatar image

Thanks a lot Demmeln. The problem was solved

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



Asked: 2014-04-18 07:54:08 -0500

Seen: 177 times

Last updated: Apr 20 '14