RoverRobotics-archive / ros1_roverpro_auto_dock

This package allows you to autonomously dock any of the open rovers using just a camera.
Other
16 stars 17 forks source link

'Transform' object has no attribute 'transform' #1

Closed shoemakerlevy9 closed 6 years ago

shoemakerlevy9 commented 6 years ago

Every so often I get the below error. The node doesn't die, but auto_docking doesn't work afterwards.

Exception in thread Thread-10:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/timer.py", line 235, in run
    self._callback(TimerEvent(last_expected, last_real, current_expected, current_real, last_duration))
  File "/home/ubuntu/catkin_ws/src/rr_auto_dock/scripts/auto_dock.py", line 166, in state_manage_cb
    [theta, distance] = self.fid2pos(self.dock_aruco_tf)
  File "/home/ubuntu/catkin_ws/src/rr_auto_dock/scripts/auto_dock.py", line 232, in fid2pos
    q_now = [fid_tf.transform.rotation.x, fid_tf.transform.rotation.y, fid_tf.transform.rotation.z, fid_tf.transform.rotation.w]
AttributeError: 'Transform' object has no attribute 'transform'
jack-digilabs commented 6 years ago

Commit 64ebb6d742267bc473de2ab645f04c8da57b3c87 fixed #1