ros-controls / ros2_control

Generic and simple controls framework for ROS 2
https://control.ros.org
Apache License 2.0
463 stars 282 forks source link

Handling the job such as initialize, homing, clear alarm, etc by topic or service or action. #551

Open byeongkyu opened 2 years ago

byeongkyu commented 2 years ago

Many robots has multiple joints. Some joints needs initializing procedure for example, find origin point. Now, the hardware_interface has only init->read->write loop and it it not accept any commands by external.

How can I implement the jobs that said above?

destogl commented 2 years ago

Hi @byeongkyu,

This is very fascinating topic and I will write here how I am solving this issues with my customers.

I wanted to explain you this today, but I will probably not manage it. I will try to make a full description, a figure and few PR which could help you over the weekend.

Stay tuned!

destogl commented 2 years ago

Hi @byeongkyu,

sorry for taking me so long time. Here the explanation "how I would solve this":

Please also consider following figure to better understand callback and lifecycle of the hardware in ros2_control

hardware_interface_lifecycle