TechTheTime-HighLevel 0.0.1
The high level robot's code using ros2-foxy for the robotics competition(Erobot-2022)
MotionSubscriber.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
5#include "rclcpp/rclcpp.hpp"
6#include "motion_msg_srv/msg/motion.hpp"
7
8using std::placeholders::_1;
9
10class MotionSubscriber : public rclcpp::Node {
11public:
13
14private:
15 void motion_callback(const motion_msg_srv::msg::Motion::SharedPtr msg) const;
16 rclcpp::Subscription<motion_msg_srv::msg::Motion>::SharedPtr subscriber_;
17};
Definition: MotionSubscriber.hpp:10
rclcpp::Subscription< motion_msg_srv::msg::Motion >::SharedPtr subscriber_
Definition: MotionSubscriber.hpp:16
MotionSubscriber()
Definition: MotionSubscriber.cpp:11
void motion_callback(const motion_msg_srv::msg::Motion::SharedPtr msg) const
Definition: MotionSubscriber.cpp:16