-
Notifications
You must be signed in to change notification settings - Fork 13.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
Add SITL target for px4vision #14469
Conversation
faf708f
to
a4ac339
Compare
Any reason we can't share the actual airframe 4016? https://github.com/PX4/Firmware/blob/master/ROMFS/px4fmu_common/init.d/airframes/4016_holybro_px4vision |
That makes sense to me as well. |
@dagar @TSC21 I still think we need a separate airframe config for sitl models since the mechanical properties / actuator configurations are all different. Wouldn't it be harder to maintain a single file that works on both? IMHO, having the ekf2 masks and configurations (such as COM_OBS_AVOID) set properly would be already useful for people developing on the vehicle |
@Jaeyoung-Lim Then, Is that better if add "sitl" in file name, in case other developer edit wrong file. |
@bys1123 It is already under a different directory. If you want to change the name, this would need to propagate also to all the models and make targets, which I find unnecessary |
Understood, thanks! |
@Jaeyoung-Lim the usual procedure is to try to match the configuration on both sides, and if it's not possible, it needs to be checked what parameters make sense or not and what parameters need an adjustment. My recommendation is that you copy-paste the values of one config file to the posix one and test it. If it works right, then you can keep it. |
The goal would be to use that as a mechanism that forces the model to come into alignment with the real vehicle. If that's not realistic (or of interest) then maintaining both is fine. |
@Jaeyoung-Lim Any Update? |
@Jaeyoung-Lim Don't forget this, thanks~ |
a4ac339
to
ab7cca0
Compare
ab7cca0
to
8910fa5
Compare
Use px4vision parameters Set target name in alphabetical order
8910fa5
to
8bae484
Compare
I tried using the airframe configs of the real vehicle and maybe override the necessary changes on the sitl airframe if necessary. This will make the diff more explicit and manageable. However, the airframe configs seems to work out of the box for the px4vision. @dagar @TSC21 @bys1123 Would this be a acceptable way to add the configs? I am not sure if this adds complexity to the configuration. |
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.
Looks good. If one wants to add specifics to sim, can always add it in this config file.
@Jaeyoung-Lim Thanks very much! How about keep
but comment it, when user need it could easy to enable it? |
@bys1123 The parameters are already enabled on the vehicle airframe configs here: https://github.com/PX4/Firmware/blob/master/ROMFS/px4fmu_common/init.d/airframes/4016_holybro_px4vision#L29 , https://github.com/PX4/Firmware/blob/master/ROMFS/px4fmu_common/init.d/airframes/4016_holybro_px4vision#L82 @TSC21 Thanks! |
Just re-think this, then good to go, Thanks! |
@Jaeyoung-Lim does it make sense to make use of this model for the Avoidance tests in CI? The iris with cameras is just and adapted model for the purpose and could make sense to use a model that is aimed for CV/obstacle avoidance instead. |
@TSC21 I think that makes total sense. Would also get testing with real vehicles closer to the real vehicle |
Is that something you can explore in this PR as well? |
@TSC21 Would it be okay if I address it in a separate PR? I won't be able to work on it for the next few days, so I would rather close this quickly. |
@Jaeyoung-Lim yes that's fine. I can't merge because it is stating that the branch has conflicts. |
@dagar Can we get this merged please? |
deja vu 😏 |
@dagar Haha thanks! |
This PR adds a gazebo SITL target for the Holybro Px4vision. More information can be found about the vehicle here
This PR adds a sitl airframe and updates PX4/sitl_gazebo submodule that includes PX4/PX4-SITL_gazebo-classic#440
Testing
The vehicle shown flying below