pr2_mechanism_msgs¶
Contents:
Summary¶
-
pr2_mechanism_msgs
¶ Version: 1.8.0
Description: This package defines services that are used to communicate with the realtime control loop. It also defines messages that represent the state of the realtime controllers, the joints and the actuators.
Maintainers: - Wim Meeussen <wim AT hidof DOT com>
Licenses: - BSD
Urls: Authors: - Stuart Glaser <sglaser AT willowgarage DOT com>
- Wim Meeussen <wim AT hidof DOT com>
BuildDepends: BuildtoolDepends: BuildExportDepends: ExecDepends:
Types¶
Service types¶
pr2_mechanism_msgs/LoadController
pr2_mechanism_msgs/ListControllers
pr2_mechanism_msgs/SwitchController
pr2_mechanism_msgs/UnloadController
pr2_mechanism_msgs/ReloadControllerLibraries
pr2_mechanism_msgs/ListControllerTypes
-
pr2_mechanism_msgs/LoadController
¶ Field (Request): - name (string) –
Field (Response): - ok (bool) –
The LoadController service allows you to load a single controller inside pr2_controller_manager
To load a controller, specify the “name” of the controller. The return value “ok” indicates if the controller was successfully constructed and initialized or not.
# The LoadController service allows you to load a single controller # inside pr2_controller_manager # To load a controller, specify the "name" of the controller. # The return value "ok" indicates if the controller was successfully # constructed and initialized or not. string name --- bool ok
-
pr2_mechanism_msgs/ListControllers
¶ Field (Response): - controllers[] (string) –
- state[] (string) –
The ListControllers service returns a list of controller names that are spawned inside pr2_mechanism_control, and their corresponding stats. The state is either running or stopped.
# The ListControllers service returns a list of controller names that are spawned # inside pr2_mechanism_control, and their corresponding stats. The state is either # running or stopped. --- string[] controllers string[] state
-
pr2_mechanism_msgs/SwitchController
¶ Field (Request): - start_controllers[] (string) –
- stop_controllers[] (string) –
- strictness (int32) –
Constant (Request): - BEST_EFFORT (int32):
1
– - STRICT (int32):
2
–
Field (Response): - ok (bool) –
The SwitchController service allows you stop a number of controllers and start a number of controllers, all in one single timestep of the pr2_mechanism_control control loop.
- To switch controllers, specify
the list of controller names to start,
the list of controller names to stop, and
the strictness (BEST_EFFORT or STRICT) * STRICT means that switching will fail if anything goes wrong (an invalid
controller name, a controller that failed to start, etc. )
- BEST_EFFORT means that even when something goes wrong with on controller, the service will still try to start/stop the remaining controllers
The return value “ok” indicates if the controllers were switched successfully or not. The meaning of success depends on the specified strictness.
# The SwitchController service allows you stop a number of controllers # and start a number of controllers, all in one single timestep of the # pr2_mechanism_control control loop. # To switch controllers, specify # * the list of controller names to start, # * the list of controller names to stop, and # * the strictness (BEST_EFFORT or STRICT) # * STRICT means that switching will fail if anything goes wrong (an invalid # controller name, a controller that failed to start, etc. ) # * BEST_EFFORT means that even when something goes wrong with on controller, # the service will still try to start/stop the remaining controllers # The return value "ok" indicates if the controllers were switched # successfully or not. The meaning of success depends on the # specified strictness. string[] start_controllers string[] stop_controllers int32 strictness int32 BEST_EFFORT=1 int32 STRICT=2 --- bool ok
-
pr2_mechanism_msgs/UnloadController
¶ Field (Request): - name (string) –
Field (Response): - ok (bool) –
The UnloadController service allows you to unload a single controller that is loaded in pr2_controller_manager.
To unload a controller, specify the “name” of the controller. The return value “ok” indicates if the controller was unloaded or not. There are three cases when unloadinng a controller will fail:
- No controller with the specified name exists
- The controller is still running
- Another controller depends on the specified controller
# The UnloadController service allows you to unload a single controller # that is loaded in pr2_controller_manager. # To unload a controller, specify the "name" of the controller. # The return value "ok" indicates if the controller was unloaded or not. # There are three cases when unloadinng a controller will fail: # * No controller with the specified name exists # * The controller is still running # * Another controller depends on the specified controller string name --- bool ok
-
pr2_mechanism_msgs/ReloadControllerLibraries
¶ Field (Request): - force_kill (bool) –
Field (Response): - ok (bool) –
The ReloadControllerLibraries service will reload all controllers that are available in the system as plugins
Reloading libraries only works if there are no controllers loaded. If there are still some controllers loaded, the reloading will fail. If this bool is set to true, all loaded controllers will get killed automatically, and the reloading can succeed.
# The ReloadControllerLibraries service will reload all controllers that are available in # the system as plugins # Reloading libraries only works if there are no controllers loaded. If there # are still some controllers loaded, the reloading will fail. # If this bool is set to true, all loaded controllers will get # killed automatically, and the reloading can succeed. bool force_kill --- bool ok
-
pr2_mechanism_msgs/ListControllerTypes
¶ Field (Response): - types[] (string) –
The ListControllers service returns a list of controller types that are known to pr2_mechanism_control.
# The ListControllers service returns a list of controller types that are known # to pr2_mechanism_control. --- string[] types
Action types¶
-
pr2_mechanism_msgs/SwitchController
¶ Field (Goal): - start_controllers[] (string) –
- stop_controllers[] (string) –
string[] start_controllers string[] stop_controllers --- ---