ros2 / examples

Example packages for ROS 2
Apache License 2.0
691 stars 311 forks source link

Equivalent of following codes in ros2 #306

Closed addy1997 closed 3 years ago

addy1997 commented 3 years ago

Required Info:

Operating System:
    Ubuntu 20.04
Installation type:
    Binaries
Version or commit hash:
    foxy
Client library (if applicable):
    rclccp, boost

I am creating a plugin for the "actor" to follow a path using ros2 and ign gazebo. For that, I want to know what is the equivalent of following one-liners in ros2

ros::NodeHandle * ros_node_;

ros::Subscriber state_sub_;

ros::CallbackQueue queue_;

boost::thread callbackQueueThread_;

Please can anybody suggest something?

clalancette commented 3 years ago

For questions like this, please ask on https://answers.ros.org , where you can get more help. Also include a lot more information about what you are trying to do. I'm going to close this for now.