-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error - no attribute 'flushoutput' #427
Comments
I'm receiving the same error. Did you find a solution? |
I work on ROS Melodic on Raspberry Pi 4 with Raspbian Buster. I also got the same issue, so I remove code around line 556 in SerialClient.py
It's seems to work now ... I hope those lines weren't so important ... |
On line 281 flushInput() is defined, so I pasted a similar definition right below:
I initially thought it may be because flushInput/flushOutput are depreciated from pyserial (now called reset_output_buffer() ): https://pythonhosted.org/pyserial/pyserial_api.html#serial.Serial.reset_output_buffer I'm running pyserial 3.4. This change didn't help so I just created the blank definition above and it seems to work robustly enough. |
flushInput/Output are maybe depreciated, but adding the flushOutput definition seems to be required. Source here: ros-drivers#427
When running
$ rosrun rosserial_python serial_node.py tcp
and the device (NodeMCU) is reset
I get the following
The text was updated successfully, but these errors were encountered: