|
MoveIt Pro API
Core Behaviors for MoveIt Pro
|
Classes | |
| class | MPCBehaviorBase |
| All non-template implementation for the templated MPCBehaviorBase class. More... | |
| struct | Sam2AutomaskModelPorts |
| struct | Sam3ModelPorts |
Enumerations | |
| enum class | PolicyResponseOutcome { kChunkProduced , kEndOfRun , kFailed } |
Functions | |
| PolicyResponseOutcome | classifyPolicyResponse (std::uint8_t status) |
| Classify a GetActionChunk response status into the run outcome it demands. | |
| std::string | policyResponseFailureMessage (const moveit_pro_ml_msgs::srv::GetActionChunk::Response &response) |
| Render a response classified kFailed as the run's failure reason. | |
| template<typename Lockable , typename StopTransition > | |
| void | stopRecordingUnderLock (Lockable &mutex, StopTransition &&set_stopped) |
| Performs the stop transition while holding the mutex shared with trajectory mutation. | |
| template<typename Lockable , typename StopPredicate , typename TrajectoryMutation > | |
| bool | mutateTrajectoryUnlessStopped (Lockable &mutex, StopPredicate &&is_stopped, TrajectoryMutation &&mutate_trajectory) |
| Mutates the trajectory only while the stop predicate is false under the shared mutex. | |
| PolicyResponseOutcome moveit_pro::behaviors::internal::classifyPolicyResponse | ( | std::uint8_t | status | ) |
Classify a GetActionChunk response status into the run outcome it demands.
CHUNK_PRODUCED executes the chunk and NO_MORE_ACTIONS ends the run as complete; everything else fails the run: ERROR, UNKNOWN (the server never set the field), and any value the contract does not define, so only an explicit NO_MORE_ACTIONS may end a run as complete.
| status | The response's status field. |
| bool moveit_pro::behaviors::internal::mutateTrajectoryUnlessStopped | ( | Lockable & | mutex, |
| StopPredicate && | is_stopped, | ||
| TrajectoryMutation && | mutate_trajectory | ||
| ) |
Mutates the trajectory only while the stop predicate is false under the shared mutex.
| std::string moveit_pro::behaviors::internal::policyResponseFailureMessage | ( | const moveit_pro_ml_msgs::srv::GetActionChunk::Response & | response | ) |
Render a response classified kFailed as the run's failure reason.
An unset or contract-undefined status gets its own text naming the adapter-side bug; ERROR reports the response's message as the reason.
| response | The policy response that failed the run. |
| void moveit_pro::behaviors::internal::stopRecordingUnderLock | ( | Lockable & | mutex, |
| StopTransition && | set_stopped | ||
| ) |
Performs the stop transition while holding the mutex shared with trajectory mutation.