Skip to content

Instantly share code, notes, and snippets.

@Zach417
Created October 9, 2020 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zach417/c0948d16df809724c53b966730fc4da8 to your computer and use it in GitHub Desktop.
Save Zach417/c0948d16df809724c53b966730fc4da8 to your computer and use it in GitHub Desktop.
#include <ROBOT_hardware_interface/ROBOT_hardware_interface.h>
int main(int argc, char** argv)
{
ros::init(argc, argv, "ROBOT_hardware_interface");
ros::CallbackQueue ros_queue;
ros::NodeHandle nh;
nh.setCallbackQueue(&ros_queue);
ROBOT_hardware_interface::ROBOTHardwareInterface rhi(nh);
ros::MultiThreadedSpinner spinner(0);
spinner.spin(&ros_queue);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment