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
Florian Leander Singer
RobotAPI
Commits
abd8770e
Commit
abd8770e
authored
6 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Added drawBox
parent
01bb825e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/RobotAPI/libraries/core/DebugDrawerTopic.cpp
+19
-1
19 additions, 1 deletion
source/RobotAPI/libraries/core/DebugDrawerTopic.cpp
source/RobotAPI/libraries/core/DebugDrawerTopic.h
+10
-3
10 additions, 3 deletions
source/RobotAPI/libraries/core/DebugDrawerTopic.h
with
29 additions
and
4 deletions
source/RobotAPI/libraries/core/DebugDrawerTopic.cpp
+
19
−
1
View file @
abd8770e
...
...
@@ -82,7 +82,25 @@ namespace armarx
}
}
void
DebugDrawerTopic
::
drawBox
(
const
Eigen
::
Vector3f
&
position
,
const
Eigen
::
Quaternionf
&
orientation
,
const
Eigen
::
Vector3f
&
extents
,
const
DrawColor
&
color
,
const
std
::
string
&
name
,
const
std
::
string
&
layer
)
{
if
(
topic
)
{
topic
->
setBoxVisu
(
layer
,
name
,
new
Pose
(
new
Vector3
(
position
),
new
Quaternion
(
orientation
)),
new
Vector3
(
extents
),
color
);
}
}
void
DebugDrawerTopic
::
drawBox
(
const
Eigen
::
Matrix4f
&
pose
,
const
Eigen
::
Vector3f
&
extents
,
const
DrawColor
&
color
,
const
std
::
string
&
name
,
const
std
::
string
&
layer
)
{
drawBox
(
math
::
Helpers
::
Position
(
pose
),
Eigen
::
Quaternionf
(
math
::
Helpers
::
Orientation
(
pose
)),
extents
,
color
,
name
,
layer
);
}
void
DebugDrawerTopic
::
drawPose
(
...
...
This diff is collapsed.
Click to expand it.
source/RobotAPI/libraries/core/DebugDrawerTopic.h
+
10
−
3
View file @
abd8770e
...
...
@@ -25,7 +25,8 @@ namespace armarx
* Methods arguments are ordered from specific to general. That is, common
* arguments such as layer, name and color always come last. Less common
* parameters (e.g. width of arrow/line), come before them. The first
* arguments are those specific to the respective function.
* arguments are those specific to the respective function (although
* pose-related arguments typically come first).
* (Added methods should follow this pattern.)
*
* All methods check whether the internal topic proxy is set, and do
...
...
@@ -75,8 +76,14 @@ namespace armarx
void
sleepFor
(
const
DurationT
&
duration
);
void
drawPose
(
const
Eigen
::
Matrix4f
&
pose
,
const
std
::
string
&
name
,
const
std
::
string
&
layer
=
"pose"
);
void
drawBox
(
const
Eigen
::
Vector3f
&
position
,
const
Eigen
::
Quaternionf
&
orientation
,
const
Eigen
::
Vector3f
&
extents
,
const
DrawColor
&
color
,
const
std
::
string
&
name
,
const
std
::
string
&
layer
);
void
drawBox
(
const
Eigen
::
Matrix4f
&
pose
,
const
Eigen
::
Vector3f
&
extents
,
const
DrawColor
&
color
,
const
std
::
string
&
name
,
const
std
::
string
&
layer
);
void
drawPose
(
const
Eigen
::
Matrix4f
&
pose
,
const
std
::
string
&
name
,
const
std
::
string
&
layer
=
"pose"
);
void
drawPose
(
const
Eigen
::
Vector3f
&
pos
,
const
Eigen
::
Quaternionf
&
ori
,
const
std
::
string
&
name
,
const
std
::
string
&
layer
=
"pose"
);
...
...
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