ark::canbus::SocketCanStage

Defined in header “ark/canbus/stages/socket_can_stage.hh”.


A generic SocketCAN interface stage that will listen to a given CAN device and publish any packets received onto the configured channel.

Methods

  • SocketCanStage(std::string name)
    Constructor.

  • ~SocketCanStage()
    Destructor.

  • void initialize(pipeline::StageInterface & interface)
    Initializes the stage, preparing publishers/subscribers.

  • void start()
    Starts the stage, creating a background thread for I/O.

  • void shutdown()
    Stops all running threads.

  • bool is_bound()
    Returns true if we are bound; false otherwise. This is intended to be used for testing.