Skip to content

Commit 20daecd

Browse files
committed
Add function documentations
1 parent e3f271c commit 20daecd

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

include/ur_client_library/control/trajectory_point_interface.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ class TrajectoryPointInterface : public ReverseInterface
132132
bool writeTrajectorySplinePoint(const vector6d_t* positions, const vector6d_t* velocities,
133133
const vector6d_t* accelerations, const float goal_time);
134134

135+
/*!
136+
* \brief Writes a motion primitive to the robot to be read by the URScript program.
137+
*
138+
* \param primitive A shared pointer to a motion primitive object. This can contain any motion
139+
* primitive type that is supported. Currently, that is MoveJ, MoveL, MoveP and MoveC.
140+
*
141+
* \returns True, if the write was performed successfully, false otherwise.
142+
*/
135143
bool writeMotionPrimitive(const std::shared_ptr<control::MotionPrimitive> primitive);
136144

137145
void setTrajectoryEndCallback(std::function<void(TrajectoryResult)> callback)

include/ur_client_library/ur/instruction_executor.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ class InstructionExecutor
8282
const double time = 0, const double blend_radius = 0);
8383

8484
/**
85-
* \brief Move the robot to a pose target.
85+
* \brief Move the robot to a pose target using movel
8686
*
8787
* This function will move the robot to the given pose target. The robot will move with the given acceleration and
88-
* velocity. The function will return once the robot has reached the target.
88+
* velocity or a motion time. The function will return once the robot has reached the target.
8989
*
9090
* \param target The pose target to move to.
9191
* \param acceleration Tool acceleration [m/s^2]
@@ -98,6 +98,18 @@ class InstructionExecutor
9898
bool moveL(const urcl::Pose& target, const double acceleration = 1.4, const double velocity = 1.04,
9999
const double time = 0, const double blend_radius = 0);
100100

101+
/**
102+
* \brief Move the robot to a pose target using movep
103+
*
104+
* This function will move the robot to the given pose target. The robot will move with the given acceleration and
105+
* velocity. The function will return once the robot has reached the target.
106+
*
107+
* \param target The pose target to move to.
108+
* \param acceleration Tool acceleration [m/s^2]
109+
* \param velocity Tool speed [m/s]
110+
* \param blend_radius The blend radius to use for the motion.
111+
* \return True if the robot has reached the target, false otherwise.
112+
*/
101113
bool moveP(const urcl::Pose& target, const double acceleration = 1.4, const double velocity = 1.04,
102114
const double blend_radius = 0.0);
103115

include/ur_client_library/ur/ur_driver.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,16 @@ class UrDriver
532532
*/
533533
bool writeTrajectorySplinePoint(const vector6d_t& positions, const float goal_time = 0.0);
534534

535+
/*!
536+
* \brief Writes a motion command to the trajectory point interface
537+
*
538+
* The motion command corresponds directly to a URScript move function such as `movej` or
539+
* `movel`. See the MotionPrimitive's header for all possible motion primitives.
540+
*
541+
* \param motion_instruction The motion primitive to be sent to the robot.
542+
*
543+
* \returns True on successful write.
544+
*/
535545
bool writeMotionPrimitive(const std::shared_ptr<control::MotionPrimitive> motion_instruction);
536546

537547
/*!

0 commit comments

Comments
 (0)