Skip to content

Commit 07ad4cf

Browse files
committed
add deprecated attribute to component_container_event and component_container_mt
Signed-off-by: Arman Hosseini <armanhosseini878787@gmail.com>
1 parent 1b981a0 commit 07ad4cf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

rclcpp_components/src/component_container_event.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
#include "rclcpp_components/component_manager.hpp"
2121

22+
[[deprecated("component_container_event is deprecated and will be removed "
23+
"in the next version. Use 'ros2 run rclcpp_components "
24+
"component_container --ros-args -p executor_type:=EventsExecutor' "
25+
"instead.")]]
2226
int main(int argc, char * argv[])
2327
{
2428
/// Component container with an events executor.

rclcpp_components/src/component_container_mt.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919

2020
#include "rclcpp_components/component_manager.hpp"
2121

22+
[[deprecated("component_container_event is depracated and will be removed "
23+
"in the next version. use 'ros2 run rclcpp_components "
24+
"component_container --ros-args -p executor_type:="
25+
"MultiThreadedExecutor'."
26+
)]]
2227
int main(int argc, char * argv[])
2328
{
2429
/// Component container with a multi-threaded executor.

0 commit comments

Comments
 (0)