Skip to content
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

TypeError: can only concatenate str (not "bytes") to str #20

Open
mtncgj123 opened this issue Jul 4, 2022 · 1 comment
Open

TypeError: can only concatenate str (not "bytes") to str #20

mtncgj123 opened this issue Jul 4, 2022 · 1 comment

Comments

@mtncgj123
Copy link

When I run the code, It seems I have successfully connected to the RTK, but I can only receive the bytes data and got an error message like below

[INFO] [1656898801.067970]: Connecting to Reach RTK 192.168.42.1 on port 9001
[INFO] [1656898801.073358]: Successfully connected to device, starting publishing!
Traceback (most recent call last):
File "/home/iasl/ZMJ_ws/src/reach_ros_node/scripts/nmea_tcp_driver", line 142, in
device.start()
File "/home/iasl/ZMJ_ws/src/reach_ros_node/scripts/nmea_tcp_driver", line 62, in start
data = self.buffered_readLine().strip()
File "/home/iasl/ZMJ_ws/src/reach_ros_node/scripts/nmea_tcp_driver", line 125, in buffered_readLine
line += part
TypeError: can only concatenate str (not "bytes") to str

@dscroft
Copy link

dscroft commented Feb 20, 2023

You're running the node using python3. Try this fork instead. https://github.com/lights0123/reach_ros_node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants