TechTheTime-HighLevel 0.0.1
The high level robot's code using ros2-foxy for the robotics competition(Erobot-2022)
Manager node.

Classes

class  ClientT< T, Treq, Rs >
 ClientT class. More...
 

Functions

int main (int argc, char **argv)
 manager.cpp is an entry point of the manager node. More...
 

Detailed Description

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

manager.cpp is an entry point of the manager node.

We initialize ros2 client library rclcpp Then we create a shared pointers to clients which inherit from ClientT. We call ClientT::set_shared to set a self shared pointer which is needed for ros2 client methods. Finally we can use ClientT::wait_for_connection method to connect to the service. We can then use ClientT::send method.

Author
sudogauss