Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Use rclcpp events executor
Browse files Browse the repository at this point in the history
  • Loading branch information
Flova committed May 3, 2023
1 parent de1f0a5 commit 89c067e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions bitbots_extrinsic_calibration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ find_package(bitbots_docs REQUIRED)
find_package(tf2 REQUIRED)
find_package(rot_conv REQUIRED)
find_package(backward_ros REQUIRED)
find_package(irobot_events_executor REQUIRED)

include_directories(include)

Expand All @@ -33,7 +32,6 @@ ament_target_dependencies(extrinsic_calibration
tf2_geometry_msgs
tf2_ros
rot_conv
irobot_events_executor
)

enable_bitbots_docs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <tf2_ros/buffer.h>
#include <tf2/utils.h>
#include <rot_conv/rot_conv.h>
#include <rclcpp/executors/events_executor/events_executor.hpp>
#include <rclcpp/experimental/executors/events_executor/events_executor.hpp>

#include <utility>
using std::placeholders::_1;
Expand Down
1 change: 0 additions & 1 deletion bitbots_extrinsic_calibration/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<depend>tf2_ros</depend>
<depend>rot_conv</depend>
<depend>backward_ros</depend>
<depend>irobot_events_executor</depend>

<export>
<bitbots_documentation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int main(int argc, char **argv) {
rclcpp::TimerBase::SharedPtr timer = rclcpp::create_timer(
node, node->get_clock(), rclcpp::Duration(0, 1e7), [node]() -> void {node->step();});

rclcpp::executors::EventsExecutor exec;
rclcpp::experimental::executors::EventsExecutor exec;
exec.add_node(node);
exec.spin();
rclcpp::shutdown();
Expand Down

0 comments on commit 89c067e

Please sign in to comment.