Namespaces | Variables
spawn_object.py File Reference

Implements script server functionalities. More...

Go to the source code of this file.

Namespaces

namespace  spawn_object

Variables

tuple spawn_object.all_object_names = rospy.get_param("/objects")
 spawn_object.exists = True
tuple spawn_object.file_localition = roslib.packages.get_pkg_dir('cob_gazebo_objects')
tuple spawn_object.file_xml = open(file_localition)
tuple spawn_object.model = rospy.get_param("/objects/%s/model" % name)
tuple spawn_object.model_type = rospy.get_param("/objects/%s/model_type" % name)
 spawn_object.object_names = all_object_names
tuple spawn_object.object_pose = Pose()
tuple spawn_object.orientation = rospy.get_param("/objects/%s/orientation" % name)
tuple spawn_object.p = os.popen("rosrun xacro xacro.py " + file_localition)
tuple spawn_object.position = rospy.get_param("/objects/%s/position" % name)
tuple spawn_object.pub = rospy.Publisher('/sim_spawned', EmptyMsg,latch=True)
tuple spawn_object.quaternion = tft.quaternion_from_euler(orientation[0], orientation[1], orientation[2])
tuple spawn_object.req = DeleteModelRequest()
tuple spawn_object.res = srv_delete_model(name)
tuple spawn_object.sim = rospy.get_param('/use_sim_time')
tuple spawn_object.srv_delete_model = rospy.ServiceProxy('gazebo/delete_model', DeleteModel)
tuple spawn_object.srv_spawn_model = rospy.ServiceProxy('/gazebo/spawn_urdf_model', SpawnModel)
tuple spawn_object.xml_string = file_xml.read()

Detailed Description

Implements script server functionalities.

Note:
Copyright (c) 2010
Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)

Project name: Care-O-bot Research
ROS stack name: cob_environments
ROS package name: cob_gazebo_objects
Author:
Author: Florian Weisshardt, email:florian.weisshardt@ipa.fhg.de
Supervised by: Florian Weisshardt, email:florian.weisshardt@ipa.fhg.de
Date:
Date of creation: Feb 2012

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License LGPL as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License LGPL for more details.

You should have received a copy of the GNU Lesser General Public License LGPL along with this program. If not, see < http://www.gnu.org/licenses/>.

Definition in file spawn_object.py.



srs_user_tests
Author(s): SRS team
autogenerated on Sun Jan 5 2014 12:14:05