Giter VIP home page Giter VIP logo

Comments (7)

AlexReimann avatar AlexReimann commented on July 26, 2024

fyi @bit-pirate

from yujin_ocs.

AlexReimann avatar AlexReimann commented on July 26, 2024

Updated the description.

The problem mainly is that our trajectory controller uses the current odom and the past issued commands to estimate where the robot will be in the future.
This estimate is then passed to the local planner which leads to the local planner running into problems because the pose is faulty (a non-normalized quaternion as orientation)

from yujin_ocs.

AlexReimann avatar AlexReimann commented on July 26, 2024

I'll catch this for now by checking for a non-normalized quaternion.
Maybe this is the actual intent behind the default quaternion constructor leading to an invalid quaternion (or rather not normalized).
Maybe close this..?

from yujin_ocs.

stonier avatar stonier commented on July 26, 2024

Sending out a non-normalised quaternion and then requiring a user to interpret that as uninitialised would be quite bad design. There are much easier ways to help a user understand its uninitialised than that.

Initialising it as well with [0 0 0 1] would also be quite bad design. There are valid use cases where the user would need to know if it's initialised or not, and that is not enough information for those cases.

I'd say the cleanest solution is to have the odometry in a std shared pointer which only gets initialised after it's got data (user can check the shared pointer himself) and then move the position/velocity processing methods to library functions. Separate data collection and data processing concerns.

Otherwise use exceptions in each method for when it's uninitialised. Or a combination of the shared pointer/exception idea.

Keep in mind that exceptions are usually an expensive option. For control systems I typically only take advantage of their usefulness in constructor or init functions.

from yujin_ocs.

stonier avatar stonier commented on July 26, 2024

I don't think there is anything special about these classes - I just pulled them from your clrrt just after you finished your master's period so I could re-use them in various places.

Feel free to take ownership of what is in this package.

from yujin_ocs.

AlexReimann avatar AlexReimann commented on July 26, 2024

Ohh, so it's my shitty code. I see..

from yujin_ocs.

AlexReimann avatar AlexReimann commented on July 26, 2024

Fixed with pr #119

from yujin_ocs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.