Functions | Variables
spawn_object Namespace Reference

Functions

def get_flat_dict

Variables

dictionary compound_keys = {}
 existing_models = world_properties.model_names
tuple f = os.popen("rosrun xacro xacro --inorder " + file_location)
tuple file_location = roslib.packages.get_pkg_dir('cob_gazebo_objects')
tuple flat_objects = get_flat_dict(objects,None)
tuple found_groups = set(groups.keys())
tuple groups = rospy.get_param("/object_groups")
list model_string = value["model"]
list model_type = value["model_type"]
list object_names = [groups[k] for k in found_groups]
tuple object_pose = Pose()
tuple objects = rospy.get_param("/objects")
list orientation = value["orientation"]
dictionary parents = {}
list position = value["position"]
tuple quaternion = tft.quaternion_from_euler(orientation[0], orientation[1], orientation[2])
tuple req = SpawnModelRequest()
tuple res = srv_delete_model(key)
tuple srv_delete_model = rospy.ServiceProxy('gazebo/delete_model', DeleteModel)
tuple srv_get_world_properties = rospy.ServiceProxy('/gazebo/get_world_properties', GetWorldProperties)
tuple srv_spawn_model = rospy.ServiceProxy('/gazebo/spawn_'+model_type+'_model', SpawnModel)
tuple world_properties = srv_get_world_properties()
tuple xml_string = f.read()

Function Documentation

def spawn_object.get_flat_dict (   objects,
  parent_name 
)
expands all objects to a flat dictionary

Definition at line 33 of file spawn_object.py.


Variable Documentation

dictionary spawn_object::compound_keys = {}

Definition at line 31 of file spawn_object.py.

list spawn_object::existing_models = world_properties.model_names

Definition at line 136 of file spawn_object.py.

tuple spawn_object::f = os.popen("rosrun xacro xacro --inorder " + file_location)

Definition at line 183 of file spawn_object.py.

tuple spawn_object::file_location = roslib.packages.get_pkg_dir('cob_gazebo_objects')

Definition at line 175 of file spawn_object.py.

Definition at line 88 of file spawn_object.py.

tuple spawn_object::found_groups = set(groups.keys())

Definition at line 102 of file spawn_object.py.

dictionary spawn_object::groups = rospy.get_param("/object_groups")

Definition at line 92 of file spawn_object.py.

Definition at line 146 of file spawn_object.py.

Definition at line 147 of file spawn_object.py.

Definition at line 104 of file spawn_object.py.

Definition at line 164 of file spawn_object.py.

dictionary spawn_object::objects = rospy.get_param("/objects")

Definition at line 87 of file spawn_object.py.

list spawn_object::orientation = value["orientation"]

Definition at line 160 of file spawn_object.py.

dictionary spawn_object::parents = {}

Definition at line 30 of file spawn_object.py.

list spawn_object::position = value["position"]

Definition at line 153 of file spawn_object.py.

tuple spawn_object::quaternion = tft.quaternion_from_euler(orientation[0], orientation[1], orientation[2])

Definition at line 161 of file spawn_object.py.

tuple spawn_object::req = SpawnModelRequest()

Definition at line 220 of file spawn_object.py.

Definition at line 214 of file spawn_object.py.

tuple spawn_object::srv_delete_model = rospy.ServiceProxy('gazebo/delete_model', DeleteModel)

Definition at line 212 of file spawn_object.py.

tuple spawn_object::srv_get_world_properties = rospy.ServiceProxy('/gazebo/get_world_properties', GetWorldProperties)

Definition at line 128 of file spawn_object.py.

tuple spawn_object::srv_spawn_model = rospy.ServiceProxy('/gazebo/spawn_'+model_type+'_model', SpawnModel)

Definition at line 208 of file spawn_object.py.

Definition at line 131 of file spawn_object.py.

Definition at line 199 of file spawn_object.py.



cob_bringup_sim
Author(s): Felix Messmer , Nadia Hammoudeh Garcia , Florian Weisshardt
autogenerated on Sat Jun 8 2019 18:52:45