DJISDKNode::DJISDKNode(ros::NodeHandle& nh, ros::NodeHandle& nh_private) { init_publishers(nh); init_services(nh); init_actions(nh); init_parameters_and_activate(nh_private); }
bool QNode::init() { ros::init(init_argc,init_argv,"qtnp"); if ( ! ros::master::check() ) { return false; } ros::start(); // explicitly needed since our nodehandle is going out of scope. rviz_objects.init(); ros::NodeHandle n; init_publishers(n); start(); return true; }
bool QNode::init(const std::string &master_url, const std::string &host_url) { std::map<std::string,std::string> remappings; remappings["__master"] = master_url; remappings["__hostname"] = host_url; ros::init(remappings,"qtnp"); if ( ! ros::master::check() ) { return false; } ros::start(); // explicitly needed since our nodehandle is going out of scope. rviz_objects.init(); ros::NodeHandle n; init_publishers(n); start(); return true; }