43 CallbackReturn on_init(
const hardware_interface::HardwareComponentInterfaceParams& params)
override;
45 hardware_interface::return_type
read(
const rclcpp::Time& time,
const rclcpp::Duration& period)
override;
47 hardware_interface::return_type
write(
const rclcpp::Time& time,
const rclcpp::Duration& period)
override;
50 struct JointCommandGroup
52 std::string interface_name;
53 std::vector<std::string> joint_names;
54 std::vector<std::string> command_keys;
55 control_msgs::msg::JointCommand msg;
58 rclcpp::Subscription<sensor_msgs::msg::JointState>::SharedPtr topic_based_joint_states_subscriber_;
59 std::map<std::string, rclcpp::Publisher<control_msgs::msg::JointCommand>::SharedPtr>
60 topic_based_joint_command_publishers_;
61 std::map<std::string, JointCommandGroup> command_groups_;
63 bool sum_wrapped_joint_states_{
false };
65 double trigger_joint_command_threshold_ = 1e-5;
hardware_interface::return_type read(const rclcpp::Time &time, const rclcpp::Duration &period) override
Read the current state values from the actuator.
Definition joint_command_topic_hardware_interface.cpp:110
hardware_interface::return_type write(const rclcpp::Time &time, const rclcpp::Duration &period) override
Write the current command values to the actuator.
Definition joint_command_topic_hardware_interface.cpp:183