Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
RobotAPI
Commits
86e44552
Commit
86e44552
authored
9 years ago
by
Mirko Wächter
Browse files
Options
Downloads
Patches
Plain Diff
updated pose howtos
parent
5c74d8b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
etc/doxygen/pages/3.HowTos.dox
+22
-7
22 additions, 7 deletions
etc/doxygen/pages/3.HowTos.dox
with
22 additions
and
7 deletions
etc/doxygen/pages/3.HowTos.dox
+
22
−
7
View file @
86e44552
...
...
@@ -7,18 +7,33 @@
\page RobotAPI-HowTos-Eigen-From-Pose How to convert a Variant pose into an Eigen Matrix
\ingroup RobotAPI-HowTos
If you have a armarx::Pose or armarx::FramedPose or armarx::LinkedPose:
\code
#include <RobotAPI/libraries/robotstate/remote/ArmarPose.h>
#include <VirtualRobot/LinkedCoordinate.h>
#include <Eigen/Core>
#include <RobotAPI/libraries/core/LinkedPose.h>
std::string refFrame = "Base";
FramedPos
ition
Ptr pos
ition
= getInput<FramedPos
ition
>("pos
ition");
FramedOrientationPtr orientation = getInput<FramedOrientation>("orientation"
);
FramedPos
e
Ptr pos
e
= getInput<FramedPos
e
>("pos
e"); // if you are in a statechart
Eigen::Matrix4f matrix = pose->toEigen(
);
VirtualRobot::LinkedCoordinate pose = ArmarPose::createLinkedCoordinate(context->remoteRobot, position, orientation);
\endcode
If you only have a armarx::FramedPosition and armarx::FramedOrientation:
\code
#include <RobotAPI/libraries/core/LinkedPose.h>
std::string refFrame = "Base";
FramedPositionPtr position = getInput<FramedPosition>("position"); // if you are in a statechart
FramedOrientationPtr orientation = getInput<FramedOrientation>("orientation"); // if you are in a statechart
Eigen::Matrix4f matrix = pose.getInFrame(refFrame
);
PosePtr pose = new Pose(position, orientation
);
Eigen::Matrix4f matrix = pose->toEigen();
\endcode
For more information refer to \ref RobotAPI-FramedPose.
\page RobotAPI-HowTos-Change-Pose-Frame How to change a frame of a coordinate/pose
\ingroup RobotAPI-HowTos
Refer to \ref RobotAPI-FramedPose.
*/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment