rosserial on noetic, bug report

asked 2021-02-27 10:04:06 -0600

wintermute gravatar image

Hello,

While using rosserial on noetic, with a device I built, I observed that rosserial client can not send stop tx request.

Here is the problematic part:

    def txStopRequest(self):
    """ Send stop tx request to client before the node exits. """
    if not self.fix_pyserial_for_test:
        with self.read_lock:
            self.port.flushInput()
    rospy.loginfo("Sending tx stop request..")

    self.write_queue.put(self.header + self.protocol_ver + b"\x00\x00\xff\x0b\x00\xf4")
    rospy.loginfo("Sending tx stop request")

When the user presses CTRL+C on the console, if using melodic, the rosserial device stops. But if using noetic, the rosserial device will continue to think it is still connected.

I have compared code side by side for SerialClient.py and node_handle.h

For some reason, SerialClient.py sends the stop request, but this does not get processed by the rosserial device.

Any ideas/help/recomendations greatly appreciated.

PS: also where should i report this bug?

Best regards, C.A.

edit retag flag offensive close merge delete

Comments

I would file a bug report. . Even better, try to fix the issue and send a pull request.

kscottz gravatar image kscottz  ( 2021-03-01 13:16:05 -0600 )edit

done. I fixed it and sent a pull request.

wintermute gravatar image wintermute  ( 2021-03-05 03:14:12 -0600 )edit
gvdhoorn gravatar image gvdhoorn  ( 2021-03-05 03:33:04 -0600 )edit