41 std::vector<hardware_interface::StateInterface> export_state_interfaces()
override;
43 std::vector<hardware_interface::CommandInterface> export_command_interfaces()
override;
47 status_ = hardware_interface::status::STARTED;
48 return return_type::OK;
51 return_type
stop()
override
53 status_ = hardware_interface::status::STOPPED;
54 return return_type::OK;
57 return_type read()
override;
59 return_type
write()
override {
return return_type::OK; }
69 const std::vector<std::string> standard_interfaces_ = {
70 hardware_interface::HW_IF_POSITION, hardware_interface::HW_IF_VELOCITY,
71 hardware_interface::HW_IF_ACCELERATION, hardware_interface::HW_IF_EFFORT};
73 const size_t POSITION_INTERFACE_INDEX = 0;
77 std::size_t joint_index;
78 std::size_t mimicked_joint_index;
79 double multiplier = 1.0;
81 std::vector<MimicJoint> mimic_joints_;
85 std::vector<std::vector<double>> joint_states_;
87 std::vector<std::string> other_interfaces_;
90 std::vector<std::vector<double>> other_states_;
92 std::vector<std::string> sensor_interfaces_;
95 std::vector<std::vector<double>> sensor_states_;
98 template <
typename HandleType>
100 const std::string & name,
const std::vector<std::string> & interface_list,
101 const std::string & interface_name,
const size_t vector_index,
102 std::vector<std::vector<double>> & values, std::vector<HandleType> & interfaces);
104 void initialize_storage_vectors(
105 std::vector<std::vector<double>> & commands, std::vector<std::vector<double>> & states,
106 const std::vector<std::string> & interfaces);
108 bool fake_sensor_command_interfaces_;
109 double position_state_following_offset_;
110 std::string custom_interface_with_following_offset_;
111 size_t index_custom_interface_with_following_offset_;