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
01bb825e
Commit
01bb825e
authored
6 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Added operators
parent
415479d7
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/libraries/core/DebugDrawerTopic.cpp
+25
-0
25 additions, 0 deletions
source/RobotAPI/libraries/core/DebugDrawerTopic.cpp
source/RobotAPI/libraries/core/DebugDrawerTopic.h
+11
-0
11 additions, 0 deletions
source/RobotAPI/libraries/core/DebugDrawerTopic.h
with
36 additions
and
0 deletions
source/RobotAPI/libraries/core/DebugDrawerTopic.cpp
+
25
−
0
View file @
01bb825e
...
...
@@ -134,4 +134,29 @@ namespace armarx
this
->
sleepFor
(
shortSleepDuration
);
}
DebugDrawerTopic
::
operator
bool
()
const
{
return
topic
;
}
armarx
::
DebugDrawerTopic
::
operator
DebugDrawerInterfacePrx
&
()
{
return
topic
;
}
armarx
::
DebugDrawerTopic
::
operator
const
DebugDrawerInterfacePrx
&
()
const
{
return
topic
;
}
DebugDrawerInterfacePrx
&
DebugDrawerTopic
::
operator
->
()
{
return
topic
;
}
const
DebugDrawerInterfacePrx
&
DebugDrawerTopic
::
operator
->
()
const
{
return
topic
;
}
}
This diff is collapsed.
Click to expand it.
source/RobotAPI/libraries/core/DebugDrawerTopic.h
+
11
−
0
View file @
01bb825e
...
...
@@ -87,12 +87,23 @@ namespace armarx
const
DrawColor
&
color
,
const
std
::
string
&
name
,
const
std
::
string
&
layer
);
/// Indicate whether a topic is set, i.e. visualization is enabled.
operator
bool
()
const
;
operator
DebugDrawerInterfacePrx
&
();
operator
const
DebugDrawerInterfacePrx
&
()
const
;
/// Pointer member access operator to access the raw debug drawer proxy.
DebugDrawerInterfacePrx
&
operator
->
();
const
DebugDrawerInterfacePrx
&
operator
->
()
const
;
private:
/// Sleep for the shortSleepDuration. Useful after clearing.
void
shortSleep
();
/// The name of the debug drawer topic.
static
const
std
::
string
TOPIC_NAME
;
...
...
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