Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a method to the LifecycleNode class to get the logging interface - #652

Merged
Karsten1987 merged 1 commit into
ros2:masterfrom
mjeronimo:master
Mar 6, 2019
Merged

Karsten1987 merged 1 commit into
ros2:masterfrom
mjeronimo:master

Conversation

@mjeronimo

@mjeronimo mjeronimo commented Mar 6, 2019

Copy link
Copy Markdown

There are getters for the other interfaces, but the logging interface appears to have been overlooked.

Fixes #649

@tfoote tfoote added the in review Waiting for review (Kanban column) label Mar 6, 2019
There are getters for the other interfaces, but the logging interface
appears to have been overlooked.

Signed-off-by: Michael Jeronimo <[email protected]>

@Karsten1987 Karsten1987 left a comment

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.

looks good to me. Thanks for the patch:

CI:

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

@Karsten1987 Karsten1987 self-assigned this Mar 6, 2019
@Karsten1987
Karsten1987 merged commit d2d9ad8 into ros2:master Mar 6, 2019
@Karsten1987 Karsten1987 removed the in review Waiting for review (Kanban column) label Mar 6, 2019
mm318 pushed a commit to aws-ros-dev/rclcpp that referenced this pull request Mar 29, 2019
* Add interfaces for events in memory_strategy

Signed-off-by: Miaofei <[email protected]>

* refactor waitables

Signed-off-by: Miaofei <[email protected]>

