[ERROR] [1721407031.809526, 2352.013000]: bad callback: <bound method Communication.cmd_vel_flu_callback of <main.Communication instance at 0x7fefd9af6640>>
Traceback (most recent call last):
File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback
cb(msg)
File "multirotor_communication.py", line 117, in cmd_vel_flu_callback
self.hover_state_transition(msg.linear.x, msg.linear.y, msg.linear.z, msg.angular.z)
File "multirotor_communication.py", line 151, in hover_state_transition
self.hover()
File "multirotor_communication.py", line 200, in hover
self.target_motion = self.construct_target(x=self.current_position.x,y=self.current_position.y,z=self.current_position.z,yaw=self.current_yaw)
AttributeError: 'NoneType' object has no attribute 'x'
![Uploading 屏幕截图 2024-07-20 003838.png…]()
[ERROR] [1721407031.809526, 2352.013000]: bad callback: <bound method Communication.cmd_vel_flu_callback of <main.Communication instance at 0x7fefd9af6640>> Traceback (most recent call last): File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback cb(msg) File "multirotor_communication.py", line 117, in cmd_vel_flu_callback self.hover_state_transition(msg.linear.x, msg.linear.y, msg.linear.z, msg.angular.z) File "multirotor_communication.py", line 151, in hover_state_transition self.hover() File "multirotor_communication.py", line 200, in hover self.target_motion = self.construct_target(x=self.current_position.x,y=self.current_position.y,z=self.current_position.z,yaw=self.current_yaw) AttributeError: 'NoneType' object has no attribute 'x' ![Uploading 屏幕截图 2024-07-20 003838.png…]()