robin-shaun / XTDrone

UAV Simulation Platform based on PX4, ROS and Gazebo
MIT License
1.11k stars 204 forks source link

仿真平台基础配置中控制无人机建立通信时报错 #112

Open DZ-yxz opened 1 month ago

DZ-yxz commented 1 month ago

[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…]()

DZ-yxz commented 1 month ago

现在是可以连上了,但是地面站显示Amred一会儿之后就变成ready了,也没起飞。速度啥的都设置好了

moyubailan commented 2 weeks ago

相同问题