Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
homer_msgs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
robbie
homer_msgs
Commits
e48f0914
Commit
e48f0914
authored
5 years ago
by
Daniel Müller
Browse files
Options
Downloads
Patches
Plain Diff
Added header for easier creation of processing logs
parent
682d8f4f
No related branches found
No related tags found
1 merge request
!5
Extended RGBDFrame by adding vector of node processing summary entries, which...
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
homer_msgs/.clang-format
+64
-0
64 additions, 0 deletions
homer_msgs/.clang-format
homer_msgs/CMakeLists.txt
+4
-4
4 additions, 4 deletions
homer_msgs/CMakeLists.txt
homer_msgs/include/homer_msgs/processing_log_helper.h
+31
-0
31 additions, 0 deletions
homer_msgs/include/homer_msgs/processing_log_helper.h
with
99 additions
and
4 deletions
homer_msgs/.clang-format
0 → 100644
+
64
−
0
View file @
e48f0914
---
Language: Cpp
# BasedOnStyle: WebKit
AccessModifierOffset: -4
AlignAfterOpenBracket: false
AlignEscapedNewlinesLeft: false
AlignOperands: false
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: true
ColumnLimit: 100
CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IndentCaseLabels: false
IndentWidth: 4
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 2
NamespaceIndentation: Inner
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 4
UseTab: Never
...
This diff is collapsed.
Click to expand it.
homer_msgs/CMakeLists.txt
+
4
−
4
View file @
e48f0914
...
...
@@ -5,7 +5,7 @@ project(homer_msgs)
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package
(
catkin REQUIRED COMPONENTS
#
roscpp
roscpp
# rospy
message_generation
geometry_msgs
...
...
@@ -106,7 +106,7 @@ generate_messages(
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package
(
#
INCLUDE_DIRS include
INCLUDE_DIRS include
# LIBRARIES homer_msgs
CATKIN_DEPENDS message_runtime geometry_msgs sensor_msgs std_msgs
# DEPENDS system_lib
...
...
@@ -118,9 +118,9 @@ catkin_package(
## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories
(
${
catkin_INCLUDE_DIRS
}
include
${
catkin_INCLUDE_DIRS
}
)
## Declare a cpp library
...
...
This diff is collapsed.
Click to expand it.
homer_msgs/include/homer_msgs/processing_log_helper.h
0 → 100644
+
31
−
0
View file @
e48f0914
#pragma once
#include
<ros/ros.h>
#include
<homer_msgs/NodeProcessingSummary.h>
#include
<homer_msgs/ProcessingInfo.h>
namespace
processing_log
{
/**
* This message should be called on msg receival.
*/
homer_msgs
::
NodeProcessingSummary
&
create_entry_for_this_node
(
homer_msgs
::
RGBDFrame
&
frame
)
{
const
auto
receiving_time
=
ros
::
Time
::
now
();
frame
.
processing_log
.
emplace_back
();
auto
&
log
=
frame
.
processing_log
.
back
();
log
.
receiving_time
=
receiving_time
;
log
.
node_name
=
ros
::
this_node
::
getName
();
return
log
;
};
homer_msgs
::
ProcessingInfo
&
create_new_task
(
homer_msgs
::
NodeProcessingSummary
&
summary
)
{
summary
.
tasks
.
emplace_back
();
return
summary
.
tasks
.
back
();
}
}
// namespace processing_log
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