Skip to content

Add interfaces for logging service.#154

Merged
clalancette merged 6 commits intoros2:rollingfrom
llapx:topic-logging_service
Apr 17, 2023
Merged

Add interfaces for logging service.#154
clalancette merged 6 commits intoros2:rollingfrom
llapx:topic-logging_service

Conversation

@llapx
Copy link
Copy Markdown
Contributor

@llapx llapx commented Mar 8, 2023

No description provided.

@llapx
Copy link
Copy Markdown
Contributor Author

llapx commented Mar 8, 2023

this PR is a component of #ros2/rclcpp#2122

@llapx llapx force-pushed the topic-logging_service branch from 230553f to f18b211 Compare March 8, 2023 04:34
Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fujitatomoya
Copy link
Copy Markdown
Collaborator

@llapx as interface, it looks good to me. just requesting update https://github.com/ros2/rcl_interfaces/blob/rolling/rcl_interfaces/README.md with additional message and service files.

@llapx
Copy link
Copy Markdown
Contributor Author

llapx commented Mar 14, 2023

@llapx as interface, it looks good to me. just requesting update https://github.com/ros2/rcl_interfaces/blob/rolling/rcl_interfaces/README.md with additional message and service files.

Updated, thanks.

@fujitatomoya
Copy link
Copy Markdown
Collaborator

@gbiggs requesting review on this.

@fujitatomoya
Copy link
Copy Markdown
Collaborator

I am not sure who to ask the review, since @gbiggs (maintainer according to pacakge.xml) not responding?

CC: @ros2/dev

@fujitatomoya
Copy link
Copy Markdown
Collaborator

@iuhilnehc-ynos can you review this?

Copy link
Copy Markdown
Member

@aprotyas aprotyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of comments, not an exhaustive review by any means

llapx and others added 3 commits April 4, 2023 10:19
Signed-off-by: Lei Liu <Lei.Liu.AP@sony.com>
Signed-off-by: Lei Liu <Lei.Liu.AP@sony.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>
@Barry-Xu-2018 Barry-Xu-2018 force-pushed the topic-logging_service branch from 29251e0 to fbda6c0 Compare April 4, 2023 02:20
@Barry-Xu-2018
Copy link
Copy Markdown

Rebase was done.

@fujitatomoya
Copy link
Copy Markdown
Collaborator

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Signed-off-by: Barry Xu <barry.xu@sony.com>
Comment on lines +12 to +13
# logger level: UNKNOWN, DEBUG, INFO, WARN, ERROR, FATAL
# 0 10 20 30 40 50
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# logger level: UNKNOWN, DEBUG, INFO, WARN, ERROR, FATAL
# 0 10 20 30 40 50

These are now specified as constants, so the comment isn't needed

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I remove them.

Signed-off-by: Barry Xu <barry.xu@sony.com>
Comment on lines +61 to +63
* [SetParametersAtomically](srv/SetParametersAtomically.srv): Add or change all parameters in a list or none at all.
* [GetLoggerLevels](srv/GetLoggerLevels.srv): Get the logger levels of a specific list of nodes which are in the same process space.
* [SetLoggerLevels](srv/SetLoggerLevels.srv): Change a list of logger levels of nodes which are in the same process space.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* [SetParametersAtomically](srv/SetParametersAtomically.srv): Add or change all parameters in a list or none at all.
* [GetLoggerLevels](srv/GetLoggerLevels.srv): Get the logger levels of a specific list of nodes which are in the same process space.
* [SetLoggerLevels](srv/SetLoggerLevels.srv): Change a list of logger levels of nodes which are in the same process space.
* [SetParametersAtomically](srv/SetParametersAtomically.srv): Add or change all parameters in a list or none at all
* [GetLoggerLevels](srv/GetLoggerLevels.srv): Get the logger levels of a specific list of nodes which are in the same process space
* [SetLoggerLevels](srv/SetLoggerLevels.srv): Change a list of logger levels of nodes which are in the same process space

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@@ -0,0 +1,13 @@
# All available logger levels
Copy link
Copy Markdown
Contributor

@clalancette clalancette Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should note here that this will match what is in rcutils. Maybe something like:

Suggested change
# All available logger levels
# All available logger levels; these correspond to the enum in rcutils/logger.h

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

string name

# The logger level
uint8 level
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this need to be the same size as what rcutils can represent? In https://github.com/ros2/rcutils/blob/04aa9804feb46403f0058f4b089134a6985e19d3/include/rcutils/logging.h#L171-L179 , it is an enum, which I think is at least 4 bytes (uint32).

Suggested change
uint8 level
uint32 level

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@fujitatomoya
Copy link
Copy Markdown
Collaborator

@Barry-Xu-2018 i was trying to push the fix but no permission. can you check the unresolved comments?

Signed-off-by: Barry Xu <barry.xu@sony.com>
@Barry-Xu-2018
Copy link
Copy Markdown

I updated codes based on review comments. @fujitatomoya
@clalancette Please review again.

@clalancette
Copy link
Copy Markdown
Contributor

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants