8000 Fixed yawrate error bug by MihirDharmadhikari · Pull Request #1 · ntnu-arl/gz-sim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed yawrate error bug #1

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

8000
Open
wants to merge 2 commits into
base: dev/multicopter_control
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions collection-garden.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
repositories:
gz-cmake:
type: git
url: https://github.com/gazebosim/gz-cmake
version: gz-cmake3
gz-common:
type: git
url: https://github.com/gazebosim/gz-common
version: gz-common5
gz-fuel-tools:
type: git
url: https://github.com/gazebosim/gz-fuel-tools
version: gz-fuel-tools8
gz-sim:
type: git
url: https://github.com/ntnu-arl/gz-sim.git
version: dev/multicopter_control
gz-gui:
type: git
url: https://github.com/gazebosim/gz-gui
version: gz-gui7
gz-launch:
type: git
url: https://github.com/gazebosim/gz-launch
version: gz-launch6
gz-math:
type: git
url: https://github.com/gazebosim/gz-math
version: gz-math7
gz-msgs:
type: git
url: https://github.com/gazebosim/gz-msgs
version: gz-msgs9
gz-physics:
type: git
url: https://github.com/gazebosim/gz-physics
version: gz-physics6
gz-plugin:
type: git
url: https://github.com/gazebosim/gz-plugin
version: gz-plugin2
gz-rendering:
type: git
url: https://github.com/gazebosim/gz-rendering
version: gz-rendering7
gz-sensors:
type: git
url: https://github.com/gazebosim/gz-sensors
version: gz-sensors7
gz-tools:
type: git
url: https://github.com/gazebosim/gz-tools
version: gz-tools2
gz-transport:
type: git
url: https://github.com/gazebosim/gz-transport
version: gz-transport12
gz-utils:
type: git
url: https://github.com/gazebosim/gz-utils
version: gz-utils2
sdformat:
type: git
url: https://github.com/gazebosim/sdformat
version: sdf13
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ Eigen::Vector3d LeePositionController::ComputeDesiredAngularAcc(
{
gzerr << "Yaw rate error is greater than pi. yawrate_error: " << yawrate_error << std::endl;
}

if (yawrate_error < -M_PI)
{
yawrate_error += 2 * M_PI;
}
else if (yawrate_error > M_PI)
{
yawrate_error -= 2*M_PI;
}

Eigen::Vector3d angularRateDes(Eigen::Vector3d::Zero());
// current yaw angle
Expand Down
0