ros2_canopen
master
C++ ROS CANopen Library
|
Abstract Class for a CANopen Device Node. More...
#include <base_driver.hpp>
Public Member Functions | |
BaseDriver (rclcpp::NodeOptions node_options=rclcpp::NodeOptions()) | |
void | register_nmt_state_cb (std::function< void(canopen::NmtState, uint8_t)> nmt_state_cb) |
void | register_rpdo_cb (std::function< void(COData, uint8_t)> rpdo_cb) |
![]() | |
CanopenDriver (const rclcpp::NodeOptions &node_options=rclcpp::NodeOptions()) | |
virtual void | init () override |
Initialise the driver. More... | |
virtual void | set_master (std::shared_ptr< lely::ev::Executor > exec, std::shared_ptr< lely::canopen::AsyncMaster > master) override |
Set the master object. More... | |
virtual rclcpp::node_interfaces::NodeBaseInterface::SharedPtr | get_node_base_interface () override |
Get the node base interface object. More... | |
virtual void | shutdown () override |
Shutdown the driver. More... | |
virtual bool | is_lifecycle () override |
Check whether this is a LifecycleNode. More... | |
virtual std::shared_ptr< node_interfaces::NodeCanopenDriverInterface > | get_node_canopen_driver_interface () |
Get the node canopen driver interface object. More... | |
Additional Inherited Members | |
![]() | |
std::shared_ptr< node_interfaces::NodeCanopenDriverInterface > | node_canopen_driver_ |
Abstract Class for a CANopen Device Node.
This class provides the base functionality for creating a CANopen device node. It provides callbacks for nmt and rpdo.
ros2_canopen::BaseDriver::BaseDriver | ( | rclcpp::NodeOptions | node_options = rclcpp::NodeOptions() | ) |
|
inline |
|
inline |