alternative c++ library and eqivalent snippets in ros2
I am trying to migrate my code from ROS to ROS2. Basically, it is a plugin (in c++) for the actor to follow a path. I am relatively a beginner in ROS2 and have some issues like
Is it wise to replace boost::thread with std::thread to implement a custom callback queue?
private: ros::CallbackQueue queue_;
How to implement a NodeHandle or something like this (given below) in ros2?
private: ros::NodeHandle * ros_node_;
What is the equivalent of the following code snippet in ros2?
private: ros::CallbackQueue queue_;
I have referred to a couple of docs available online for migrating the code from ROS to ROS but nothing was useful. Can anyone suggest a solution?