Closed JD-ETH closed 7 years ago
Please follow the issue topics as requested above and edit the comment.
How you check messages sent from mavros to FCU? You need some sort of sniffer tool to see what packets are sent upstream. How you connect to FCU? Because regular QGC only shows what FCU send (downstream).
@vooon My fcu is a erle ros hat running ardupilot. The connection is fine now, I am able to send rc/override message from ground control station, and receiving messages on both ends for example. (imu data both on GCS and erle linux board). Messages are being published in the corresponding topics as sensor/Range.
Can you recommand any sniffer tool?
@JD-ETH doesn't Ardupilot publish DISTANCE_SENSOR
msgs to the ground station? If yes, then you can basically write a wrapper on Ardupilot side that publishes back the msgs that it is receiving.
You may use WireShark, with some setup it should be able to deduce mavlink packets (need wlua).
My fcu is a erle ros
This is a Linux-based autopilot. I suppose you can sniff the msgs easily on it.
@JD-ETH are you already able to check if the msgs are being sent?
@JD-ETH updates?
@TSC21 Sorry for the late reply.
I was not confident with WireShark nor any sniffing tools and I was in a hurry to find a solution(I was in a hackathon). So I worked around and used RC/Override instead on the linux board. the result using just RC/Override https://www.youtube.com/watch?v=aWOI7xQgk4Q&t=4s. The code was quite easy too running on ros.
I couldn't see the distance sensor message being published and after a lot of trouble with Erle brain, I am currently switching to Pixhawk2 (cube). I plan to test on that system instead and see whether the plugin works better there.
Oh cool stuff @JD-ETH! Well what were you using for position estimation? Why didn't you use velocity setpoints instead of overriding the RC controller?
I couldn't see the distance sensor message being published
Why don't you write a mavlink sender on the Firmware side that publishes back what it receives? Like a ping
?
Oh now I see. You were in ALTHOLD
and just letting it drift and avoid the walls in the process.
In the mean time, if you are willing to find a solution for DISTANCE_SENSOR
publishing for Laser Scans, I'll leave this PR open. Otherwise, we can close it. But it would be cool if you could get to a solution useful on this case (not the practical case of the Hackaton).
@TSC21 I would love to help, but now that I am switching to Pixhawk 2 that doesn't natively run ROS, I wonder if this could still help? My setup is going to be Odroid XU4 + pixhawk 2.1 (cube). I am quite unsure still whether I need ROS running on the odroid yet.
I didn't have position estimation because I had big trouble using px4flow on the erle board. So as cool as the object avoidance is, this won't work in real life :P
@TSC21 I would love to help, but now that I am switching to Pixhawk 2 that doesn't natively run ROS, I wonder if this could still help? My setup is going to be Odroid XU4 + pixhawk 2.1 (cube). I am quite unsure still whether I need ROS running on the odroid yet.
Pixhawk 2 is a Mavlink-based autopilot, so it can run both PX4 and APM. And since it is Mavlink-based, it can pair with MAVROS.
I'm closing this then. If you have intentions on doing a PR to add support for LaserScan in the distance_sensor
plugin, you are welcomed.
I am converting a spinning lidar information to distance sensor information, and sequentially sent it over to my FCU. But after setup the plugin and make sure my node is publishing data, I cant oberserve the Mavlink messages on the MavLink inspector of QGroundControl
Mavros Node info:
Issue details
Please describe the problem, or desired feature
MAVROS version and platform
Mavros: 0.18.4 ROS: Kinetic on Erle Brain 3 board (rapsberry pi 3) Rapsberry pi linux
Autopilot type and version
[X] ArduPilot [ ] PX4
Version: 3.4 rc2
Node logs
Diagnostics
Check ID