GithubHelp home page GithubHelp logo

Comments (4)

vanem avatar vanem commented on July 17, 2024

I made a mistake in the first post: "flip_for_axis" parameter values must be upper case. But even with this correction the results of the simulation are not ok. In path_interpolator.py:494, unless I'm missing something the effect of setting the parameter for any axis for a tracked section (between 2 poses) is to switch the tracked distance l to its negative value if traveling in the the negative direction of that axis (exactly as in the readme). But the effect is not what is described, the robot does not track the path backwards. I would appreciate some feedback, this would be a useful feature (if working). Below is the effect. It can be seen that the only "diagonal" is track backwards (but the orientation is very wobbly)
msrdc_tKzedSYTSk

from tracking_pid.

Timple avatar Timple commented on July 17, 2024

Regarding your first question, it should be an uppercase direction. While the documentation states it's a float. We should fix that.

From the screenshot it's not quite clear what is going wrong. Would it be possible to publish a minimal reproducing example?

I think with some minimal rewrites this file: https://github.com/nobleo/tracking_pid/blob/master/test/tracking_pid/test_tracking_pid.test should be a good starting point.

from tracking_pid.

vanem avatar vanem commented on July 17, 2024

For an example: use the test_tracking_pid.test, the only change is adding:
<param name="flip_for_axis" `value="X"/>
and observe the results. This is what I described in the questions, and the trajectory is seen in the screenshot.
You can see that in the first segment of the zig-zag the robot still drives with the front, same on the last segment, while on the diagonal is drives with the back (good!) but the orientation of the robot oscillates wildly (bad!)
What I would like to be able to do, is follow a trajectory, but driving with the back of the robot (my use case: un-dock a robot).
Is that possible?

from tracking_pid.

rokusottervanger avatar rokusottervanger commented on July 17, 2024

The angular feedback loop only worked under the assumption that the path was being tracked forward. Since #21 , you can now track a path backwards by setting the parameter l to a negative value. It introduces a fix for the angular error calculation when the carrot distance l is negative. Curious to see if this works for you.

from tracking_pid.

Related Issues (12)

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.