Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hochautomatisiertes-Fahren
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philipp Badenhoop
Hochautomatisiertes-Fahren
Commits
d12f691f
There was an error fetching the commit references. Please try again later.
Commit
d12f691f
authored
6 years ago
by
Hoop77
Browse files
Options
Downloads
Patches
Plain Diff
-
parent
03324af6
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/catkin_ws/src/car/include/logging/Logging.h
+1
-0
1 addition, 0 deletions
modules/catkin_ws/src/car/include/logging/Logging.h
modules/catkin_ws/src/car/src/logging/Logging.cpp
+8
-4
8 additions, 4 deletions
modules/catkin_ws/src/car/src/logging/Logging.cpp
with
9 additions
and
4 deletions
modules/catkin_ws/src/car/include/logging/Logging.h
+
1
−
0
View file @
d12f691f
...
...
@@ -78,6 +78,7 @@ private:
void
stmDataCallback
(
const
stmDataMsg
::
ConstPtr
&
inMsg
);
void
ussDataCallback
(
const
ussDataMsg
::
ConstPtr
&
inMsg
);
};
}
#endif //MODULES_LOGGING_H
This diff is collapsed.
Click to expand it.
modules/catkin_ws/src/car/src/logging/Logging.cpp
+
8
−
4
View file @
d12f691f
...
...
@@ -49,9 +49,12 @@ void Logging::onInit()
loggingServer
->
advertiseService
(
[
this
](
const
auto
&
clientEndpoint
,
auto
&
requestMessage
,
auto
&
responseMessage
)
{
std
::
cout
<<
"
\n
----------------------------
\n
"
<<
"!!! CONNECTED !!!
\n
"
<<
"
\n
----------------------------
\n\n
"
;
std
::
lock_guard
<
std
::
mutex
>
lock
{
loggingMutex
};
responseMessage
=
networking
::
utils
::
stringFromStreambuf
(
loggingBuffer
,
std
::
min
(
loggingBuffer
.
size
(),
MAX_MESSAGE_SIZE
));
responseMessage
=
networking
::
utils
::
stringFromStreambuf
(
loggingBuffer
,
std
::
min
(
loggingBuffer
.
size
(),
MAX_MESSAGE_SIZE
));
});
NODELET_INFO
(
"Logging::onInit -- END"
);
...
...
@@ -106,8 +109,9 @@ void Logging::stmDataCallback(const stmDataMsg::ConstPtr & inMsg)
void
Logging
::
ussDataCallback
(
const
ussDataMsg
::
ConstPtr
&
inMsg
)
{
std
::
cout
<<
"Logging received new uss data ( ).
\n
"
;
logMessage
(
std
::
string
{
"uss [distance]: "
}
+
std
::
to_string
(
inMsg
->
distance
));
auto
distance
=
std
::
to_string
(
inMsg
->
distance
);
std
::
cout
<<
"Logging received new uss data ( distance: "
<<
distance
<<
" ).
\n
"
;
logMessage
(
std
::
string
{
"uss [distance]: "
}
+
distance
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
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