16#ifndef IGN_ROS2_CONTROL__IGN_SYSTEM_HPP_
17#define IGN_ROS2_CONTROL__IGN_SYSTEM_HPP_
24#include "ign_ros2_control/ign_system_interface.hpp"
25#include "rclcpp_lifecycle/state.hpp"
26#include "rclcpp_lifecycle/node_interfaces/lifecycle_node_interface.hpp"
28namespace ign_ros2_control
31class IgnitionSystemPrivate;
43 CallbackReturn on_configure(
const rclcpp_lifecycle::State & previous_state)
override;
52 CallbackReturn on_activate(
const rclcpp_lifecycle::State & previous_state)
override;
55 CallbackReturn on_deactivate(
const rclcpp_lifecycle::State & previous_state)
override;
58 hardware_interface::return_type
read()
override;
61 hardware_interface::return_type
write()
override;
65 rclcpp::Node::SharedPtr & model_nh,
66 std::map<std::string, ignition::gazebo::Entity> & joints,
68 ignition::gazebo::EntityComponentManager & _ecm,
69 int & update_rate)
override;
79 std::unique_ptr<IgnitionSystemPrivate> dataPtr;
Definition ign_system_interface.hpp:76
Definition ign_system.hpp:37
CallbackReturn on_init(const hardware_interface::HardwareInfo &system_info) override
Initialization of the hardware interface from data parsed from the robot's URDF.
Definition ign_system.cpp:330
hardware_interface::return_type write() override
Write the current command values to the actuator.
Definition ign_system.cpp:415
std::vector< hardware_interface::StateInterface > export_state_interfaces() override
Exports all state interfaces for this hardware interface.
Definition ign_system.cpp:349
std::vector< hardware_interface::CommandInterface > export_command_interfaces() override
Exports all command interfaces for this hardware interface.
Definition ign_system.cpp:355
bool initSim(rclcpp::Node::SharedPtr &model_nh, std::map< std::string, ignition::gazebo::Entity > &joints, const hardware_interface::HardwareInfo &hardware_info, ignition::gazebo::EntityComponentManager &_ecm, int &update_rate) override
Initialize the system interface param[in] model_nh Pointer to the ros2 node param[in] joints Map with...
Definition ign_system.cpp:142
hardware_interface::return_type read() override
Read the current state values from the actuator.
Definition ign_system.cpp:372
This structure stores information about hardware defined in a robot's URDF.
Definition hardware_info.hpp:101