Skip to content

Commit

Permalink
docs: update docstrings (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpapaspyros committed Feb 4, 2025
1 parent 17293a2 commit dd625a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct CartesianTrajectoryPoint : public TrajectoryPoint {
CartesianTrajectoryPoint() = default;

/**
* @brief Constructor with name, data, and duration
* @brief Constructor from Cartesian state and duration
* @param state the Cartesian state used to initialize the trajectory point
* @param duration the intended duration for the trajectory point
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct JointTrajectoryPoint : public TrajectoryPoint {
JointTrajectoryPoint() = default;

/**
* @brief Constructor with name, data, and duration
* @brief Constructor from joint state and duration
* @param state the Joint state used to initialize the trajectory point
* @param duration the intended duration for the trajectory point
*/
Expand Down Expand Up @@ -114,7 +114,7 @@ class JointTrajectory : public TrajectoryBase<JointTrajectoryPoint> {
* @param index the index
* @throw std::out_of_range if index is out of range
* @throw EmptyStateException if point is empty
* @throw IncompatibleStatesException if point has different robot name
* @throw IncompatibleStatesException if point has different joint names to the current ones
*/
void set_point(const JointState& point, const std::chrono::nanoseconds& duration, unsigned int index);

Expand All @@ -124,7 +124,7 @@ class JointTrajectory : public TrajectoryBase<JointTrajectoryPoint> {
* @param duration vector of new durations
* @throw IncompatibleSizeException if points and durations have different sizes
* @throw EmptyStateException if point is empty
* @throw IncompatibleStatesException if point has different robot name
* @throw IncompatibleStatesException if any of the points has different joint names to the current ones
*/
void set_points(const std::vector<JointState>& points, const std::vector<std::chrono::nanoseconds>& durations);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace state_representation {

/**
* @class TrajectoryPoint
* @brief Struct to represent the base characteristics of a trajectory point
* @brief Struct that contains the basic characteristics of a trajectory point
*/
struct TrajectoryPoint {
/**
Expand Down

0 comments on commit dd625a6

Please sign in to comment.