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
498c6616
Commit
498c6616
authored
10 years ago
by
Nikolaus Vahrenkamp
Browse files
Options
Downloads
Patches
Plain Diff
DebugDrawer documentation
parent
b754a8fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.h
+39
-2
39 additions, 2 deletions
...ce/RobotAPI/components/DebugDrawer/DebugDrawerComponent.h
with
39 additions
and
2 deletions
source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.h
+
39
−
2
View file @
498c6616
...
...
@@ -46,7 +46,7 @@
namespace
armarx
{
/*!
* \class
ArmarXPhysicsWorld
PropertyDefinitions
* \class
DebugDrawer
PropertyDefinitions
* \brief
*/
class
DebugDrawerPropertyDefinitions
:
...
...
@@ -61,7 +61,44 @@ public:
}
};
/*!
* \brief The DebugDrawerComponent class implements a component that listens to layered / debug drawer commands and creates internal representations of the visualization
* which can be conveniently used by gui components to visualize the content.
*
* An exemplary usage looks like this:
\verbatim
DebugDrawerInterfacePrx prxDD = getTopic<DebugDrawerInterfacePrx>("DebugDrawerUpdates");
if (prxDD)
{
// draw in global coordinate system
Eigen::Matrix4f p;
p.setIdentity();
p(2,3) = 1000.0f;
PosePtr gp(new Pose(p));
prxDD->setPoseDebugLayerVisu("testPose",gp);
armarx::Vector3Ptr p1(new armarx::Vector3());
p1->x = 0;
p1->y = 0;
p1->z = 0;
armarx::Vector3Ptr p2(new armarx::Vector3());
p2->x = 1000.0f;
p2->y = 1000.0f;
p2->z = 1000.0f;
armarx::DrawColor c;
c.r = 1.0f;
c.g = 0;
c.b = 0;
c.a = 1;
prxDD->setLineDebugLayerVisu("testLine", p1, p2, 2.0f, c);
}
\endverbatim
*
* The following plugins listen to the DebugDrawer topic:
* \see armarx::SimulatorControlGuiPlugin
* \see memoryx::WorkingMemoryGuiPlugin
*/
class
DebugDrawerComponent
:
virtual
public
armarx
::
DebugDrawerInterface
,
virtual
public
Component
...
...
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