internal Namespace
Definition
Classes Index
| struct | JacobianColumn |
| struct | WholeBodyLayout |
|
How the solver coordinates of a group that contains the robot's mobile base map to its active variables. More... | |
Functions Index
| Eigen::Isometry3d | interpolatePose (double percentage, const Eigen::Isometry3d &a, const Eigen::Isometry3d &b) |
|
The pose percentage of the way from a to b, linear in translation and slerp in rotation. percentage must be in [0, 1]. More... | |
| double | interpolationSteps (const Eigen::Isometry3d &start, const Eigen::Isometry3d &end, double max_translational_step, double max_angular_step) |
|
The fewest equal steps from start to end that keep each step within max_translational_step of translation and max_angular_step of rotation. Both step sizes must be positive. The count is a whole number returned as a double, so a caller can bound it before converting it to an integer. More... | |
| const moveit_pro::base::JointModel * | getCommonRoot (const moveit_pro::base::JointModelGroup &group) |
| tl::expected< void, std::string > | checkMimicJoint (const moveit_pro::base::JointModel &mimic_joint) |
| bool | jointMovesLink (const moveit_pro::base::JointModel &joint, const moveit_pro::base::LinkModel &link) |
template <bool kAccumulate, class JacobianMatrixType> | |
| void | fillInRevoluteJacobian (const Eigen::Isometry3d &root_pose_link, const moveit_pro::base::RevoluteJointModel &joint_model, const Eigen::Vector3d &tip_point, int tip_id, const JacobianColumn &column, JacobianMatrixType &jacobian) |
template <bool kAccumulate, class JacobianMatrixType> | |
| void | fillInPrismaticJacobian (const Eigen::Isometry3d &root_pose_link, const moveit_pro::base::PrismaticJointModel &joint_model, int tip_id, const JacobianColumn &column, JacobianMatrixType &jacobian) |
template <class JacobianMatrixType> | |
| void | fillInPlanarJacobian (const Eigen::Isometry3d &root_pose_link, const Eigen::Vector3d &tip_point, int tip_id, const JacobianColumn &column, JacobianMatrixType &jacobian) |
template <bool kAccumulate, class JacobianMatrixType> | |
| auto | fillInJointJacobian (const Eigen::Isometry3d &root_pose_link, const moveit_pro::base::JointModel &joint_model, const Eigen::Vector3d &tip_point, int tip_id, const JacobianColumn &column, JacobianMatrixType &jacobian) -> tl::expected< void, std::string > |
template <class JacobianMatrixType> | |
| auto | foldMimicJointsIntoColumn (const moveit_pro::base::RobotState &state, const moveit_pro::base::JointModel &driver, const moveit_pro::base::LinkModel &tip_link, const Eigen::Isometry3d &root_pose_world, const Eigen::Vector3d &tip_point, int column_index, JacobianMatrixType &jacobian) -> tl::expected< void, std::string > |
| std::optional< WholeBodyLayout > | getWholeBodyLayout (const moveit_pro::base::JointModelGroup &group) |
| moveit_pro::base_kinematics::PlanarPose | planarPose (const Eigen::Isometry3d &robot_pose) |
|
The planar pose (x, y, theta) of a robot pose in the model frame's xy plane: its translation, and the heading of its x axis about the model frame's z axis. More... | |
| Eigen::Isometry3d | withPlanarPose (const Eigen::Isometry3d &robot_pose, const moveit_pro::base_kinematics::PlanarPose &planar_pose) |
|
robot_pose with its planar pose replaced: its x, y and heading, as planarPose() reads them, become planar_pose, and its height and its tilt, the roll and pitch relative to its heading, stay. A robot pose 0.05 m up and pitched 0.02 rad, with the planar pose (2, -1.5, 0.8), is at (2, -1.5, 0.05) with heading 0.8 rad and still pitched 0.02 rad. A solver steps the base this way and keeps the tilt the state estimator reports. More... | |
| tl::expected< void, std::string > | checkTipsAreNotOnWheels (const WholeBodyLayout &layout, std::span< const moveit_pro::base::LinkModel *const > tip_links) |
|
Rejects a tip that a wheel of layout's base turns: a wheel link, or a link below a wheel joint or a joint that mimics one. The whole-body Jacobian treats every tip as fixed to the base, so it is wrong for such a tip. More... | |
| tl::expected< Eigen::MatrixXd, std::string > | computeMobileBaseJacobian (const moveit_pro::base::RobotState &state, const moveit_pro::base::JointModelGroup &group, const WholeBodyLayout &layout, std::span< const moveit_pro::base::LinkModel *const > tip_links, const std::vector< Eigen::Vector3d > &tip_offsets) |
|
The multi-tip Jacobian of a group that contains the robot's mobile base, over its solver coordinates. More... | |
| tl::expected< Eigen::Matrix6Nd, std::string > | computeMobileBaseJacobianForTip (const moveit_pro::base::RobotState &state, const moveit_pro::base::JointModelGroup &group, const WholeBodyLayout &layout, const moveit_pro::base::LinkModel &tip_link, const Eigen::Vector3d &tip_offset) |
|
computeMobileBaseJacobian() for a single tip, into a statically allocated matrix. More... | |
| tl::expected< JointSpacePath, ErrorType > | perTipPathIK (moveit_pro::base::RobotState &robot_state, const moveit_pro::base::JointModelGroup &group, const std::vector< const moveit_pro::base::LinkModel * > &tip_links, const std::vector< Path > &tip_paths, const PathIKOptions &options) |
|
Computes the incremental Inverse Kinematics for several tips, each following its own dense Cartesian path. More... | |
| void | checkGroupCollision (const moveit_pro::base::planning_scene::PlanningScene &planning_scene, const moveit_pro::base::collision_detection::CollisionRequest &request, moveit_pro::base::collision_detection::CollisionResult &result, const moveit_pro::base::RobotState &state) |
|
Checks state for environment and self-collisions of the group request.group_name names, like PlanningScene::checkCollision(). More... | |
| tl::expected< void, std::string > | checkTipsAreNotOnWheels (const WholeBodyLayout &layout, std::span< const LinkModel *const > tip_links) |
| tl::expected< Eigen::MatrixXd, std::string > | computeMobileBaseJacobian (const moveit_pro::base::RobotState &state, const moveit_pro::base::JointModelGroup &group, const WholeBodyLayout &layout, std::span< const LinkModel *const > tip_links, const std::vector< Eigen::Vector3d > &tip_offsets) |
| tl::expected< Eigen::Matrix6Nd, std::string > | computeMobileBaseJacobianForTip (const moveit_pro::base::RobotState &state, const moveit_pro::base::JointModelGroup &group, const WholeBodyLayout &layout, const LinkModel &tip_link, const Eigen::Vector3d &tip_offset) |
Functions
checkGroupCollision()
|
Checks state for environment and self-collisions of the group request.group_name names, like PlanningScene::checkCollision().
For a group that contains the robot's mobile base, every robot link is checked against the environment, since the robot pose moves them all, the chassis included; a check restricted to the group's links would skip the links fixed to the base link. Self-collision stays restricted to the group's links, which its joints move relative to the rest. The request's padding flags apply as in PlanningScene::checkCollision(). state's collision body transforms must be up to date. Internal until the collision layer handles a group with the mobile base itself.
Declaration at line 97 of file path_utils.hpp, definition at line 404 of file path_utils.cpp.
checkMimicJoint()
| inline nodiscard |
Definition at line 146 of file jacobian.hpp.
checkTipsAreNotOnWheels()
| nodiscard |
Rejects a tip that a wheel of layout's base turns: a wheel link, or a link below a wheel joint or a joint that mimics one. The whole-body Jacobian treats every tip as fixed to the base, so it is wrong for such a tip.
The success path allocates nothing. Null tips are skipped.
- Returns
An error naming the tip, the wheel, the base, and the link the turning joint is attached to.
Definition at line 361 of file jacobian.hpp.
checkTipsAreNotOnWheels()
|
Definition at line 323 of file jacobian.cpp.
computeMobileBaseJacobian()
| nodiscard |
The multi-tip Jacobian of a group that contains the robot's mobile base, over its solver coordinates.
Like computeMultiTipJacobian(), with the same row layout, inputs and errors, in the robot model's frame. The base columns map the base's motion coordinates at the heading of the state's robot pose to the tip twists, and the wheel columns are dropped: see WholeBodyLayout. A tip that a wheel turns is an error: see checkTipsAreNotOnWheels().
Definition at line 371 of file jacobian.hpp.
computeMobileBaseJacobian()
|
Definition at line 400 of file jacobian.cpp.
computeMobileBaseJacobianForTip()
| nodiscard |
computeMobileBaseJacobian() for a single tip, into a statically allocated matrix.
Same columns, frame and errors as computeMobileBaseJacobian() with one tip. The success path allocates nothing, so a realtime control loop can call it; the error paths build their messages.
Definition at line 382 of file jacobian.hpp.
computeMobileBaseJacobianForTip()
|
Definition at line 416 of file jacobian.cpp.
fillInJointJacobian()
|
Definition at line 231 of file jacobian.hpp.
fillInPlanarJacobian()
|
Definition at line 216 of file jacobian.hpp.
fillInPrismaticJacobian()
|
Definition at line 195 of file jacobian.hpp.
fillInRevoluteJacobian()
|
Definition at line 175 of file jacobian.hpp.
foldMimicJointsIntoColumn()
| nodiscard |
Definition at line 284 of file jacobian.hpp.
getCommonRoot()
|
Definition at line 24 of file jacobian.cpp.
getWholeBodyLayout()
| nodiscard |
- Returns
The solver coordinate layout of group, or std::nullopt for a group without the robot's mobile base.
Definition at line 268 of file jacobian.cpp.
interpolatePose()
| nodiscard |
The pose percentage of the way from a to b, linear in translation and slerp in rotation. percentage must be in [0, 1].
Definition at line 24 of file interpolate.cpp.
interpolationSteps()
| nodiscard |
The fewest equal steps from start to end that keep each step within max_translational_step of translation and max_angular_step of rotation. Both step sizes must be positive. The count is a whole number returned as a double, so a caller can bound it before converting it to an integer.
Definition at line 33 of file interpolate.cpp.
jointMovesLink()
| inline nodiscard |
Definition at line 157 of file jacobian.hpp.
perTipPathIK()
| nodiscard |
Computes the incremental Inverse Kinematics for several tips, each following its own dense Cartesian path.
Where the multi-tip pathIK() moves every tip along one shared path, this moves each tip along its own: tip_paths[t][k] is the pose tip tip_links[t] must reach at waypoint k. Waypoint poses are absolute, in the frame getRootFrameName() names for group. The tips start from their poses in robot_state, which is not itself a waypoint. Between consecutive waypoints the solver steps every tip's reference linearly in translation and spherically in rotation over the same number of steps, as many as the tip that moves farthest needs to stay within kDefaultPathIkTranslationalStep and kDefaultPathIkAngularStep per step, so the tips reach each waypoint together. Like pathIK(), the solve is incremental, so consecutive waypoints do not jump to a different configuration.
This is not stable API. It returns only the configuration at each waypoint, not the solver's steps between them. The robot's motion between two returned configurations is whatever the caller interpolates in joint space, and nothing here checks it, so pass waypoints close enough that this motion stays near the intended path. For a sparse path that every tip shares, use pathIK(), which returns every dense step.
The blending radius, the orientation tracking task, the goal tolerance and mobile base motion in options do not apply. A nonzero orientation tracking gain, a set goal tolerance, or a group with a mobile base fails. The tip offset applies to every tip. The solver checks the maximum allowed path deviation at each of its steps, so every waypoint is reached within it. A tip that moves more than 10 m between consecutive waypoints fails, which bounds the solve time of one waypoint.
- Parameters
-
robot_state The robot state the solve starts from. It is left at the last configuration the solver tried.
group The joint model group to solve the kinematics for.
tip_links The links to move, at most kMaxNumTips. An active joint of the group must move each one.
tip_paths One path per tip, index-aligned with tip_links, all of the same, nonzero length. Each pose's rotation must be orthonormal.
options The options to use when solving the kinematics. See PathIKOptions for more information.
- Returns
One joint configuration per waypoint, the group's active variables at the moment every tip reached it, or an error. The error names the tip farthest from its target, and its partial path holds the configurations of the waypoints reached before it, so its size is the index of the waypoint that failed.
Definition at line 832 of file path_ik.cpp.
planarPose()
| nodiscard |
The planar pose (x, y, theta) of a robot pose in the model frame's xy plane: its translation, and the heading of its x axis about the model frame's z axis.
Definition at line 307 of file jacobian.cpp.
withPlanarPose()
| nodiscard |
robot_pose with its planar pose replaced: its x, y and heading, as planarPose() reads them, become planar_pose, and its height and its tilt, the roll and pitch relative to its heading, stay. A robot pose 0.05 m up and pitched 0.02 rad, with the planar pose (2, -1.5, 0.8), is at (2, -1.5, 0.05) with heading 0.8 rad and still pitched 0.02 rad. A solver steps the base this way and keeps the tilt the state estimator reports.
Definition at line 313 of file jacobian.cpp.
The documentation for this namespace was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.15.0.