Hi,
I deactivated the husarion cloud using: systemctl disable husarion-shield
. But in my opinion I don’t have a service called like this. Anyway after rebooting I still see /dev/tyyCORE2 in the list. It’s not dissappearing like it should be. And I still see my husarion in the cloud that it is online.
To bridge core2 to ros I run after roscore this command: /opt/husarion/tools/rpi-linux/ros-core2-client /dev/ttyS1
Sadly it’s returning immediately some errors as shown below.
[INFO] [1530783839.169099]: Protocol version of client is Rev 0 (rosserial 0.4 and earlier), expected Rev 1 (rosserial 0.5+)
[WARN] [1530783840.659726]: Serial Port read failure: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
[ERROR] [1530783842.996374]: Lost sync with device, restarting...
[WARN] [1530783845.333684]: Serial Port read failure: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
[WARN] [1530783849.518403]: Serial Port read failure: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Traceback (most recent call last):
File "/opt/husarion/tools/rpi-linux/ros-core2-client", line 89, in <module>
client.run()
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 504, in run
self.callbacks[topic_id](msg)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 107, in handlePacket
m.deserialize(data)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/sensor_msgs/msg/_BatteryState.py", line 264, in deserialize
raise genpy.DeserializationError(e) #most likely buffer underfill
genpy.message.DeserializationError: unpack requires a string argument of length 28
I think it is because the CORE2 is still trying to access the same port as ttyS1 is doing. How can I fix this?
To my setup: I’m publishing twist messages on the /cmd_vel topic which the bridge shall receive and set the speed.
I’m using a Rosbot 2.0 with a tinkerboard.
Thanks for your help
Sobieski