ubuntu 20.04 ros noetic 运行multirotor_communication.py, 再运行multirotor_keyboard_control.py会报错。无法建立通讯
[ERROR] [1727331187.845439, 2111.633000]: bad callback: <bound method Communication.cmd_vel_flu_callback of <main.Communication object at 0x7f6c2a317fd0>>
Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/topics.py", line 750, in _invoke_callback
cb(msg)
File "multirotor_communication.py", line 114, 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 148, in hover_state_transition
self.hover()
File "multirotor_communication.py", line 197, 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'

xtrone使用问题(键盘控制)
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-