Go to the documentation of this file.
51 #include <ros/node_handle.h>
57 template <
class ConfigType>
70 const std::string&
name,
71 const std::function<
void(
const ConfigType&)> config_callback = 0,
73 description_callback = 0)
102 const std::function<
void(
const ConfigType&)> config_callback = 0,
104 description_callback = 0)
127 const std::function<
void(
const ConfigType&)>& config_callback) {
145 ConfigType temp = configuration;
162 ROS_WARN(
"Could not set configuration");
175 ConfigType& configuration,
179 std::lock_guard<std::mutex> lock(
mutex_);
186 std::lock_guard<std::mutex> lock(
mutex_);
190 if (time_left.
toSec() <= 0.0)
return false;
191 cv_.wait_for(lock, boost::chrono::nanoseconds(time_left.
toNSec()));
206 ConfigType& configuration,
210 configuration.__fromMessage__(answer.
dflt);
228 configuration.__fromMessage__(answer.
min);
246 configuration.__fromMessage__(answer.
max);
260 std::lock_guard<std::mutex> lock(
mutex_);
269 }
catch (std::exception& e) {
270 ROS_WARN(
"Configuration callback failed with exception %s", e.what());
272 ROS_WARN(
"Configuration callback failed with unprintable exception");
276 "Unable to call Configuration callback because none was set.\n" \
277 "See setConfigurationCallback");
283 std::lock_guard<std::mutex> lock(
mutex_);
291 }
catch (std::exception& e) {
292 ROS_WARN(
"Description callback failed with exception %s", e.what());
294 ROS_WARN(
"Description callback failed with unprintable exception");
298 "Unable to call Description callback because none was set.\n" \
299 "See setDescriptionCallback");
307 std::lock_guard<std::mutex> lock(
mutex_);
314 std::lock_guard<std::mutex> lock(
mutex_);
318 if (time_left.
toSec() <= 0.0)
return false;
319 cv_.wait_for(lock, boost::chrono::nanoseconds(time_left.
toNSec()));
331 std::condition_variable
cv_;
344 #endif // __CLIENT_H__
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
ROSCPP_DECL bool ok()
Check whether it's time to exit.
#define ROS_INFO_ONCE(...)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, const boost::function< void(C)> &callback, const VoidConstPtr &tracked_object=VoidConstPtr(), const TransportHints &transport_hints=TransportHints())
bool call(const MReq &req, MRes &resp, const std::string &service_md5sum)
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:07