Giter VIP home page Giter VIP logo

Comments (3)

RoboDK avatar RoboDK commented on June 26, 2024

It looks like there is around 10% discrepancy... This does not look normal.
Do you have the RDK file to reproduce this issue?
Can you try calling Update twice?

from robodk-api.

sancelot avatar sancelot commented on June 26, 2024

Using Update() twice does not help. rdk file is enclosed

demo_0801.zip

from robodk-api.

RoboDK avatar RoboDK commented on June 26, 2024

I believe the main problem is that the start point is undefined. You'll get different cycle times depending on where the robot is coming from (last point where the robot was left). To avoid confusion with the API I recommend you to impose the robot position to the last known position of the robot. For example, the last point of your program if you are planning to run your program in a loop.

I also recommend you to check if the path is feasible before relying on the cycle time. I changed the TCP of your simulation to make sure the programs that you are automatically generating are feasible.

Another detail: I recommend you to make the first move of a program joint move. This will make sure the robot joints are defined as you expected for the program.

See attached RDK file.

demo_0801 v2.zip

    # Define the start point of the robot before simulating or updating the program 
    # (for example, the last target in case we run this program in a loop)
    # Indicate that this target is a Cartesian target 
    # (this recalculates the joint values of the target)
    home.setAsCartesianTarget()

    # Retrieve the calculated joints
    startjoints = home.Joints()

    # Set the robot to that location and update to retrieve estimated cycle time
    robot.setJoints(startjoints)
    update_result = prog.Update(check_collisions)

from robodk-api.

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.