yaml parse hex data error
I have a yaml file like this:
info:
id: 0x120
when i loaded the param in my cpp, i define a uint32_t
variable id
and set it based on the yaml file:
uint32_t id;
ros::param::get("/info/id", id);
when compile the project , the following errors occured: anyone can help me ,tks very much.
/home/888/xxx.cpp:64:69: error: no matching function for call to ‘get(const char [39], uint32_t&)’
ros::param::get("/info/id", id_);
^
In file included from /opt/ros/melodic/include/ros/ros.h:54:0,
from /home/888/xxx.cpp:7:
This is not a yaml parsing error, but a C++ compilation error.