35 #include <dynamic_reconfigure/server.h>
36 #include <gazebo_plugins/HokuyoConfig.h>
38 void callback(gazebo_plugins::HokuyoConfig &config, uint32_t level)
40 ROS_INFO_NAMED(
"hokuyo_node",
"Reconfigure request : %f %f %i %i %i %s %i %s %f %i",
41 config.min_ang, config.max_ang, (
int)config.intensity, config.cluster, config.skip,
42 config.port.c_str(), (
int)config.calibrate_time, config.frame_id.c_str(), config.time_offset, (
int)config.allow_unsafe_settings);
46 ROS_INFO_NAMED(
"hokuyo_node",
"Reconfigure to : %f %f %i %i %i %s %i %s %f %i",
47 config.min_ang, config.max_ang, (
int)config.intensity, config.cluster, config.skip,
48 config.port.c_str(), (
int)config.calibrate_time, config.frame_id.c_str(), config.time_offset, (
int)config.allow_unsafe_settings);
51 int main(
int argc,
char **argv)
54 dynamic_reconfigure::Server<gazebo_plugins::HokuyoConfig> srv;
55 dynamic_reconfigure::Server<gazebo_plugins::HokuyoConfig>::CallbackType
f = boost::bind(&
callback, boost::placeholders::_1, boost::placeholders::_2);