-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Tlog plugin #41
Comments
I totally recommend a bridge to FlightPlot: http://pixhawk.org/dev/flightplot and pymavlink: http://pixhawk.org/dev/pymavlink |
Ok, i'll see this. Log plugin not highly required (because FCU also has it's log, and GCS too), maybe easies way it use rosbag on |
The importance of this bridge is the possibility of direct access to .bin files on the sdcard and get them to FlightPlot or pymavlink, which are already prepared to read the .bin log files. |
A good tool to plot trajectories: https://code.google.com/p/streamvis/ |
I also may give a try to Related:
|
One more thing: to have access to the log files: http://www.qgroundcontrol.org/mavlink/ftp, which means a FTP protocol communication on mavros side. |
FTP now not very stable, currently better use QGC for it. |
QGC uses the FTP to download the log files. Something on ROS side I believe it's possible to do also. |
@vooon I really would like to give a try at this, but you have to help me regarding the FTP side. It's already merged onto PX4 This could be great to download the Another good thing to do is printing the It will require some days of work but I think we can manage to get something good of this. Note: the related msg is FILE_TRANSFER_PROTOCOL. And here's the QGC side: https://github.com/mavlink/qgroundcontrol/pull/658/files. |
Wait some time. Current implementation use ENCAPSULATED_DATA message. I think FILE_TRANSFER_PROTOCOL incomplete: they can extract message header from data filed. |
Where have you found that info? Probably |
It you look into the code, you found that every FTP message contain header, that can be moved to mavlink message. In addition, I do not like that the FTP interferes with image streaming. |
So what's the best option? That interference with the image streaming may be normal so it can get better download speeds. |
Regarding reading (or writing) from files: http://answers.ros.org/question/128891/how-to-read-and-writing-ros-message-efficient-into-files-c/. This way we can publish the content into Since you say to wait for FTP to be more stable, we can start by creating a srv to read log files and get them showed on terminal or published in a topic. |
I decide just use rosbag. Example launch: <launch>
<!-- vim: ft=xml -->
<include file="$(find mavros)/launch/apm2_radio.launch">
<arg name="gcs_url" value="tcp-l://" />
</include>
<!-- log all data for now -->
<node pkg="rosbag" type="record" name="rosbag" args="-a" />
</launch> |
@vooon you are making a confusion between the current logs and the logs that come from |
I use APM 2.6 on bixler, so it hasn't sd card, only DataFlash 4MB chip. Initional this issue about writing logs by mavros on ground computer, and i solve it using rosbag. |
OK then. So I think we can move to #138, which is prety much the same but tends to get log data to terminal. |
Plugin to write fcu message logs.
The text was updated successfully, but these errors were encountered: