Skip to main content

ActionTypeDescription

Trait ActionTypeDescription 

Source
pub trait ActionTypeDescription {
    // Required methods
    fn type_description() -> TypeDescriptionMsg;
    fn action_type_name() -> MessageTypeName;

    // Provided method
    fn compute_hash() -> Result<String> { ... }
}
Expand description

Trait for ROS2 action types that can provide a type description for hash computation

This trait is separate from ActionMsg (which is for runtime FFI) and only requires TypeDescription on Goal/Result/Feedback types.

Required Methods§

Source

fn type_description() -> TypeDescriptionMsg

Get the type description for this action

The action type description has fields:

  • goal: Reference to the Goal message type
  • result: Reference to the Result message type
  • feedback: Reference to the Feedback message type
  • send_goal_service: Reference to the SendGoal service
  • get_result_service: Reference to the GetResult service
  • feedback_message: Reference to the FeedbackMessage type
Source

fn action_type_name() -> MessageTypeName

Get the action type name information

Provided Methods§

Source

fn compute_hash() -> Result<String>

Compute the RIHS01 type hash for this action

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§