Skip to content

Commit

Permalink
Add interfaces for logging service.
Browse files Browse the repository at this point in the history
Signed-off-by: Lei Liu <Lei.Liu.AP@sony.com>
  • Loading branch information
llapx committed Mar 8, 2023
1 parent 18d891a commit f18b211
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rcl_interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"msg/ParameterType.msg"
"msg/ParameterValue.msg"
"msg/SetParametersResult.msg"
"msg/LoggerLevel.msg"
"msg/SetLoggerLevelsResult.msg"
"srv/DescribeParameters.srv"
"srv/GetParameters.srv"
"srv/GetParameterTypes.srv"
"srv/ListParameters.srv"
"srv/SetParametersAtomically.srv"
"srv/SetParameters.srv"
"srv/GetLoggerLevels.srv"
"srv/SetLoggerLevels.srv"
DEPENDENCIES builtin_interfaces
)

Expand Down
6 changes: 6 additions & 0 deletions rcl_interfaces/msg/LoggerLevel.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# The logger name.
string name

# logger level: UNKNOWN, DEBUG, INFO, WARN, ERROR, FATAL
# 0 10 20 30 40 50
uint8 level
5 changes: 5 additions & 0 deletions rcl_interfaces/msg/SetLoggerLevelsResult.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# True when succeed, false when failed.
bool successful

# Reason why the setting was either successful or a failure.
string reason
7 changes: 7 additions & 0 deletions rcl_interfaces/srv/GetLoggerLevels.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# A list of logger names to get.
string[] names

---
# List of logger levels which is the same order as the provided names. If a
# logger was not yet set, the value will have 'unknown' as the value.
LoggerLevel[] levels
6 changes: 6 additions & 0 deletions rcl_interfaces/srv/SetLoggerLevels.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# A list of loggers to set.
LoggerLevel[] levels

---
# Indicates whether setting each logger succeeded or not and why.
SetLoggerLevelsResult[] results

0 comments on commit f18b211

Please sign in to comment.