-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add minimal example, remove creopyson test #76
Changes from 5 commits
3705a92
e6b7eeb
38fdf61
eec5606
a898e62
8579744
96216c7
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
joint_name,lower_limit,upper_limit,damping,friction,velocity_limit,effort_limit |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
robotName: 2bars | ||
scale: [0.001,0.001,0.001] | ||
root: BAR |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,19 @@ void sanitizeSTL(std::string stl) | |
output.close(); | ||
} | ||
|
||
/** | ||
* @brief Retrieves the transformation from the root to a specified link frame in the context of a component path. | ||
* | ||
* @param comp_path component path that represents the assembly hierarchy. | ||
* @param modelhdl The part model in which the link frame is defined. | ||
* @param link_frame_name The name of the link frame for which the transformation is requested. | ||
* @param scale scaling factor for expressing the position of the transform. | ||
* | ||
* @return A std::pair<bool, iDynTree::Transform> containing the result of the operation: | ||
* - The first element is a boolean indicating success (true) or failure (false). | ||
* - The second element is an iDynTree::Transform representing the transformation from the root to the specified link frame. | ||
* If the operation fails, this transformation will be an identity transformation. | ||
*/ | ||
std::pair<bool, iDynTree::Transform> getTransformFromRootToChild(pfcComponentPath_ptr comp_path, pfcModel_ptr modelhdl, const std::string& link_frame_name, const array<double, 3>& scale) { | ||
|
||
iDynTree::Transform H_child = iDynTree::Transform::Identity(); | ||
|
@@ -173,12 +186,16 @@ std::pair<bool, iDynTree::Transform> getTransformFromRootToChild(pfcComponentPat | |
} | ||
|
||
/** | ||
* @brief Get the Transform From Part object | ||
* | ||
* @param modelhdl | ||
* @param link_frame_name | ||
* @param scale | ||
* @return std::pair<bool, iDynTree::Transform> | ||
* @brief Retrieves the transformation matrix representing the coordinate system of a specified link frame in the given part. | ||
* | ||
* @param modelhdl The part model. | ||
* @param link_frame_name The name of the link frame for which the transformation matrix is requested. | ||
* @param scale scaling factor for expressing the position of the transform. | ||
* | ||
* @return A std::pair<bool, iDynTree::Transform> containing the result of the operation: | ||
* - The first element is a boolean indicating success (true) or failure (false). | ||
* - The second element is an iDynTree::Transform representing the transformation matrix of the specified link frame. | ||
* If the operation fails, this transformation matrix will be an identity matrix. | ||
*/ | ||
std::pair<bool, iDynTree::Transform> getTransformFromPart(pfcModel_ptr modelhdl, const std::string& link_frame_name, const array<double, 3>& scale) { | ||
|
||
|
@@ -230,13 +247,18 @@ std::pair<bool, iDynTree::Transform> getTransformFromPart(pfcModel_ptr modelhdl, | |
} | ||
|
||
/** | ||
* @brief Get the Rotation Axis From Part object | ||
* @brief Retrieves the unit vector representing the specified axis in the given part. | ||
* | ||
* @param modelhdl | ||
* @param axis_name | ||
* @param link_frame_name | ||
* @param scale | ||
* @return std::pair<bool, iDynTree::Direction> | ||
* @param modelhdl The part model. | ||
* @param axis_name The name of the axis to retrieve. | ||
* @param link_frame_name The name of the coordinate system in which the axis unit vector should be expressed. | ||
* @param scale scaling factor for expressing the position of the transform. | ||
* | ||
* @return A std::pair<bool, iDynTree::Direction> containing the result of the operation: | ||
* - The first element is a boolean indicating success (true) or failure (false). | ||
* - The second element is an iDynTree::Direction representing the unit vector of the specified axis | ||
* transformed into the coordinate system of the specified link frame. If the operation fails, | ||
* this vector will be zero-initialized. | ||
*/ | ||
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. I would move the doxygen documentation to the Utils.h, if I recall correctly the doxyfile has a filter for getting only the .h/.hpp 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. removed it from the cpp, for some reason it was there. |
||
std::pair<bool, iDynTree::Direction> getAxisFromPart(pfcModel_ptr modelhdl, const std::string& axis_name, const string& link_frame_name, const array<double, 3>& scale) { | ||
|
||
|
This file was deleted.
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.
This is not used anywhere since we refactored the code for using the ElementTree right?
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.
Exactly!