Comments (3)
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.
Using Update() twice does not help. rdk file is enclosed
from robodk-api.
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.
# 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)
- Consideratins on the new definition of MAX_STR_LENGTH in robodk_api_c.h HOT 5
- Wrong string format for double type HOT 4
- Access real robot camera and gripper. HOT 1
- C API: RoboDK_Collisions does not appear in robodk_api_c.h HOT 1
- C API: Extraneous console prints present in robodk_api_c.c HOT 1
- Problem in controlling the robotic arm from the software HOT 3
- Possible to overwrite motion planning module as a plugin? HOT 1
- Using RoboDK Docker image HOT 3
- Difference between Disconnect() and Finish() HOT 1
- RoboDK License in docker container HOT 1
- MakeProgram freeze HOT 6
- Copied Rotational Matrices in Degree and not Rad HOT 2
- RoboDK Python interface does not support v3.11 HOT 1
- Incorrect CMake build instructions in ReadMe HOT 1
- Python API: In robomath.py, multiple issues with transl function HOT 1
- MoveJ can not simulate HOT 1
- ERROR: Package 'robodk' requires a different Python: 3.8.10 not in '<3.5' HOT 9
- Asking about online programming for Denso robot arm, not included in RoboDK library HOT 1
- robolink.Robolink modifies list passed to args HOT 2
- `robolink.Robolink.ShowMessage()` prints message in command line HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robodk-api.