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
6016df87
Commit
6016df87
authored
8 years ago
by
Mirko Wächter
Browse files
Options
Downloads
Patches
Plain Diff
small fixes in tcp-rectangle tutorial
parent
6406c607
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/tutorials/TutorialMoveRobotArmAlongRectangle.dox
+6
-5
6 additions, 5 deletions
...en/pages/tutorials/TutorialMoveRobotArmAlongRectangle.dox
with
6 additions
and
5 deletions
etc/doxygen/pages/tutorials/TutorialMoveRobotArmAlongRectangle.dox
+
6
−
5
View file @
6016df87
...
...
@@ -32,13 +32,14 @@ Your statechart group will need access to the following proxies:
The first action the robot should do is move its arm into a start configuration.
To find a suitable pose you can use the the GUI plugin RobotIK. To use this plugin
make sure to start the scenario Armar3Simulation. Then add two widgets to the ArmarXGui:
\li ```
RobotControl -> KinematicUnit
GUI```
\li ```
Visualization -> RobotViewer
GUI```
\li ```RobotControl -> RobotIK```
In the RobotIK GUI select the kinematic chain "HipYawRightArm" and move the TCP to a suitable position.
Then open the KinematicUnitGUI and read off the values of the joints belonging to the kinematic chain.
Then open the RobotViewerGUI, select the correct kinematic chain and copy the joint values of this chain.
The format is already a Map(float) in JSON as expected from the startchart.
The resulting joint value map can represented as a "Map(float)" in your statechart. An example follow
s:
An example could look like thi
s:
\code{.js}
{
"Hip Yaw": -0.0230325,
...
...
@@ -83,7 +84,7 @@ while (!isRunningTaskStopped())
\subsection RobotAPI-Tutorial-MoveArmRect-sec-hints-tcp-velocity-control Using velocity control for the TCP
In this tutorial you are required to use the TCPControlUnit to control the arm.
Before you can use the unit you have to request it once. Do this during the onEnter() method of you statechart:
Before you can use the unit you have to request it once. Do this during the onEnter() method of you
r
statechart:
\code{.cpp}
getTcpControlUnit()->request();
\endcode
...
...
@@ -98,7 +99,7 @@ TimeUtil::MSSleep(100);
getTcpControlUnit()->release();
\endcode
To set a velocity relative to the current robot position you can use this code fragment:
To set a velocity relative to the current robot
's tcp
position you can use this code fragment:
\code{.cpp}
Eigen::Vector3f velocity = ... // To be calculated
...
...
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