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

Support offboard velocity setpoints for rover #13225

Merged
merged 6 commits into from
Oct 24, 2019
Merged

Conversation

Jaeyoung-Lim
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim commented Oct 18, 2019

Describe problem solved by this pull request
Previously only position setpoints were available for offboard control of a rover. This has been problematic as the L1 position controller which rover uses require global position fixes, as raised in the rover call(17/10/19).

This PR adds support for offboard velocity setpoints for rover and potentially enables controlling the vehicle without GPS position fixes.

Describe your solution
The rover tracks the velocity supported by SET_TARGET_POSITION_LOCAL_NED. The speed of the setpoint is constrained to the cruise throttle.

Describe possible alternatives
The velocity tracking is a very simple one, where it tries to track the direction of the setpoint and the speed of the setpoint. Therefore the vehicle never goes reverse to take a shorter route to track the setpoint, in case the direction of the setpoint is more off than 90 degrees.

A more elegant solution can be discussed.

Test data / coverage
Logs from examples velocity inputs tested in SITL

@julianoes
Copy link
Contributor

Awesome! Did you test that using MAVROS or MAVSDK?

@Jaeyoung-Lim
Copy link
Member Author

@julianoes I tested it using mavros. I had a discussion with @ItsTimmy and realized that the velocity control and frames were not being handled correctly. I will try to follow up on this.

@Jaeyoung-Lim Jaeyoung-Lim added Rover 🚙 Rovers and other UGV Mode: Offboard Offboard mode control labels Oct 18, 2019
@dagar
Copy link
Member

dagar commented Oct 19, 2019

Good to go?

@Jaeyoung-Lim
Copy link
Member Author

@dagar On my side yes. Not sure why the hardware test is failing though.

@julianoes
Copy link
Contributor

Looks like unrelated CI issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mode: Offboard Offboard mode control Rover 🚙 Rovers and other UGV
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants