Skip to content
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

ATTITUDE_SETPOINT_EXTERNAL msg plugin #64

Closed
TSC21 opened this issue Jul 23, 2014 · 6 comments
Closed

ATTITUDE_SETPOINT_EXTERNAL msg plugin #64

TSC21 opened this issue Jul 23, 2014 · 6 comments

Comments

@TSC21
Copy link
Member

TSC21 commented Jul 23, 2014

With this we can also control the Yaw of the quad, which is recommended to use in motion planners. Roll and Pitch also, but that depends on the type of controller it's being used (probably using a velocity control it's easier when having a velocity estimation).

I'm going to start a setpoint_attitude.cpp. I'll send you when I have it ready.

@vooon vooon added PX4 labels Jul 23, 2014
vooon added a commit that referenced this issue Jul 24, 2014
XXX: need frame conversion #49.
Issue #33, #64.
@vooon vooon closed this as completed in e93b135 Jul 24, 2014
@vooon vooon added this to the Version 0.7.0 milestone Jul 24, 2014
@mhkabir
Copy link
Member

mhkabir commented Jul 27, 2014

@vooon @TSC21 You can always send yaw using the SET_LOCAL_POSITION_SETPOINT message if you want to use local planners. The message is already implemented in the setpoint_position plugin, we just need to add a way of sending the yaw (custom message?)

@TSC21
Copy link
Member Author

TSC21 commented Jul 27, 2014

That plugin is already created, Kabir: it's setpoint_attitude.

---Nuno MarquesAlferes Aluno de TransmissõesAluno de Mestrado em Engenharia Electrotécnica e de ComputadoresInstituto Superior Técnico | Universidade de Lisboa
+351 912 090 991Azambuja | Portugal Dreams set what you want. Actions determine what you conquer!This message and any files herewith attached may contain confidential or privileged information and is intended solely for the use of the entity to which it is addressed. If you receive this message in error, please notify the sender immediately and delete this message and any files attached without copying them in any way.

Date: Sun, 27 Jul 2014 10:01:21 -0700
From: notifications@github.com
To: mavros@noreply.github.com
CC: n.marques21@hotmail.com
Subject: Re: [mavros] ATTITUDE_SETPOINT_EXTERNAL msg plugin (#64)

@vooon @TSC21 You can always send yaw using the SET_LOCAL_POSITION_SETPOINT message if you want to use local planners. The message is already implemented in the setpoint_position plugin, we just need to add a way of sending the yaw (custom message?)


Reply to this email directly or view it on GitHub.

@mhkabir
Copy link
Member

mhkabir commented Jul 27, 2014

We don't actually need it for local planners... Thats what I'm saying. We could just use the same setpoint_position plugin for that.

We have too many setpoint_* plugins already... I think we just need some ones :

setpoint_position (XYZ position + Yaw)
setpoint_orientation (Yaw, Pitch, Roll, Thrust)

Rest are a bit superfluous in my opinion. They do have usefulness in many cases, but I think those use-cases are too user specific. Adding support for every single mavlink setpoint message in mavros and yet having half-baked support on PX4 side makes no sense. We should do this in a structured way. Let the extra plugins be available in a seprate repo for those who will be using them, but adding such specific plugins will not be useful for 80% users.

Kabir

@TSC21
Copy link
Member Author

TSC21 commented Jul 27, 2014

I agree partially. In my case, my controller is implemented using velocity control, and not position. So a setpoint_velocity is needed. Lacks implementation on PX4 side but indeed is going to be usefull to me also. Is structured after all cause it goes to people needs. You cannot say who needs this or that so I think giving options for control setpoints it's a way of guaranteeing flexibility of the bridge.

If you check we are creating plugins to the new msg API, so it's a plugin to LOCAL_NED_POSITION_SETPOINT_EXTERNAL and not to SET_LOCAL_POSITION_SETPOINT, which in this last case send XYZ and yaw as you are saying. It's a mavlink msg dependent plugins we are creating and that's the most structured it can get. And since Yaw it's send in ATTITUDE_SETPOINT_EXTERNAL, then a plugin for that is needed.

The only thing we need now is help on PX4 side or get in an adventure figuring out what to code.

@vooon
Copy link
Member

vooon commented Jul 28, 2014

@mhkabir I agree, is too mush setpoint plugins, probably better merge some of that in one.
But in one hand i get harder support and in other KISS.

@TSC21
Copy link
Member Author

TSC21 commented Jul 28, 2014

@vooon there was the option I gave you for using a parameter in a unique setpoint point plugin where you choose if the user want to use velocity control, position control or accel/force control.
I warn that in PX4 side already position and force control msgs are handled in mc controllers.

--- Mensagem Original ---

De: "Vladimir Ermakov" notifications@github.com
Enviado: 28 de Julho de 2014 11:41
Para: "vooon/mavros" mavros@noreply.github.com
Cc: "TSC21" n.marques21@hotmail.com
Assunto: Re: [mavros] ATTITUDE_SETPOINT_EXTERNAL msg plugin (#64)

@mhkabir I agree, is too mush setpoint plugins, probably better merge some of that in one.
But in one hand i get harder support and in other KISS.


Reply to this email directly or view it on GitHub:
#64 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants