Closed fmessmer closed 8 years ago
Could you provide an example that I use to reproduce it?
Hmm, minimal example would be to run:
roslaunch cob_bringup twist_mux.launch robot:=cob4-2
(see here: https://github.com/ipa320/cob_robots/blob/indigo_dev/cob_bringup/tools/twist_mux.launch)
Then subscribe to /diagnostics
:
rostopic echo /diagnostics
and publish to e.g. /twist_mux/command_teleop_joy
:
rostopic pub /twist_mux/command_teleop_joy geometry_msgs/Twist "linear:
x: 0.0
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 0.0" -r 10
You will see the following keys unchanged:
-
key: current priority
value: 0
-
key: loop time in [sec]
value: 0
-
key: data age in [sec]
value: 0
Thanks @ipa-fxm
It looks like at least the loop time is deprecated.
Before I make twist_mux
public, the implementation wasn't asynchronous, but using a loop instead (publishing at a constant frequency, decoupled from the inputs). That was a bad idea because it changed the input signal, discretizing the values in time. I changed it, but it seems that I forgot to update/deprecate some of the diagnostic fields.
Solved with #10
If you feel something is now missed or needed, please create a new issue @ipa-fxm .
For some reason it seems
twist_mux
does not update all the status of its diagnostic message: Although one of the topics isunmasked
, the values of the keyscurrent priority
,loop time
anddata age
are not updated... Anybody seen this, too?