4 import roslib; roslib.load_manifest(
'gazebo_plugins')
9 from gazebo_plugins.msg
import GazeboModel
10 from gazebo_plugins.srv
import SpawnModel
11 from gazebo_plugins.srv
import DeleteModel
12 from geometry_msgs.msg
import Pose, Point, Quaternion
15 print "waiting for service spawn_model" 16 rospy.wait_for_service(
'spawn_model')
18 spawn_model= rospy.ServiceProxy(
'spawn_model', SpawnModel)
19 resp1 = spawn_model(model_msg)
21 except rospy.ServiceException, e:
22 print "Service call failed: %s"%e
def load_model(model_msg)