How to disconnect nodeHandle

I've used :

while (nh.connected()) {...}

so my arduino car starts when ROSMASTER is running .

My problem is that i can't disconnect nodeHandle when i close the ROSMASTER , which is importan for my task . Any suggestions ???

OK, I give up. What is ROSMASTER ?

Please post a full sketch illustrating the problem, using code tags when you do

ROS MASTER is is the master in which ros nodes are publishing or subscribing to ros topics . The :

nh.connected()

is a function that checks if the ROS MASTER is running .
ROS = Robotic Operating System

Sorry, but that does not take us much further forward. All that I can glean from your reply is that

Your mention of publishing to topics makes it sound very like an MQTT system. Is that anything like you are describing ?

https://maker.pro/arduino/tutorial/how-to-use-arduino-with-robot-operating-system-ros <<< reads like MQTT.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.