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
0cc2fc92
Commit
0cc2fc92
authored
1 year ago
by
Rainer Kartmann
Committed by
Rainer Kartmann
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Log queue size to debug observer
parent
0d00a295
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/libraries/armem_robot_state/server/proprioception/RobotStateWriter.cpp
+8
-4
8 additions, 4 deletions
...em_robot_state/server/proprioception/RobotStateWriter.cpp
with
8 additions
and
4 deletions
source/RobotAPI/libraries/armem_robot_state/server/proprioception/RobotStateWriter.cpp
+
8
−
4
View file @
0cc2fc92
...
...
@@ -67,10 +67,14 @@ namespace armarx::armem::server::robot_state::proprioception
{
while
(
isRunning
())
{
// if (debugObserver)
// {
// debugObserver->setDebugObserverDatafield("RobotStateWriter | Queue Size", dataBuffer.size());
// }
if
(
debugObserver
)
{
// This locks the queue, but I did not find an interface to lock the queue,
// get the size and wait_pull().
size_t
dataBufferSize
=
dataBuffer
.
size
();
debugObserver
->
setDebugObserverDatafield
(
"RobotStateWriter | Queue Size"
,
static_cast
<
long
>
(
dataBufferSize
));
}
RobotUnitData
robotUnitData
;
if
(
const
auto
status
=
dataBuffer
.
wait_pull
(
robotUnitData
);
...
...
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