![]() |
libfranka 0.21.3
FCI C++ API
|
Calculates poses for mobile robot frames using Pinocchio. More...
#include <mobile_model.h>
Public Member Functions | |
| MobileModel (const std::string &urdf_model) | |
| Constructs a MobileModel from a URDF string. | |
| MobileModel (MobileModel &&other) noexcept | |
| Move-constructs a new MobileModel instance. | |
| MobileModel & | operator= (MobileModel &&other) noexcept |
| Move-assigns this MobileModel from another MobileModel instance. | |
| ~MobileModel () noexcept | |
| Destructor. | |
| std::array< double, 16 > | pose (MobileFrame frame, const MobileJointPositions &joint_positions) const |
| Gets the 4x4 pose matrix for the given mobile frame relative to the robot's base frame (URDF root link, body-fixed). | |
Static Public Attributes | |
| static constexpr size_t | kNumModules = kNumDriveModules |
| Number of swerve drive modules. | |
| static constexpr size_t | kJointsPerModule = kJointsPerDriveModule |
| Number of joints per drive module (steering + drive). | |
Calculates poses for mobile robot frames using Pinocchio.
This class provides forward kinematics for mobile robots. It is constructed from a mobile robot URDF and will reject arm robot URDFs.
|
explicit |
Constructs a MobileModel from a URDF string.
| [in] | urdf_model | The URDF model string describing a mobile robot. |
| ModelException | if the URDF describes an arm robot rather than a mobile robot. |
|
noexcept |
Move-constructs a new MobileModel instance.
| [in] | other | Other MobileModel instance. |
|
noexcept |
Move-assigns this MobileModel from another MobileModel instance.
| [in] | other | Other MobileModel instance. |
| std::array< double, 16 > franka::MobileModel::pose | ( | MobileFrame | frame, |
| const MobileJointPositions & | joint_positions | ||
| ) | const |
Gets the 4x4 pose matrix for the given mobile frame relative to the robot's base frame (URDF root link, body-fixed).
The pose is represented as a 4x4 matrix in column-major format. This method is RT-safe: it performs zero heap allocation.
| [in] | frame | The desired drive module frame (kFrontDriveModule or kRearDriveModule). |
| [in] | joint_positions | Joint positions for all controllable subsystems. Angles are in radians; the conversion to the internal Pinocchio representation is handled automatically. |