Apartment Navigation By Classic Wheeled Robot
Comprehensive Production Grade Repository For Apartment Navigation Project (Inspired By Udacity Course)
 
Loading...
Searching...
No Matches
drive_bot_node.hpp
1#pragma once
2
3#include <custom_interfaces/srv/drive_to_target.hpp>
4#include <geometry_msgs/msg/twist.hpp>
5#include <rclcpp/rclcpp.hpp>
6
8
15class DriveBot : public rclcpp::Node {
16 public:
22 DriveBot();
23
24 private:
31 void handleDriveRequest(
32 custom_interfaces::srv::DriveToTarget::Request::SharedPtr req,
33 custom_interfaces::srv::DriveToTarget::Response::SharedPtr res
34 );
35
36 rclcpp::Publisher<geometry_msgs::msg::Twist>::SharedPtr m_cmdVelPub;
37 rclcpp::Service<custom_interfaces::srv::DriveToTarget>::SharedPtr m_driveService;
38};
39
40} // namespace robot_control::ball_chaser
DriveBot()
Constructs and initializes the DriveBot node.
Definition drive_bot_node.cpp:8
Ball detection and chasing logic.
Definition image_utils.hpp:5