Closed foehnx closed 6 years ago
About transforming the cpp file into a header... I never used templates myself but maybe @tcies has some comments about naming conventions etc of such files.
@mfaessle the autopilot_inl.h
is done according to @tcies proposed convention
updated rpg_quadrotor_common with new Trajectory constructor, so... @rpg-jenkins test this please
can someone approve this please?
finally happy? I'll merge tomorrow morning... ;-)
I made some changes to allow compatibility with our new MPC. It includes mainly templating the autopilot on the controller type and parameter type, which requires the autopilot.cpp to move to the header file, solved as a head include.
Further changes were also mentioned in #5 and we concluded that references are always given in the form of a
Trajectory
(and no longerTrajectoryPoint
) to the controller. The position controller would then just take the first point in it, while the MPC can use the first (for a single reference) or a whole lookahead on a trajectory.I made several changes and would be happy to hear your comments.
@internals: also take a look at: https://github.com/uzh-rpg/rpg_mpc/pull/5