We have an introspection loop that sends an heartbeat if the robot is connected. We used the isConnected method to determine wether or not the connection was alive, but, in one of our tests, we shut down the Flexiv controller and our program continued to send the heartbeat. (isConnected() still returned true) Is that intended behavior? If yes, how do I check if the RDK is actually connected to the robot.
Edit: We also tried reconnecting using the connect() method then priniting robot state. Usually, the states would vary slightly, especially joint position and forces, but after we turn the controller off and on as a reconnection test, the state stayperfectly identical. This leads us to believe that calling connect() to reconnect to the controller once it is back online does not actually re-establishes the connection.
We have an introspection loop that sends an heartbeat if the robot is connected. We used the isConnected method to determine wether or not the connection was alive, but, in one of our tests, we shut down the Flexiv controller and our program continued to send the heartbeat. (isConnected() still returned true) Is that intended behavior? If yes, how do I check if the RDK is actually connected to the robot.
Edit: We also tried reconnecting using the connect() method then priniting robot state. Usually, the states would vary slightly, especially joint position and forces, but after we turn the controller off and on as a reconnection test, the state stayperfectly identical. This leads us to believe that calling connect() to reconnect to the controller once it is back online does not actually re-establishes the connection.
We are using the python RDK.