getParam 函数有一个布尔类型的返回值,可以通过它来表示是否获取参数成功; 例如:. std::string s; if (n.getParam("my_param", s)) { ROS_INFO("Got param: ...
確定! 回上一頁