ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The answer is in the error output:

16:08:17 /opt/ros/indigo/include/ros/node_handle.h:2039:8: note:   template argument deduction/substitution failed:
16:08:17 /tmp/binarydeb/ros-indigo-rail-object-detector-1.0.2/src/rail_object_detector/detector.cpp:56:32: note:   deduced conflicting types for parameter ‘const T’ (‘long double’ and ‘double’)
16:08:17                      double(5.0));
16:08:17                                 ^

Both long double and double are valid types; evidently, the compiler you're using can't disambiguate them.

This is outside my realm of knowledge; I'm not sure if people run into this often or if there's a typical fix. But it seems to me that you should be able to explicitly declare and initialize a typed variable on the line before and use that:

double x=5.0;
private_nh_.param("max_desired_publish_freq", max_desired_publish_freq_, x);