ResetMujocoKeyframe Class
Resets the MuJoCo simulation to a specified keyframe. More...
Declaration
Included Headers
Base class
| class | ServiceClientBehaviorBase<ServiceT> |
|
A base class for behaviors which need to send a request to a ROS service client and wait for a result. More... | |
Public Constructors Index
| ResetMujocoKeyframe (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) | |
Private Member Functions Index
| tl::expected< std::string, std::string > | getServiceName () override |
|
Get the service name from the behavior's input ports. More... | |
| tl::expected< moveit_studio_internal_msgs::srv::ResetMujocoKeyframe::Request, std::string > | createRequest () override |
|
Create the service request. More... | |
| tl::expected< bool, std::string > | processResponse (const moveit_studio_internal_msgs::srv::ResetMujocoKeyframe::Response &response) override |
|
Process the service response. More... | |
| tl::expected< std::chrono::duration< double >, std::string > | getResponseTimeout () override |
|
Get timeout for server response. More... | |
| tl::expected< std::chrono::duration< double >, std::string > | getWaitForServerAvailableTimeout () override |
|
Get timeout for waiting for the server to be available. More... | |
| std::shared_future< tl::expected< bool, std::string > > & | getFuture () override |
|
Classes derived from AsyncBehaviorBase must implement getFuture() so that it returns a shared_future class member. More... | |
Private Member Attributes Index
| std::shared_future< tl::expected< bool, std::string > > | future_ |
|
Classes derived from AsyncBehaviorBase must have this shared_future as a class member. More... | |
Public Static Functions Index
| static BT::PortsList | providedPorts () |
| static BT::KeyValueVector | metadata () |
Description
Resets the MuJoCo simulation to a specified keyframe.
This behavior calls a service to reset the MuJoCo simulation state to a named keyframe. The keyframe must be defined in the MuJoCo scene model.
| Data Port Name | Port Type | Object Type |
|---|---|---|
| keyframe_name | input | std::string |
| response_timeout | input | double |
| wait_for_server_available_timeout | input | double |
Definition at line 27 of file reset_mujoco_keyframe.hpp.
Public Constructors
ResetMujocoKeyframe()
|
Declaration at line 30 of file reset_mujoco_keyframe.hpp, definition at line 47 of file reset_mujoco_keyframe.cpp.
Private Member Functions
createRequest()
| virtual |
Create the service request.
Declaration at line 42 of file reset_mujoco_keyframe.hpp, definition at line 73 of file reset_mujoco_keyframe.cpp.
getFuture()
| inline virtual |
Classes derived from AsyncBehaviorBase must implement getFuture() so that it returns a shared_future class member.
Definition at line 55 of file reset_mujoco_keyframe.hpp.
getResponseTimeout()
| virtual |
Get timeout for server response.
Declaration at line 49 of file reset_mujoco_keyframe.hpp, definition at line 103 of file reset_mujoco_keyframe.cpp.
getServiceName()
| virtual |
Get the service name from the behavior's input ports.
Declaration at line 39 of file reset_mujoco_keyframe.hpp, definition at line 67 of file reset_mujoco_keyframe.cpp.
getWaitForServerAvailableTimeout()
| virtual |
Get timeout for waiting for the server to be available.
Declaration at line 52 of file reset_mujoco_keyframe.hpp, definition at line 113 of file reset_mujoco_keyframe.cpp.
processResponse()
|
Process the service response.
Declaration at line 46 of file reset_mujoco_keyframe.hpp, definition at line 87 of file reset_mujoco_keyframe.cpp.
Private Member Attributes
future_
|
Classes derived from AsyncBehaviorBase must have this shared_future as a class member.
Definition at line 62 of file reset_mujoco_keyframe.hpp.
Public Static Functions
metadata()
| static |
Declaration at line 35 of file reset_mujoco_keyframe.hpp, definition at line 62 of file reset_mujoco_keyframe.cpp.
providedPorts()
| static |
Declaration at line 33 of file reset_mujoco_keyframe.hpp, definition at line 53 of file reset_mujoco_keyframe.cpp.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.