Hi all,
I have netwatch script that well run under ROS 2.9, but it refuse to run under ROS 3.x
the scripts as follows :
- UP
:global LinkUp [/system clock get time];
:log warning ("Link 1 is UP at : " . ($LinkUp));
:log info ("Link 1 outage duration : " . ($LinkUp-$LinkDown));
- DOWN
:global LinkDown [/system clock get time];
:log warning ("Link 1 is Down at : " . ($LinkDown));
The Down script working fine, the problem is on Up script. The third line does not work as it does not recognize $LinkDown.
I’ve try to initialize both of LinkUp and LinkDown variable as global on startup, but :env print say [:nothing] for both.
Any clues please
Paul