-
Notifications
You must be signed in to change notification settings - Fork 9
Proposal for simulation interfaces #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mjcarroll
merged 33 commits into
ros-simulation:main
from
adamdbrw:simulation_interfaces
Mar 21, 2025
Merged
Changes from 11 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
5267ea2
simulation interfaces
adamdbrw 0cfd0fd
Apply suggestions from code review
adamdbrw d874c23
applied review suggestions
adamdbrw 10f59d2
added missing cmake entries
adamdbrw ea23f59
stepping service
adamdbrw 97b79f7
robot_namespace -> namespace
adamdbrw 8bae938
changed filter semantics to regex
adamdbrw 885a3fa
Updated EntityState and SpawnableBounds messages to address feedback
adamdbrw 53d6ee9
Added action for multi-stepping
adamdbrw aaee904
Added stepping alternatives documentation
adamdbrw df98b24
Added GetSimulatorFeatures interface
adamdbrw 4d551f1
Apply suggestions from code review
adamdbrw 95f46d9
Update srv/GetEntityState.srv
adamdbrw 0169e10
Code review improvements:
adamdbrw 1e92784
Apply suggestions from code review
adamdbrw 9bf757f
Revision following the review:
adamdbrw e94797f
Added sources field; documentation changes
adamdbrw eabed90
Update action/MultiStepSimulation.action
adamdbrw 271a8a1
Modified result handling and entity info, tags and categories
adamdbrw 9ec77e6
Apply suggestions from code review
adamdbrw 86ea8e0
Addressing review:
adamdbrw 9d123ed
Addressing review comments:
adamdbrw a940c65
Review comments applied:
adamdbrw aee7e79
Update msg/SimulationState.msg
adamdbrw 4497cbc
Apply suggestions from code review
adamdbrw af3ebff
Applied review comments:
adamdbrw 5f0aefb
corrected entities to strings
adamdbrw 5fe0d30
Update msg/Bounds.msg
adamdbrw eb6f27e
Applied review
adamdbrw e98721f
Applied review
adamdbrw 65a653f
feature naming fix
adamdbrw 4e6867d
Update srv/SetEntityState.srv
adamdbrw 2206c58
Update srv/SetEntityState.srv
adamdbrw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
project(simulation_interfaces) | ||
|
||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
endif() | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
|
||
find_package(ament_cmake REQUIRED) | ||
find_package(builtin_interfaces REQUIRED) | ||
find_package(geometry_msgs REQUIRED) | ||
find_package(rosidl_default_generators REQUIRED) | ||
find_package(std_msgs REQUIRED) | ||
|
||
set(msg_files | ||
"msg/Entity.msg" | ||
"msg/EntityState.msg" | ||
"msg/EntityWithState.msg" | ||
"msg/Spawnable.msg" | ||
"msg/SpawnableBounds.msg" | ||
"msg/SpawnPose.msg" | ||
) | ||
|
||
set(srv_files | ||
"srv/DeleteEntity.srv" | ||
"srv/GetEntities.srv" | ||
"srv/GetEntityState.srv" | ||
"srv/GetSimulatorFeatures.srv" | ||
"srv/GetSpawnables.srv" | ||
"srv/GetSpawnPoses.srv" | ||
"srv/ResetSimulation.srv" | ||
"srv/SetEntityState.srv" | ||
"srv/SetSimulationPaused.srv" | ||
"srv/SpawnEntity.srv" | ||
"srv/StepSimulation.srv" | ||
) | ||
|
||
set(action_files | ||
"action/MultiStepSimulation.action" | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) | ||
|
||
rosidl_generate_interfaces(${PROJECT_NAME} | ||
${msg_files} | ||
${srv_files} | ||
${action_files} | ||
DEPENDENCIES builtin_interfaces std_msgs geometry_msgs | ||
ADD_LINTER_TESTS | ||
) | ||
|
||
ament_export_dependencies(rosidl_default_runtime) | ||
|
||
ament_package() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# simulation_interfaces | ||
Standard interfaces for interacting with simulators from ROS 2 | ||
# Simulation Interfaces | ||
|
||
Standard ROS 2 interfaces for interacting with simulators. | ||
Messages and services are documented in their respective files. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# If simulation is paused, take N steps and pause it back. The action returns feedback after each complete step. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# For a service alternative, see StepSimulation, which often makes more sense when doing a single step (steps = 1). | ||
|
||
uint16 steps # Action goal: step through the simulation loop this many times. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
--- | ||
bool success # Return true if stepping is supported and was successful. | ||
string status_message # Additional comments or error status. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Calling with simulation not paused will return failure and an appropriate message. | ||
--- | ||
uint16 completed_steps # Action feedback: number of completed steps so far. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Entity name and description | ||
|
||
string name # Scoped name of the entity. It must be unique (including namespace). | ||
string description # Optional: additional information about entity. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Entity current pose and twist | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
std_msgs/Header header # Frame and timestamp for pose and twist. Empty frame defaults to world. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
geometry_msgs/Pose pose # Pose in reference frame, ground truth. | ||
geometry_msgs/Twist twist # Ground truth body twist in the reference frame. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# It is observed and defined in the local coordinates system of the body. | ||
# See https://github.com/ros2/common_interfaces/pull/240 for conventions. | ||
geometry_msgs/Accel acceleration # Linear and angular acceleration ground truth, following the same convention. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Entity with its current ground truth state | ||
|
||
Entity entity # Entity name and description | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
EntityState state # Entity current state |
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# A named spawn pose (point) | ||
|
||
string point_name # Name of a spawn point. It does not need to be unique. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
string point_description # Description for the user, e.g. "near the charging station". | ||
geometry_msgs/Pose spawn_pose # Spawn point pose, which can be used with SpawnEntity.srv. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
SpawnableBounds spawn_bounds # Optional spawn area bounds. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Robot or other object which can be spawned in simulation runtime. | ||
|
||
string uri # URI which will be accepted by SpawnEntity service. | ||
string description # Optional description for the user, e.g. "robot X with sensors A,B,C". | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
SpawnableBounds spawn_bounds # Optional spawn area bounds which fully encompass this object. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Bounds for spawning an entity, e.g. to avoid spawning with other object overlap. | ||
# Spawn pose might be valid for a small object, but not suitable for a large one, or a differently shaped one. | ||
# These limits are relative to spawn pose or entity's top link transform, following ROS rep-103 conventions. | ||
|
||
# By default, both fields are zero vectors which means that spawning is unbounded. | ||
# Otherwise, the fields are expected to form a valid box containing the (0,0,0) point which is the spawn position. | ||
# You should check whether the entity simulation model fits within the bounds before spawning, to avoid overlaps and | ||
# unstable behavior. | ||
|
||
geometry_msgs/Vector3 upper_right # Optional: the upper right corner of the spawn box. | ||
geometry_msgs/Vector3 lower_left # Optional: the lower left corner of the spawn box. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>simulation_interfaces</name> | ||
<version>1.0.0</version> | ||
<description>A package containing simulation interfaces including messages and services</description> | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<maintainer email="[email protected]">Adam Dabrowski</maintainer> | ||
<license>Apache License 2.0</license> | ||
<url type="repository">https://github.com/ros-simulation/simulation-interfaces</url> | ||
<author email="[email protected]">Adam Dabrowski</author> | ||
|
||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
<buildtool_depend>rosidl_default_generators</buildtool_depend> | ||
|
||
<depend>builtin_interfaces</depend> | ||
<depend>geometry_msgs</depend> | ||
<depend>std_msgs</depend> | ||
|
||
<exec_depend>rosidl_default_runtime</exec_depend> | ||
|
||
<test_depend>ament_lint_common</test_depend> | ||
|
||
<member_of_group>rosidl_interface_packages</member_of_group> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Remove an entity (a robot, other object) by unique name from the simulation | ||
|
||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
string name # Unique name with a namespace, as returned by SpawnEntity or GetEntities. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
--- | ||
|
||
bool success # return true if deleted successfully. | ||
string status_message # On failure, a user-friendly error message. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Get objects in the scene which can be interacted, e.g. with using SetEntityState. | ||
|
||
string filter # Optional, defaults to empty. Return entities with matching names. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Entity names are matched with the filter regular expression. | ||
# An empty filter will result in all entities being returned. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
--- | ||
|
||
EntityWithState[] entities # All entities with their states, matching the filter. | ||
|
||
bool success # Return true if successful. | ||
string status_message # Additional comments or error status. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Get state of an object. Valid objects are on the list returned by GetEntities. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
string name # Unique name as returned by GetEntities / SpawnEntity. | ||
|
||
--- | ||
|
||
EntityState entity_state # Entity ground truth state. | ||
|
||
bool success # Return true if successful. | ||
string status_message # Additional comments or error status. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Get a list of features supported by the simulator. | ||
# Simulators adhering to the standard need to implement at least this interface. | ||
|
||
--- | ||
|
||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uint8 SPAWNING = 0 # Supports spawn interface (SpawnEntity). | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uint8 DELETING = 1 # Supports deleting entities (DeleteEntity). | ||
uint8 SPAWN_POSES = 2 # Supports predefined spawn poses (GetSpawnPoses). | ||
uint8 SPAWN_BOUNDS = 3 # Supports spawn bounds (SpawnableBounds). | ||
uint8 SPAWN_FORMAT_SDF = 4 # Supports spawning from SDFormat specified in the uri field of SpawnEntity. | ||
uint8 SPAWN_FORMAT_URDF = 5 | ||
uint8 SPAWN_FORMAT_USD = 6 | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uint8 SPAWN_FORMAT_NATIVE = 7 # Supports spawning from prefab / other simulator native format. | ||
|
||
uint8 ENTITY_STATE_LISTING = 8 # Supports GetEntityState interface. | ||
uint8 ENTITY_STATE_SETTING = 9 # Supports SetEntityState interface. | ||
|
||
uint8 SIMULATION_RESET = 10 # Supports one or more ways to reset the simulation through ResetSimulation. | ||
uint8 SIMULATION_RESET_TIME = 11 # Supports TIME flag for resetting. | ||
uint8 SIMULATION_RESET_OBJECTS = 12 # Supports OBJECTS flag for resetting. | ||
uint8 SIMULATION_RESET_SPAWNED = 13 # Supports SPAWNED flag for resetting. | ||
|
||
uint8 SIMULATION_PAUSE = 14 # Supports SetSimulationPaused interface | ||
uint8 STEP_SIMULATION_SINGLE = 15 # Supports single stepping through simulation with StepSimulation interface. | ||
uint8 STEP_SIMULATION_MULTIPLE = 16 # Supports multi-stepping through simulation, either through StepSimulation. | ||
# service or through MultiStepSimulation action. | ||
uint8 STEP_SIMULATION_ACTION = 17 # Supports MultiStepSimulation action interface. | ||
|
||
|
||
uint8[] features # A list of simulation features as specified by the list above. | ||
string custom_info # Optional: additional information for the caller, which could point to documentation, | ||
# version compatibility and other useful meta information. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Get predefined spawn poses which is convenient to avoid spawning in invalid spaces. | ||
# This is an optional simulation feature: check status_message if you receive an empty spawn_poses vector, | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# to determine whether this feature is not supported by your simulator, or spawn poses are simply not defined. | ||
|
||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
--- | ||
|
||
SpawnPose[] spawn_poses # A list of predefined spawn_poses, which may be empty. | ||
|
||
bool success # Return true if successful. | ||
string status_message # Additional comments or error status. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Return a list of resources which are valid as SpawnEntity uri fields (e.g. visible to or registered in simulator). | ||
# This interface is an optional extension and might not be implemented by your simulator, check the status_message. | ||
|
||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
--- | ||
|
||
Spawnable[] spawnables # Spawnable objects with URI and additional information. | ||
|
||
bool success # Return true if successful. | ||
string status_message # Additional comments or error status. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Reset the simulation to the start, including the entire scene and the simulation time. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Objects that were dynamically spawned are de-spawned. | ||
|
||
uint8 DEFAULT=0 # same as ALL. | ||
uint8 TIME=1 # Reset simulation time to start. | ||
uint8 OBJECTS=2 # Reset all poses and velocities. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uint8 SPAWNED=4 # De-spawns all spawned entities. | ||
uint8 ALL=7 # Fully resets simulation to the start, as if it was closed and launched again. | ||
|
||
uint8 reset_scope # Scope of the reset. Note that simulators might only support some types of resets. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
--- | ||
|
||
bool success # Return true if successful. | ||
string status_message # Additional comments or error status, such as what reset types are supported. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Set a state of an object, which will result in an instant change in its pose and/or twist. | ||
|
||
string name # Unique name as returned by GetEntities or SpawnEntity. | ||
EntityState state # New state to set immediately. The timestamp in header is ignored. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
--- | ||
|
||
bool success # Return true if successful. | ||
string status_message # Additional comments or error status. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Pauses or unpauses the simulation | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
bool pause # If true, sets simulation state to paused, otherwise sets it to running. | ||
# If already in target state, nothing happens but status_message informs about it. | ||
|
||
--- | ||
|
||
bool success # Return true if pausing / resuming was successful. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
string status_message # Additional comments or error status. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Spawn an entity (a robot, other object) by name or URI | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
string name # Suggest a name to give to the spawned entity. If left empty, it will be generated. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Due to requirement for name uniqueness and the namespace, check the status_message | ||
# to get an actual unique name to use for further queries. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
string uri # Resource such as SDF or URDF file, or in native format such as prefab. | ||
# Valid URIs can be determined by calling GetSpawnables first, | ||
# if the feature is supported by your simulator. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
string entity_namespace # Spawn robot or another object with all its interfaces under this namespace. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
string reference_frame # Optional initial pose reference frame. Defaults to global "world" frame. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# This ROS frame must be known to the simulator, e.g. of an object spawned earlier. | ||
geometry_msgs/Pose initial_pose # Initial entity pose. Simulators should spawn the entity with its top-level link | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# transform matching this pose. | ||
|
||
--- | ||
|
||
bool success # Return true if spawned successfully. | ||
string status_message # On failure, a user-friendly error message. | ||
string unique_name # Spawned entity full name (with namespace). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# If simulation is paused, take N steps and pause it back. The service only returns once stepping is complete, which | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# might take considerable time. | ||
# There is an alternative in MultiStepSimulation action, which is worth considering for a multi-step interface. | ||
|
||
uint16 steps # Step through the simulation loop this many times. | ||
adamdbrw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
--- | ||
|
||
bool success # Return true if stepping is supported and was successful. | ||
string status_message # Additional comments or error status. | ||
# Calling with simulation not paused will return failure and an appropriate message. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.