针对C++代码,举例说明如下: 程序中这样写: double parking_x; double parking_y; ros::param::get("~parking_x",parking_x); ros::param::get("~parking_y",parking_y);