Open prashantganesh-episci opened 1 year ago
If Im not mistakened the /mavros/local_position/pose topic is only for subscribing to the UAV's local position after it runs through the UAV's internal ekf loop, which is what setpoint_position uses to check if its at the desired location. If you want to send in an external pose estimate you need to use the /mavros/vision_pose/pose topic which is an PRE ekf estimation.
One plugin can subscribe to other plugin. That's fine. But on graph you'll see that mavros both publishes and subscribes some topics.
On your diagnostics there no connection, so you'll never get any response from the FCU.
@Kian-Wee and @vooon sounds good. I will try publishing to the /vision_pose/pose topic. Thank you!
@Kian-Wee @vooon We publish the /vision_pose/pose topic, but /mavros/local_position/pose is not affected. We set EKF2_AID_MASK to 280 and SYS_MC_EST_GROUP to 1(ekf2). and We are using melodic.
Should I change these params?
No, i think you probably need to change something in FC's params.
No, i think you probably need to change something in FC's params.
@vooon Could you tell me more detail about that? What's the FC's params?
I can't find those params in my qgc
I can't find those params in my qgc
Those params are for LPE, Not EKF2
What rate are you sending in your vision_pose at? It should be minimally 30hz(with covariance). You should be able to verify if the FC is receiving it by typing listener vehicle_visual_odometry into the mavlink console in QGC if you enable the GCS bridge.
Hi, I am following PX4's instructions on sending external vison based pose and it requests sending pose estimates to mavros/vision_pose/pose. What is the difference between sending the pose to that topic vs sending it to /mavros/local_position/pose? Digging into the setpoint_position.cpp it looks like the /mavros/local_position/pose updates the local position:
Issue details
I also noticed that the setpoint_poisition.cpp subscribes to /mavros/local_position/pose while the local_position.cpp plugin subscribes to the same topic which creates a loop. Is this something that needs to be changed?
MAVROS version and platform
Mavros: 1.16.0 ROS: Noetic Ubuntu: 20.04
Autopilot type and version
[ ] ArduPilot [ x ] PX4
Node logs
Diagnostics