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
b6196a9a
Commit
b6196a9a
authored
6 years ago
by
Mirko Wächter
Browse files
Options
Downloads
Patches
Plain Diff
Update JointController.h: added doc for publish hook
parent
6aae39bb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/components/units/RobotUnit/JointControllers/JointController.h
+12
-1
12 additions, 1 deletion
...onents/units/RobotUnit/JointControllers/JointController.h
with
12 additions
and
1 deletion
source/RobotAPI/components/units/RobotUnit/JointControllers/JointController.h
+
12
−
1
View file @
b6196a9a
...
...
@@ -69,7 +69,18 @@ namespace armarx
std
::
size_t
rtGetHardwareControlModeHash
()
const
;
ControlDevice
&
getParent
()
const
;
/**
* Hook for publishing data from JointController, mainly for debugging purposes. The preferred way is to use the
* return value of the function to publish the data. This function is called in the publish thread, **not** the RT thread.
* Thus, appropriate lock-free synchronization (e.g. atomic variables or TrippleBuffer) must be used to move the data from RT
* thread to the publish thread.
* @param draw Interface proxy to the DebugDrawer topic.
* @param observer Interface proxy to DebugObserver topic.
* @return These values are published on the RobotUnitObserver in the channel "ControlDevices". The keys of the map are prepended
* with "{ControlDeviceName}_{ControlModeName}_" and are used as keys of the datafields.
*
*/
virtual
StringVariantBaseMap
publish
(
const
DebugDrawerInterfacePrx
&
draw
,
const
DebugObserverInterfacePrx
&
observer
)
const
;
protected
:
...
...
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