* Attempt to fix cppcheck (ros2#646)

Signed-off-by: Shane Loretz <[email protected]>

* add event callbacks to publisher, subscriber, client, service

Signed-off-by: Miaofei <[email protected]>

* fix some ros2 build issues

Signed-off-by: Miaofei <[email protected]>

* Add a method to the LifecycleNode class to get the logging interface (ros2#652)

There are getters for the other interfaces, but the logging interface
appears to have been overlooked.

Signed-off-by: Michael Jeronimo <[email protected]>

* Add Doxyfile for rclcpp_action

Signed-off-by: Jacob Perron <[email protected]>

* Add documentation to rclcpp_action

Signed-off-by: Jacob Perron <[email protected]>

* update to use separated action types (ros2#601)

* match renamed action types

* fix action type casting

* rename type/field to use correct term

* rename custom GoalID type to avoid naming collision, update types using unique_identifier_msgs

* remove obsolete comments

* change signature of set_succeeded / set_canceled

* change signature of     on_terminal_state_(uuid_, result_msg);set_succeeded / set_canceled

* change signature of set_aborted

* change signature of publish_feedback

* update another test

Signed-off-by: Miaofei <[email protected]>

* update client-facing API

Signed-off-by: Miaofei <[email protected]>

* Don't hardcode int64_t for duration type representations (ros2#648)

In LLVM's `libcxx`, `int64_t` doesn't match chrono literals. See example below. To compile, run  `clang++-6.0 -stdlib=libc++ -std=c++14 TEST.cpp`

```
using namespace std::chrono_literals;

template<typename RatioT = std::milli>
bool
wait_for_service(
   std::chrono::duration<int64_t, RatioT> timeout
)
{
   return timeout == std::chrono::nanoseconds(0);
}

int main() {
   wait_for_service(2s);
   return 0;
}

```

Result of compilation
```
TEST.cpp:6:1: note: candidate template ignored: could not match 'long' against 'long long'
wait_for_service(
```

Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Steven! Ragnarök <[email protected]>

* improve usability of the SubscriptionOptions and PublisherOptions classes

Signed-off-by: Miaofei <[email protected]>

* Fix test_time_source test (ros2#639)

* Fix flakey test

Signed-off-by: Pete Baughman <[email protected]>

* Fix lint and uncrustify issues

Signed-off-by: Pete Baughman <[email protected]>

* fix lint errors

Signed-off-by: Miaofei <[email protected]>

* apply uncrustify

Signed-off-by: Miaofei <[email protected]>

* add section about DCO to CONTRIBUTING.md

* update for rcl API changes

Signed-off-by: Miaofei <[email protected]>

* Fix lint and build warnings and API inconsistency

Signed-off-by: Emerson Knapp <[email protected]>

* Avoid race that triggers timer too often (ros2#621)

The two distinct operations of acquiring and subsequent checking of a
timer have to be protected by one lock_guard against races with other
threads. The releasing of a timer has to be protected by the same lock.

Given this requirement there is no use for a second mutex.

Signed-off-by: Marko Durkovic <[email protected]>

* Back out Waitable and GraphEvent-related changes

Signed-off-by: Emerson Knapp <[email protected]>

* add publisher and subscription events to AllocatorMemoryStrategy

* Add stub API for assert_liveliness

* Fix use_sim_time issue on LifeCycleNode (ros2#651)

Signed-off-by: vinnamkim <[email protected]>

* revert changes to client and services
address PR comments

Signed-off-by: Miaofei <[email protected]>

* Add parameter-related templates to LifecycleNode (ros2#645)

* Add parameter-related templates to LifecycleNode

Signed-off-by: vinnamkim <[email protected]>

* Update rclcpp_lifecycle/include/rclcpp_lifecycle/lifecycle_node.hpp

Co-Authored-By: vinnamkim <[email protected]>

* Update rclcpp_lifecycle/include/rclcpp_lifecycle/lifecycle_node.hpp

* update API calls into rcl

* fix linter errors in rclcpp_lifecycle (ros2#672)

Signed-off-by: Karsten Knese <[email protected]>
mm318 pushed a commit to aws-ros-dev/rclcpp that referenced this pull request Apr 2, 2019
* New interfaces for incoming QoS features

Adds new PublisherOptions and SubscriptionOptions classes, with new Publisher and Subscriber constructors
to accept them. Adds the liveliness assertion callbacks that will be needed for the new Liveliness QoS policy

Signed-off-by: Emerson Knapp <[email protected]>

* Fix options usage in implementation, and add test to catch that code path.

Signed-off-by: Emerson Knapp <[email protected]>

* rclcpp QoS implementation (#2)

* Add interfaces for events in memory_strategy

Signed-off-by: Miaofei <[email protected]>

* refactor waitables

Signed-off-by: Miaofei <[email protected]>

* Attempt to fix cppcheck (ros2#646)

Signed-off-by: Shane Loretz <[email protected]>

* add event callbacks to publisher, subscriber, client, service

Signed-off-by: Miaofei <[email protected]>

* fix some ros2 build issues

Signed-off-by: Miaofei <[email protected]>

* Add a method to the LifecycleNode class to get the logging interface (ros2#652)

There are getters for the other interfaces, but the logging interface
appears to have been overlooked.

Signed-off-by: Michael Jeronimo <[email protected]>

* Add Doxyfile for rclcpp_action

Signed-off-by: Jacob Perron <[email protected]>

* Add documentation to rclcpp_action

Signed-off-by: Jacob Perron <[email protected]>

* update to use separated action types (ros2#601)

* match renamed action types

* fix action type casting

* rename type/field to use correct term

* rename custom GoalID type to avoid naming collision, update types using unique_identifier_msgs

* remove obsolete comments

* change signature of set_succeeded / set_canceled

* change signature of     on_terminal_state_(uuid_, result_msg);set_succeeded / set_canceled

* change signature of set_aborted

* change signature of publish_feedback

* update another test

Signed-off-by: Miaofei <[email protected]>

* update client-facing API

Signed-off-by: Miaofei <[email protected]>

* Don't hardcode int64_t for duration type representations (ros2#648)

In LLVM's `libcxx`, `int64_t` doesn't match chrono literals. See example below. To compile, run  `clang++-6.0 -stdlib=libc++ -std=c++14 TEST.cpp`

```
using namespace std::chrono_literals;

template<typename RatioT = std::milli>
bool
wait_for_service(
   std::chrono::duration<int64_t, RatioT> timeout
)
{
   return timeout == std::chrono::nanoseconds(0);
}

int main() {
   wait_for_service(2s);
   return 0;
}

```

Result of compilation
```
TEST.cpp:6:1: note: candidate template ignored: could not match 'long' against 'long long'
wait_for_service(
```

Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Steven! Ragnarök <[email protected]>

* improve usability of the SubscriptionOptions and PublisherOptions classes

Signed-off-by: Miaofei <[email protected]>

* Fix test_time_source test (ros2#639)

* Fix flakey test

Signed-off-by: Pete Baughman <[email protected]>

* Fix lint and uncrustify issues

Signed-off-by: Pete Baughman <[email protected]>

* fix lint errors

Signed-off-by: Miaofei <[email protected]>

* apply uncrustify

Signed-off-by: Miaofei <[email protected]>

* add section about DCO to CONTRIBUTING.md

* update for rcl API changes

Signed-off-by: Miaofei <[email protected]>

* Fix lint and build warnings and API inconsistency

Signed-off-by: Emerson Knapp <[email protected]>

* Avoid race that triggers timer too often (ros2#621)

The two distinct operations of acquiring and subsequent checking of a
timer have to be protected by one lock_guard against races with other
threads. The releasing of a timer has to be protected by the same lock.

Given this requirement there is no use for a second mutex.

Signed-off-by: Marko Durkovic <[email protected]>

* Back out Waitable and GraphEvent-related changes

Signed-off-by: Emerson Knapp <[email protected]>

* add publisher and subscription events to AllocatorMemoryStrategy

* Add stub API for assert_liveliness

* Fix use_sim_time issue on LifeCycleNode (ros2#651)

Signed-off-by: vinnamkim <[email protected]>

* revert changes to client and services
address PR comments

Signed-off-by: Miaofei <[email protected]>

* Add parameter-related templates to LifecycleNode (ros2#645)

* Add parameter-related templates to LifecycleNode

Signed-off-by: vinnamkim <[email protected]>

* Update rclcpp_lifecycle/include/rclcpp_lifecycle/lifecycle_node.hpp

Co-Authored-By: vinnamkim <[email protected]>

* Update rclcpp_lifecycle/include/rclcpp_lifecycle/lifecycle_node.hpp

* update API calls into rcl

* fix linter errors in rclcpp_lifecycle (ros2#672)

Signed-off-by: Karsten Knese <[email protected]>

* Update to use the new interface definitions

Signed-off-by: Emerson Knapp <[email protected]>

* Remove duplicate event_handlers_
cho3 pushed a commit to cho3/rclcpp that referenced this pull request Jun 3, 2019
…os2#652)

There are getters for the other interfaces, but the logging interface
appears to have been overlooked.

Signed-off-by: Michael Jeronimo <[email protected]>
nnmm pushed a commit to ApexAI/rclcpp that referenced this pull request Jul 9, 2022
* warn about unused return value for set_logger_level

Signed-off-by: Dirk Thomas <[email protected]>

* revert change of RCL_UNUSED macro

Signed-off-by: Dirk Thomas <[email protected]>
bartalor pushed a commit to bartalor/rclcpp that referenced this pull request Jul 15, 2026
…os2#652)

There are getters for the other interfaces, but the logging interface
appears to have been overlooked.

Signed-off-by: Michael Jeronimo <[email protected]>
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.

3 participants