Skip to content

Commit eaefa31

Browse files
committed
Update Spawn Entity to use Resource Message
1 parent bc9e9e6 commit eaefa31

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

srv/SpawnEntity.srv

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ string name # A name to give to the spawned entity.
1111
bool allow_renaming # Determines whether the spawning succeeds with a non-unique name.
1212
# If it is set to true, the user should always check entity_name response field
1313
# and use it for any further interactions.
14-
string uri # Resource such as SDFormat, URDF, USD or MJCF file, a native prefab, etc.
15-
# Valid URIs can be determined by calling GetSpawnables first, and you can check
16-
# the simulator format support by reading SimulatorFeatures spawn_formats field.
17-
# If uri field is empty, resource_string must not be empty.
18-
string resource_string # An entity definition file passed as a string.
19-
# Simulators may support spawning from a file generated on the fly (e.g. XACRO).
20-
# It is supported by your simulator if GetSimulatorFeatures includes
21-
# SPAWNING_RESOURCE_STRING feature.
22-
# If uri field is not empty, resource_string field will be ignored.
14+
15+
Resource entity_resource # Resource such as SDFormat, URDF, USD or MJCF file, a native prefab, etc.
16+
# Valid URIs can be determined by calling GetSpawnables first.
17+
# Check simulator format support via the spawn_formats field in GetSimulatorFeatures.
18+
# Using resource_string is supported if GetSimulatorFeatures includes
19+
# the SPAWNING_RESOURCE_STRING feature.
20+
2321
string entity_namespace # Spawn the entity with all its interfaces under this namespace.
2422
geometry_msgs/PoseStamped initial_pose # Initial entity pose.
2523
# The header contains a reference frame, which defaults to global "world" frame.

0 commit comments

Comments
 (0)