Open marcelino-pensa opened 3 years ago
a year later ...
The second error appears to just be with the example. You fixed the code. I've issued a PR with that fix as you described for the first error.
In Python 2 a that field could be initialized from a string. Now that field is of types "bytes". Try replacing
data: ''
with
data: []
The PR includes standalone launch files you can test.
I am trying to run the example for
relay_field
as described in this link.Terminal 1:
rosrun rospy_tutorials talker.py
Terminal 2:
Terminal 3:
rostopic echo /image
The problem arises at first in Terminal 2, with the following error:
According with this forum, this is related to an update in python3. I went ahead and replaced the check
(type_ is unicode)
with(type_ is bytes)
in the code for relay_field, and things seem to work. However, whenever I go to terminal 3 and runrostopic echo /image
, Terminal 2 starts printing the following error:I hit this dead-end, and I'm not sure on how to fix this. Any guidance or suggestions would be greatly appreciated!