control multiple robots in gazebo via rviz

asked 2013-10-16 07:19:57 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hello I use fuerte in Ubuntu 12.04

and I want to control several turtlebots in gazebo via rviz. I follow the tutorial: but have problems with the hacks

and replace line 36 to node_namespaceP_ = new ParamT<std::string>("robotNamespace","",0)

line 36 is

GazeboRosCreate::~GazeboRosCreate() { rosnode_->shutdown(); this->spinner_thread_->join(); delete this->spinner_thread_; delete [] wheel_speed_; delete rosnode_; }

and then the problem that rosmake does not work (because ROS_NOBUILD), --unmark-installed and --build-everything, too. because it is in / opt / ros / fuerte / stacks (he can not create "build")

with a robot, it worked, after I try it with the instructions I got the error

goal.target_pose.header.stamp = File "/opt/ros/fuerte/lib/python2.7/dist-packages/rospy/", line 149, in now return get_rostime() File "/opt/ros/fuerte/lib/python2.7/dist-packages/rospy/", line 203, in get_rostime raise rospy.exceptions.ROSInitException("time is not initialized. Have you called init_node()?") rospy.exceptions.ROSInitException: time is not initialized. Have you called init_node()?

can any one help

(I have no real Turtlebot) control robot via

#!/usr/bin/env python
import roslib; roslib.load_manifest('simple_navigation_goals')
import rospy
import actionlib
from move_base_msgs.msg import MoveBaseGoal, MoveBaseAction

if __name__ == "__main__":
    client = actionlib.SimpleActionClient( 'move_base', MoveBaseAction )

    goal = MoveBaseGoal()
#   goal.target_pose.header.frame_id = "/base_link"
    goal.target_pose.header.frame_id = "/map"
    goal.target_pose.header.stamp =
    goal.target_pose.pose.position.x = 1
    goal.target_pose.pose.position.y = 1
goal.target_pose.pose.orientation.w = 1.0

#   client.wait_for_result(rospy.Duration.from_sec(5.0))


print client.get_state()
  • need bugfix
  • help for control robots
edit retag flag offensive close merge delete


I would love to see this resolved.

Dr Abdul Mannan gravatar image Dr Abdul Mannan  ( 2016-10-26 02:25:42 -0500 )edit