and error message AttributeError: 'NavigationController' object has no attribute 'UAV_state'
I run on gazebo emulator no error, but when embedding running on raspi hardware with ros is noetic and px4 mini with firmware v1.12.3 appear this error
MAVROS version and platform
Mavros: 2.1.0
ROS: noetic
Ubuntu: 20.04
Autopilot type and version
[ ] ArduPilot
[ x ] PX4
Version: v1.12.3
Node logs
[ERROR] [1668334533.161187]: bad callback: <bound method NavigationController._state_callback of <__main__.NavigationController object at 0xb674d650>>
Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/topics.py", line 750, in _invoke_callback
cb(msg)
File "/home/dronepi/huytd/drone_tracking/src/drone_real_environment/scripts/NavigationServers.py", line 80, in _state_callback
self.UAV_state.armed = topic.armed
AttributeError: 'NavigationController' object has no attribute 'UAV_state'
This is only bug and feature tracker, please use it to report bugs or request features.
Issue details
I do a state theme subscription and have the following code:
and error message
AttributeError: 'NavigationController' object has no attribute 'UAV_state'
I run on gazebo emulator no error, but when embedding running on raspi hardware with ros is noetic and px4 mini with firmware v1.12.3 appear this error
MAVROS version and platform
Mavros: 2.1.0 ROS: noetic Ubuntu: 20.04
Autopilot type and version
[ ] ArduPilot [ x ] PX4
Version: v1.12.3
Node logs