RobWorkProject
24.8.23-
|
Forward kinematics between a pair of frames. More...
#include <FKRange.hpp>
Public Member Functions | |
FKRange (rw::core::Ptr< const rw::kinematics::Frame > from, rw::core::Ptr< const rw::kinematics::Frame > to, const rw::kinematics::State &state) | |
Forward kinematics for the path leading from from to to. More... | |
FKRange () | |
Default constructor. More... | |
rw::math::Transform3D | get (const rw::kinematics::State &state) const |
The relative transform between the frames. More... | |
rw::core::Ptr< const rw::kinematics::Frame > | getEnd () const |
Returns the last frame in the range. More... | |
rw::core::Ptr< const rw::kinematics::Frame > | getBase () const |
Returns the first frame in the range. More... | |
Forward kinematics between a pair of frames.
FKRange finds the relative transform between a pair of frames. FKRange finds the path connecting the pair of frames and computes the total transform of this path. Following initialization, FKRange assumes that the path does not change structure because of uses of the attachFrame() feature. If the structure of the path has changed, the FKRange will produce wrong results.
FKRange is guaranteed to select the shortest path connecting the frames, i.e. the path doesn't go all the way down to the root if it can be helped.
FKRange | ( | rw::core::Ptr< const rw::kinematics::Frame > | from, |
rw::core::Ptr< const rw::kinematics::Frame > | to, | ||
const rw::kinematics::State & | state | ||
) |
Forward kinematics for the path leading from from to to.
If a frame of NULL is passed as argument, it is interpreted to mean the WORLD frame.
from | [in] The start frame. |
to | [in] The end frame. |
state | [in] The path structure. |
FKRange | ( | ) |
Default constructor.
Will always return an identity matrix as the transform
rw::math::Transform3D get | ( | const rw::kinematics::State & | state | ) | const |
The relative transform between the frames.
state | [in] Configuration values for the frames of the tree. |
rw::core::Ptr<const rw::kinematics::Frame> getBase | ( | ) | const |
Returns the first frame in the range.
rw::core::Ptr<const rw::kinematics::Frame> getEnd | ( | ) | const |
Returns the last frame in the range.