Classes | Functions
roswrap::topic Namespace Reference

Classes

class  SubscribeHelper
 

Functions

template<class M >
std::shared_ptr< M constwaitForMessage (const std::string &topic)
 Wait for a single message to arrive on a topic. More...
 
template<class M >
std::shared_ptr< M constwaitForMessage (const std::string &topic, NodeHandle &nh, ros::Duration timeout)
 Wait for a single message to arrive on a topic, with timeout. More...
 
template<class M >
std::shared_ptr< M constwaitForMessage (const std::string &topic, ros::Duration timeout)
 Wait for a single message to arrive on a topic, with timeout. More...
 
template<class M >
std::shared_ptr< M constwaitForMessage (const std::string &topic, ros::NodeHandle &nh)
 Wait for a single message to arrive on a topic. More...
 
ROSCPP_DECL void waitForMessageImpl (SubscribeOptions &ops, const std::function< bool(void)> &ready_pred, NodeHandle &nh, ros::Duration timeout)
 Internal method, do not use. More...
 

Function Documentation

◆ waitForMessage() [1/4]

template<class M >
std::shared_ptr<M const> roswrap::topic::waitForMessage ( const std::string &  topic)

Wait for a single message to arrive on a topic.

Parameters
M<template> The message type
topicThe topic to subscribe on
Returns
The message. Empty std::shared_ptr if waitForMessage is interrupted by the node shutting down

Definition at line 106 of file topic.h.

◆ waitForMessage() [2/4]

template<class M >
std::shared_ptr<M const> roswrap::topic::waitForMessage ( const std::string &  topic,
NodeHandle nh,
ros::Duration  timeout 
)

Wait for a single message to arrive on a topic, with timeout.

Parameters
M<template> The message type
topicThe topic to subscribe on
nhThe NodeHandle to use to do the subscription
timeoutThe amount of time to wait before returning if no message is received
Returns
The message. Empty std::shared_ptr if waitForMessage is interrupted by the node shutting down

Definition at line 87 of file topic.h.

◆ waitForMessage() [3/4]

template<class M >
std::shared_ptr<M const> roswrap::topic::waitForMessage ( const std::string &  topic,
ros::Duration  timeout 
)

Wait for a single message to arrive on a topic, with timeout.

Parameters
M<template> The message type
topicThe topic to subscribe on
timeoutThe amount of time to wait before returning if no message is received
Returns
The message. Empty std::shared_ptr if waitForMessage is interrupted by the node shutting down

Definition at line 121 of file topic.h.

◆ waitForMessage() [4/4]

template<class M >
std::shared_ptr<M const> roswrap::topic::waitForMessage ( const std::string &  topic,
ros::NodeHandle nh 
)

Wait for a single message to arrive on a topic.

Parameters
M<template> The message type
topicThe topic to subscribe on
nhThe NodeHandle to use to do the subscription
Returns
The message. Empty std::shared_ptr if waitForMessage is interrupted by the node shutting down

Definition at line 136 of file topic.h.

◆ waitForMessageImpl()

ROSCPP_DECL void roswrap::topic::waitForMessageImpl ( SubscribeOptions ops,
const std::function< bool(void)> &  ready_pred,
NodeHandle nh,
ros::Duration  timeout 
)

Internal method, do not use.



sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:20