Custom robot hardware_interface implementation
Hi, colleagues!
Regarding my previous question (https://answers.ros.org/question/3702...) I looked for ros_control and ros_controllers packages as a first steps in making my manipulator available for high-level.
As mentioned in some examples, it is need to make custom ROBOT_hardware_interface implementation, which has a ad() and write() methods.
For example extracts from example (https://www.rosroboticslearning.com/r...) code contains prototypes like:
void MyRobot::read() {
// Write the protocol (I2C/CAN/ros_serial/ros_industrial)used to get the current joint position and/or velocity and/or effort
//from robot.
// and fill JointStateHandle variables joint_position_[i], joint_velocity_[i] and joint_effort_[i]
}
So, the question is: is it possible to implement such code that read positions/velocities from other node using service calls (or maybe topics) ? May this way cause any problem? I think read() and write() methods are just usual functions, not specific to SPI/I2C etc. communications...
Thanks for answers!