def create_model()

in simulation_ws/src/robot_fleet/scripts/gazebo_model_mover.py [0:0]


    def create_model(self, name, xml_file_name, pose_dict ):
        rospy.loginfo("Creating model {}".format(name))

        xml_model = check_output([ self.path_xacro, self.sdf_file_path ]).strip('\n')

        request = SpawnModelRequest()
        request.model_name = name
        request.model_xml = xml_model
        request.robot_namespace = ''
        request.reference_frame = ''

        request.initial_pose.position.x = pose_dict['x']
        request.initial_pose.position.y = pose_dict['y']
        request.initial_pose.position.z = pose_dict['z']

        request.initial_pose.orientation.x = pose_dict['qx']
        request.initial_pose.orientation.y = pose_dict['qy']
        request.initial_pose.orientation.z = pose_dict['qz']
        request.initial_pose.orientation.w = pose_dict['qw']

        response =  self.add_model(request)
        rospy.loginfo(response)