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

Document / update coordinates and units #48

Closed
7 tasks done
Tracked by #150
chapulina opened this issue Oct 14, 2021 · 5 comments · Fixed by #76
Closed
7 tasks done
Tracked by #150

Document / update coordinates and units #48

chapulina opened this issue Oct 14, 2021 · 5 comments · Fixed by #76
Assignees
Milestone

Comments

@chapulina
Copy link
Contributor

chapulina commented Oct 14, 2021

As I'm going through the code, I have various questions about coordinates, units, etc. I'm planning to go over them one by one, documenting them and fixing anything in case it's not correct (hopefully it's all correct though).

@chapulina chapulina self-assigned this Oct 14, 2021
@chapulina chapulina transferred this issue from another repository Nov 2, 2021
@mabelzhang
Copy link
Collaborator

mabelzhang commented Nov 3, 2021

A reminder to whoever closing the ticket:
Currently, these conventions in English are only documented in the protobuf messages, which is not an obvious place to look.

The condition for closing this ticket should be that we document this in the README, preferably in diagram form with the vehicle and rotational arrows indicating positive directions.

Another possibility is to document it in the Wiki. However, I must note that it came up in another project that GitHub does not allow search engines to crawl GitHub Wikis. That means for us a loss of discoverability (which otherwise comes for free), if we put more and more things in the Wiki. I would lean toward putting things in the repo rather than the Wiki.

The other argument against the Wiki is that putting things in the repo is more visible because PRs are required. Wiki updates does not require PRs.

A third argument is that the wiki is more disorganized because folders don't go into URLs, if the amount of content ever requires organizing in folders.

I don't have anything personal against GitHub Wikis, I'm just making everyone aware of the disadvantages of GitHub wikis that we found with NPS.

@chapulina
Copy link
Contributor Author

As part of this issue, I started writing tests for the Thruster plugin upstream, because it was originally merged without tests in gazebosim/gz-sim#749.

Working on this branch:

gazebosim/gz-sim@ign-gazebo5...chapulina/5/thruster_test

@chapulina
Copy link
Contributor Author

Reopening, we still need to sort out the coordinate frames

@chapulina
Copy link
Contributor Author

chapulina commented Jan 21, 2022

What still needs fixing:

What's been done so far:

  • Fix coordinate frames on state message #81

    • Updates documentation
    • Adds tests
    • Initially attempted to fix frames by adding offsets when spawning the model and then when converting the data back to the controller.
    • That started to feel hard to debug and I thought the "correct" approach would be to update the model to face North and be FSK without extra offsets.
    • So I went down the road of updating the model and hit stability issues.
    • Put on hold while the model auto-generation was at work so I could build on top of that.
  • Branch chapuilna/frames

    • Starting Fix coordinate frames on state message #81 from scratch on top of the model autogeneration
    • Identified one source of instability (buoyancy can't handle Z down), fix in Buoyancy: fix center of volume's reference frame gazebosim/gz-sim#1302
    • The next issue is an ODE collision checker crash after some simulation time
      • I noticed that LiftDrag and Hydrodynamics are applying forces to the order of e+38
      • Tracked it down to large angular and linear velocities to the order of e+28
      • Not sure yet which one causes the other. I suspect that just like with buoyancy, other plugins may have calculation errors that only manifest with Z-down. It could also be that I've incorrectly flipped some sign on SDF.

Given all the issues orienting the model with Z-down, I'm now considering going back to the initial approach of inserting multiple offsets within TethysComm and WorldComm.

@chapulina
Copy link
Contributor Author

Done!

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

Successfully merging a pull request may close this issue.

3 participants