View Source Rclex.Msg (Rclex v0.8.3)

Defines functions which call Rclex.MsgProt implementation.

Link to this section Summary

Functions

Return reference which refers to initialized msg_type C struct instance.

Return list of reference which refers to initialized msg_type C struct instance.

Return msg_type struct loaded with data from C struct instance.

Set Elixir struct to C struct instance.

Return typesupport reference.

Link to this section Functions

@spec initialize(msg_type :: charlist()) :: Rclex.Nifs.ros_message()

Return reference which refers to initialized msg_type C struct instance.

Link to this function

initialize_msgs(msg_count, msg_type)

View Source
@spec initialize_msgs(msg_count :: integer(), msg_type :: charlist()) :: [
  Rclex.Nifs.ros_message()
]

Return list of reference which refers to initialized msg_type C struct instance.

@spec read(msg :: Rclex.Nifs.ros_message(), msg_type :: charlist()) :: struct()

Return msg_type struct loaded with data from C struct instance.

Link to this function

set(msg, data, msg_type)

View Source
@spec set(msg :: Rclex.Nifs.ros_message(), data :: struct(), _msg_type :: charlist()) ::
  :ok

Set Elixir struct to C struct instance.

@spec typesupport(msg_type :: charlist()) :: Rclex.Nifs.rosidl_message_type_support()

Return typesupport reference.