Class SocketCanReceiverNode

Inheritance Relationships

Base Type

  • public rclcpp_lifecycle::LifecycleNode

Class Documentation

class SocketCanReceiverNode : public rclcpp_lifecycle::LifecycleNode

SocketCanReceiverNode class which can pass messages from CAN hardware or virtual channels.

Public Functions

explicit SocketCanReceiverNode(rclcpp::NodeOptions options)

Default constructor.

LNI::CallbackReturn on_configure(const lc::State &state) override

Callback from transition to “configuring” state.

Parameters:

state[in] The current state that the node is in.

LNI::CallbackReturn on_activate(const lc::State &state) override

Callback from transition to “activating” state.

Parameters:

state[in] The current state that the node is in.

LNI::CallbackReturn on_deactivate(const lc::State &state) override

Callback from transition to “deactivating” state.

Parameters:

state[in] The current state that the node is in.

LNI::CallbackReturn on_cleanup(const lc::State &state) override

Callback from transition to “unconfigured” state.

Parameters:

state[in] The current state that the node is in.

LNI::CallbackReturn on_shutdown(const lc::State &state) override

Callback from transition to “shutdown” state.

Parameters:

state[in] The current state that the node is in.

void receive()

Callback for reading from hardware interface on timer tick.