Skip to content

Commit de90b90

Browse files
authored
Make circular motion in example more compatible (UniversalRobots#508)
This motion should work on - UR5 - UR5e - UR20 These are all the models we currently use during tests.
1 parent de6faf8 commit de90b90

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

examples/instruction_executor.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ int main(int argc, char* argv[])
138138

139139
// For moveC via and target can be a Pose or Q. When brace-init style lists are given, values are
140140
// interpreted as Pose.
141-
instruction_executor->moveC(urcl::Pose{ -0.1, 0.463, 0.559, 0.68, -1.083, -2.076 },
142-
urcl::Pose{ -0.3203, 0.303, 0.559, 0.68, -1.083, -2.076 });
143-
instruction_executor->moveC(urcl::Pose{ -0.1, 0.463, 0.559, 0.68, -1.083, -2.076 },
144-
urcl::Q{ -1.57, -1.83, 1.707, -0.833, 0.782, 0.479 });
141+
instruction_executor->moveP(urcl::Pose{ -0.2, 0.5, 0.5, 0.68, -1.083, -2.076 }, 0.2, 0.2);
142+
instruction_executor->moveC(urcl::Pose{ -0.2, 0.4, 0.4, 0.68, -1.083, -2.076 },
143+
urcl::Pose{ -0.2, 0.4, 0.6, 0.68, -1.083, -2.076 });
144+
instruction_executor->moveC(urcl::Pose{ -0.2, 0.5, 0.5, 0.68, -1.083, -2.076 },
145+
urcl::Q{ -1.84, -1.8, 2.7, 4.2, 0.6, -4.0 });
145146

146147
// For optimove functions, the same target rules as for moveJ and moveL apply.
147148
instruction_executor->optimoveJ({ -1.57, -1.6, 1.6, -0.7, 0.7, 0.2 }, 1.0, 1.0);

0 commit comments

Comments
 (0)