-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added sf45 as a seperate rangefinder #3448
base: main
Are you sure you want to change the base?
Conversation
e14bb3c
to
4270c05
Compare
4270c05
to
4376433
Compare
This is IMO ready when your PR is ready - thanks very much!!! I did some restructure to make the new rangefinder doc a sub-doc - that allows us to expand the structure if we want in future. Note that the build error can be ignored. It happens because I moved one of the image files alongside the other, and the existing translations depend on that location. This will be fixed after merging by crowdin. |
2d2246c
to
a32bec6
Compare
b561ee8
to
3b6e6d0
Compare
I've separately added a PR the lanbao, so that this isn't mixed in with this PR about #3487 |
1dbe41f
to
43c85a9
Compare
|
||
<video src="../../assets/hardware/sensors/lidar_lightware/sf45_plotjuggler.mp4" width="720" controls></video> | ||
|
||
In order to generate this kind of plot you will need to add the following Reactive Scripts to PlotJuggler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a Reactive Script? Is there a good link to a definition we can add here for someone wanting to learn more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reactive scripts are Lua scripts inside plot juggler, sadly the documentation for PlotJuggler is severely lacking. So there's no good source on what it actually is.
In order to generate this kind of plot you will need to add the following Reactive Scripts to PlotJuggler. | ||
If you save these scripts and then add new data, you will see a new timeseries called `obstacle_distance_xy`, which is the same as is displayed in the video. | ||
|
||
**Global code, executed once:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it bleedingly obvious how you execute/add these scripts? If not then we need to either add a link to instructions or explain how here. Up to you which.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly not, i'll add a screenshot, and mention where the setting is.
|
||
Debugging problems with distance sensors is much easier if you can plot the [OBSTACLE_DISTANCE](https://mavlink.io/en/messages/common.html#OBSTACLE_DISTANCE) message in an x-y plot, because this lets you directly see the orientation of the measurement in respect of the drone. | ||
|
||
The video below shows how you can view such a plot in PlotJuggler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is a live view as per https://docs.px4.io/main/en/debug/plotting_realtime_uorb_data.html ?
Can we link to this too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, currently its just a log replay. i found a way you can adapt the script to use for realtime debugging with it, i can write the code for it in collision prevention in a seperate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! I merged #3492 so can you try integrate the changes here now that exists?
Can we get the video on PX4 youtube and link it. The file is not huge, but obviously it is cheaper if authors don't have to download it for local editing |
a video of the SF45. the plotjuggler layout or of the drone flying? |
The plotjuggler layout. Sorted by the other PR probably. |
@hamishwillee how could I get the video onto PX4 YouTube? |
You want the one in this PR too? I can upload it for you if you want? |
Might make sense to keep the filesize low? i think here its a good visualisation on how the sensor operates |
8d256f4
to
78a9d4f
Compare
No wo;rries. File is uploading. Link will be https://youtu.be/VwEd_7aiLEo |
No flaws found |
Relevant PR's