32 int main(
int argc,
char **argv)
40 std::string data_string;
41 nh.
getParam(
"test_data", data_string);
46 publisher.publish(data);
a class to store JSON values
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
static basic_json parse(detail::input_adapter i, const parser_callback_t cb=nullptr, const bool allow_exceptions=true)
deserialize from a compatible input
#define ROS_INFO_STREAM(args)
bool getParam(const std::string &key, std::string &s) const