Search Results
Thread: Time simulation vs Set Speed instruction
Post: RE: Time simulation vs Set Speed instruction
Thanks Albert, that's want I wanted to know. For use with Mecademic, perhaps RoboDK could consider incorporating the option to specify and treat the velocity and acceleration as a percentage of anoth...
2 Replies 121 Views
Thread: Time simulation vs Set Speed instruction
Post: Time simulation vs Set Speed instruction
How are the values in the Set Speed instruction used by RoboDK to determine the simulation time? The units of the Set Speed values can't be specified: they can be absolute in mm/s, deg/s, or relative...
2 Replies 121 Views
Thread: Base Reference in the BuildMechanism function
Post: RE: Base Reference in the BuildMechanism function
Hi Albert, to my understanding, HB defines a relative 3D position plus orientation, referred to as a pose, that can be expressed e.g. in terms of XYZ position and some RXYZ rotation, or a 4x4 homogene...
7 Replies 1,329 Views
Thread: How to use the command MoveL_Test
Post: RE: How to use the command MoveL_Test
You're using forward kinematics SolveFK(), where you should be using inverse kinematics SolveIK(). The first returns the robot (flange or tool) pose given its joint values, the latter returns a set of...
2 Replies 149 Views
Thread: Base Reference in the BuildMechanism function
Post: RE: Base Reference in the BuildMechanism function
Hi, I think the building of a mechanism in both the GUI and the API is still very confusing. In my simple case I'm trying to build a two-finger gripper via the API, importing 3 STEP files (gripper bo...
7 Replies 1,329 Views
Thread: Robot's position(angle) joint axis jog
Post: RE: Robot's position(angle)_joint axis jog
I think you can use SolveIK_All() for that: https://robodk.com/doc/en/PythonAPI/robo...olveIK_All Code:robot = RDK.Item('YourRobot',ITEM_TYPE_ROBOT) all_solutions = robot.SolveIK_All(robot.Pose(),ro...
4 Replies 164 Views
Thread: Robot's position(angle) joint axis jog
Post: RE: Robot's position(angle)_joint axis jog
I think the Joints() command is what you're looking for: https://robodk.com/doc/en/PythonAPI/robo...tem.Joints
4 Replies 164 Views
Thread: How to determine the active reference frame item?
Post: How to determine the active reference frame item?
Hi, in the GUI, a green dot shows up on the icon of the active reference frame. How can this active reference frame item be determined via the API? Best regards, Maarten
2 Replies 111 Views
Thread: How to determine the time duration per instruction?
Post: How to determine the time duration per instruction...
Hi, how can I determine the time duration that an instruction will take according to simulation? E.g. I have a program with a few move instructions, I would like to determine the required move time f...
1 Replies 145 Views
Thread: How to add saved contents of one station to another?
Post: How to add saved contents of one station to anothe...
Hi, is it possible to save the contents (a robot, frames, targets, programs etc.) of a RoboDK station to a file, and then load/add it as part of another station? My goal is to build separate robot st...
2 Replies 171 Views
Thread: How to replace a tool, keeping targets & programs intact
Post: How to replace a tool, keeping targets & programs ...
Hi, is it possible via the API to replace one (gripper) tool by another, and leave all related targets and programs intact?  E.g. I have tool A on a robot in a station, with 2 targets for open and cl...
1 Replies 228 Views
Thread: How to import the RoboDK API & toolbox?
Post: RE: How to import the RoboDK API & toolbox?
Hi Sam, in follow up to your last reply: When using Type() to determine what type an item is, it returns the integer value, not ITEM_TYPE_*. If there is no guarantee that the integer values will not c...
5 Replies 322 Views
Thread: Robot kinematics model
Post: Robot kinematics model
Hi, I'm exporting robot programs designed in RoboDK for a Meca500 robot. The program includes joint move commands, e.g. MoveJoints(0,0,0,0,0,0). After export I would like to be able to alter the joint...
1 Replies 220 Views
Thread: How to import the RoboDK API & toolbox?
Post: RE: How to import the RoboDK API & toolbox?
Hi Sam, thanks, that does the trick. So with the new package updates I can either use 'robolink.ITEM_TYPE_PROGRAM' or the corresponding integer ('8' in this case) when searching an item?
5 Replies 322 Views
Thread: How to import the RoboDK API & toolbox?
Post: How to import the RoboDK API & toolbox?
Hi, I think some months ago the default code when adding a new Python program in the RoboDK tree has been changed in how RoboDK packages are loaded and 'RDK' is assigned. (Post edit: as I read here no...
5 Replies 322 Views
Thread: How to get the pose of a TCP wrt the global cs?
Post: How to get the pose of a TCP wrt the global cs?
Hi, how do I get the pose of the TCP of a robot with respect to the global coordinate system? I could combine the following commands, but it would become a bit cumbersome: robot.Pose() gives the TCP ...
1 Replies 440 Views
Thread: UI additions - tree font color bug?
Post: UI additions - tree font color bug?
Hi, I think this is a minor bug: With the UI additions plugin loaded, the text color is initially set to white, and both tree items as well as items in the main window are white text: [attachment=312...
1 Replies 474 Views
Thread: How to increase the tree window width?
Post: RE: How to increase the tree window width?
Nice! With the UI additions plugin loaded, is it still possible to change the background color of the tree side window, and set it to transparent? [attachment=3108]
4 Replies 579 Views
Thread: How to increase the tree window width?
Post: How to increase the tree window width?
Hi, is there a display setting to change the width of the station tree window? The width is too narrow to display the names of targets. The width seems to change dynamically when e.g. a robot panel i...
4 Replies 579 Views
Thread: How to modify a mechanism after building?
Post: How to modify a mechanism after building?
How can I modify a mechanism after building it? When I do right click > "Modify robot" on a previously build mechanism in the station tree, the "Build/modify mechanisms or robot" window pops up (s...
2 Replies 632 Views
Thread: How to retrieve two targets with the same name?
Post: RE: How to retrieve two targets with the same name...
Thanks Jeremy, using ItemList() will work for me! I understand it's recommended to avoid two targets with the same name, but it is a plausible situation I can see occurring e.g. when copy-pasting in ...
2 Replies 537 Views
Thread: How to retrieve two targets with the same name?
Post: How to retrieve two targets with the same name?
How can two targets with the same name be retrieved as separate items via the API? I know I can retrieve a target item via its name 'tar01': Code:item = RDK.Item('tar01',ITEM_TYPE_TARGET) But supp...
2 Replies 537 Views
Thread: How to get & set the linked robot for a program?
Post: How to get & set the linked robot for a program?
There are multiple robots in my station, and I found I can set the desired linked robot for a program using the setRobot() command. But using which command can I *get* which robot the program is linke...
2 Replies 564 Views
Thread: How to get & set the "Target linked" item of a move instruction?
Post: RE: How to get & set the "Target linked" item of a...
I just found out that the name of a move instruction in the GUI is automagically updated to match the default name and the (updated if changed) name of the linked target, upon running these next lines...
4 Replies 715 Views
Thread: How to get & set the "Target linked" item of a move instruction?
Post: RE: How to get & set the "Target linked" item of a...
Hi Sam, Thanks for helping out. Isn't your code example a bit risky, since you're assuming the name of the instruction contains the name of the target? Code:if old_target.Name() in instruction_dict[...
4 Replies 715 Views
Thread: How to get & set the "Target linked" item of a move instruction?
Post: How to get & set the "Target linked" item of a mov...
How do I get the 'Target linked' item of a program's move instruction? The target and move instruction are created in the GUI, and I would like to obtain the linked target item via the API. I found I...
4 Replies 715 Views
Thread: How to get & set reference frame of a target's pose?
Post: How to get & set reference frame of a target's pos...
In the RoboDK API, how do I get and set the reference frame with respect to which the pose of a target is given? Suppose I have a target named Tar01 which I retrieve as an item via: tar = RDK.Item('...
1 Replies 646 Views