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
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Hofmann
RobotAPI
Commits
fe3f01b1
Commit
fe3f01b1
authored
6 years ago
by
Raphael Grimm
Browse files
Options
Downloads
Patches
Plain Diff
Add DebugDrawerHelper::drawSphere
parent
eece334c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/RobotAPI/components/DebugDrawer/DebugDrawerHelper.cpp
+5
-0
5 additions, 0 deletions
source/RobotAPI/components/DebugDrawer/DebugDrawerHelper.cpp
source/RobotAPI/components/DebugDrawer/DebugDrawerHelper.h
+2
-0
2 additions, 0 deletions
source/RobotAPI/components/DebugDrawer/DebugDrawerHelper.h
with
7 additions
and
0 deletions
source/RobotAPI/components/DebugDrawer/DebugDrawerHelper.cpp
+
5
−
0
View file @
fe3f01b1
...
...
@@ -94,3 +94,8 @@ Vector3Ptr DebugDrawerHelper::makeGlobalDirection(const Eigen::Vector3f& directi
{
return
new
Vector3
(
math
::
Helpers
::
TransformDirection
(
rn
->
getGlobalPose
(),
direction
));
}
void
armarx
::
DebugDrawerHelper
::
drawSphere
(
const
std
::
string
&
name
,
const
Eigen
::
Vector3f
&
position
,
float
size
,
const
armarx
::
DrawColor
&
color
)
{
debugDrawerPrx
->
setSphereVisu
(
layerName
,
name
,
makeGlobal
(
position
),
color
,
size
);
}
This diff is collapsed.
Click to expand it.
source/RobotAPI/components/DebugDrawer/DebugDrawerHelper.h
+
2
−
0
View file @
fe3f01b1
...
...
@@ -59,6 +59,8 @@ namespace armarx
void
drawArrow
(
const
std
::
string
&
name
,
const
Eigen
::
Vector3f
&
pos
,
const
Eigen
::
Vector3f
&
direction
,
const
DrawColor
&
color
,
float
length
,
float
width
);
void
drawSphere
(
const
std
::
string
&
name
,
const
Eigen
::
Vector3f
&
position
,
float
size
,
const
DrawColor
&
color
);
PosePtr
makeGlobal
(
const
Eigen
::
Matrix4f
&
pose
);
Vector3Ptr
makeGlobal
(
const
Eigen
::
Vector3f
&
position
);
Vector3Ptr
makeGlobalDirection
(
const
Eigen
::
Vector3f
&
direction
);
...
...
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