View Source Rclex.MsgProt protocol (Rclex v0.8.5)
Defines protocol which supports arbitrary message types. Modules implementing this protocol should define relationships between Elixir structure data and C structure data.
Link to this section Summary
Functions
Should return reference to C struct instance.
Should return Elixir struct loaded with data from C struct instance.
Should set Elixir struct to C struct instance.
Should return typesupport reference.
Link to this section Types
@type t() :: term()
Link to this section Functions
@spec initialize(msg_type :: struct()) :: Rclex.Nifs.ros_message()
Should return reference to C struct instance.
Should return Elixir struct loaded with data from C struct instance.
@spec set(data :: struct(), msg :: Rclex.Nifs.ros_message()) :: :ok
Should set Elixir struct to C struct instance.
@spec typesupport(msg_type :: struct()) :: Rclex.Nifs.rosidl_message_type_support()
Should return typesupport reference.