personalrobotics / prpy

Python utilities used by the Personal Robotics Laboratory.
BSD 3-Clause "New" or "Revised" License
62 stars 19 forks source link

Removing an encode line which causes AttributeError #374

Open Shushman opened 7 years ago

Shushman commented 7 years ago

While deserializing with the current setup I get the following error:

/home/shushman/ros_control_ws/src/prpy/src/prpy/serialization.pyc in <lambda>(x)
    661     '_type': (
    662         lambda x: x.name,
--> 663         lambda x: openravepy.KinBody.JointType.names[x].encode()
    664     ),
    665     '_vanchor': numpy_identity,

AttributeError: 'JointType' object has no attribute 'encode'

Removing the .encode, as suggested by @mkoval , seems to fix this. Should that change be made permanent?