Robotics StackExchange | Archived questions

check controller_manager status

I am using roscontrol with robotis arms (github). I want to know how to check the status of the `controllermanager. Because I found that even if thecontroller_managerdies, thewrite` is still executed which could lead to improper data being written.

I encountered this when I used <node name="ros_control_controller_manager" pkg="controller_manager" type="controller_manager" respawn="false" output="screen" args="load pos_based_pos_traj_controller" /> in my launch file. The controller would load and then stop, but the write would be writing zero to the hardware.

So how can I overcome this problem or is this a invalid concern?

Also how do you check whether system has initialized properly, so that you can write. As when you initialize the system for the first time, I have only zeros in the position_cmd variable used to write to the hardware for certain period of time.

Asked by lonewolf on 2016-04-22 01:22:30 UTC

Comments

Not really an answer, but I've seen this kind of thing done by basically implementing a position hold, where write(..) uses the values from read(..) until it has received new valid values.

Asked by gvdhoorn on 2016-04-22 02:17:57 UTC

Answers