-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[nps] load aircraft into gazebo at run time + actuator handling #2135
Conversation
<define name="ACTUATOR_THRUSTS" value="1.55, 1.55, 1.55, 1.55" type="double[]"/> | ||
<define name="ACTUATOR_TORQUES" value="0.155, 0.155, 0.155, 0.155" type="double[]"/> | ||
|
||
<define name="GAZEBO_WORLD" value="ardrone.world" type="string"/> |
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.
Should this be "empty.world"?
Looks good. Found no obvious errors in the changes and the simulation appears to work fine. Spawning the aircraft model specified in the airframe xml is definitely a nice addition! I could not confirm the working of the datalink GPS heading. As far as I'm aware the AHRS is not fully functional in gazebo atm. (I tried a short test flight without bypassed AHRS but this resulted in uncontrolled behavior both with and without the datalink gps); when the AHRS is bypassed, the GPS heading is overwritten by the ground truth value. I have not yet checked if this would be a quick fix to get a reasonable heading estimate during the accelerometer callback. Note that this update will require existing gazebo worlds to be modified, the existing drone needs to be removed just as you did for the empty world. One minor suggestion: could you rename the simple_quad model to simple_plus_quad? Makes the name a bit more descriptive and highlights the difference with the simple_x_quad. (Or is this an existing naming convention from jsbsim?) |
Have you tried changing the nav_heading in the settings? That caused the drone to become unstable around the yaw axis when I tried it. I have no strong feelings about the simple quad naming. If it's too much work to rename the jsbsim one (not sure how often its referenced in all the airframe files) it's fine to leave this as it is. |
Just tried the nav_heading step, no issues! |
Ok, then there might be something wrong on my end; I can recheck it later this week. If it works fine for you then I have no further objections against merging.
…-------- Oorspronkelijk bericht --------
Van: Kirk Scheper
Datum:25-10-2017 18:56 (GMT+01:00)
Aan: paparazzi/paparazzi
Cc: Tom van Dijk ,Mention
Onderwerp: Re: [paparazzi/paparazzi] [nps] load aircraft into gazebo at run time + actuator handling (#2135)
Just tried the nav_heading step, no issues!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2135 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFmOX6CPB41AepFejSOWApnQ4-9dlRTLks5sv2gigaJpZM4QEsrk>.
|
854051d
to
233d61e
Compare
233d61e
to
bb88704
Compare
This enables gazebo to grab the quadrotor configuration from the airframe file and load up the correct model. This also ensures that the same yaw configuration is used for the simulator as is defined in the motor_mixing to reduce possible user error. Now the only thing is that the order of the actuator names still has to be correct.
Secretly, this also refractors how GPS is ignored in nps. As well as replaces course with heading when GPS_DATALINK is used so that nps correctly copies reality when using natnet/optitrack.
@knmcguire and @tomvand can you take a look here and let me know if there are any issues.