-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhanced documentation for composeMultiArrayMessage function #3270
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -255,6 +255,22 @@ void updateSlidingWindow(KinematicState& next_joint_state, std::deque<KinematicS | |||||||||
joint_cmd_rolling_window.push_back(next_joint_state); | ||||||||||
} | ||||||||||
|
||||||||||
/** | ||||||||||
* @brief Composes a Float64MultiArray message for controllers requiring Float64MultiArray input. | ||||||||||
* | ||||||||||
* This function converts the given joint state into a Float64MultiArray message. | ||||||||||
* | ||||||||||
* @param servo_params Configuration parameters for the servo, including message type selection. | ||||||||||
* @param joint_state The joint state to be converted into the message. | ||||||||||
* @return A Float64MultiArray message containing the joint state data. | ||||||||||
* | ||||||||||
* Example: | ||||||||||
* @code | ||||||||||
* auto message = composeMultiArrayMessage(servo_params, joint_state); | ||||||||||
* controller.publish(message); | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It may not be obvious to most people that Also looking at other examples, it appears you may need to indent what is inside the For example: Lines 607 to 610 in 524ca4f
Which renders to: https://moveit.picknik.ai/main/api/html/classplanning__scene__monitor_1_1LockedPlanningSceneRO.html#details |
||||||||||
* @endcode | ||||||||||
*/ | ||||||||||
|
||||||||||
std_msgs::msg::Float64MultiArray composeMultiArrayMessage(const servo::Params& servo_params, | ||||||||||
const KinematicState& joint_state) | ||||||||||
{ | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two sentences virtually say the same thing -- you probably can combine these into just a single line.