The script contains this section...
Code:Select all
# Health is a bit iffy since '/system health' does not have 'find' in ROS6 :local health [/system health print as-value] :local supplyVoltage 0 :local boardTemp 0 :foreach entry in=$health do={ :if ($entry->"name" = "voltage") do={:set $supplyVoltage ($entry->"value")} :if ($entry->"name" = "board-temperature1") do={:set $boardTemp ($entry->"value")} }
I am looking for some clarity on the "Health is a bit iffy since '/system health' does not have 'find' in ROS6". Is this script written to be backwards compatible with ROS6? Can it be improved if being used with ROS7?
Thanks in advance.