rtt_rostopic.cpp
Go to the documentation of this file.
1 
2 #include <rtt_roscomm/rostopic.h>
3 
4 RTT::ConnPolicy rtt_roscomm::topic(const std::string& name) {
7  cp.name_id = name;
8  cp.init = false;
9  cp.pull = false;
10  return cp;
11 }
12 
13 RTT::ConnPolicy rtt_roscomm::topicLatched(const std::string& name) {
16  cp.name_id = name;
17  cp.init = true;
18  cp.pull = false;
19  return cp;
20 }
21 
27 RTT::ConnPolicy rtt_roscomm::topicBuffer(const std::string& name, int size) {
30  cp.name_id = name;
31  cp.init = false;
32  cp.pull = false;
33  return cp;
34 }
35 
46  cp.name_id = name;
47  cp.init = false;
48  cp.pull = false;
49  return cp;
50 }
51 
RTT::ConnPolicy topicLatched(const std::string &name)
static ConnPolicy data(int lock_policy=LOCK_FREE, bool init_connection=true, bool pull=false)
RTT::ConnPolicy topic(const std::string &name)
Definition: rtt_rostopic.cpp:4
RTT::ConnPolicy topicBuffer(const std::string &name, int size)
static ConnPolicy buffer(int size, int lock_policy=LOCK_FREE, bool init_connection=false, bool pull=false)
static const int protocol_id
ROS topic protocol ID.
Definition: rostopic.h:37
RTT::ConnPolicy topicUnbuffered(const std::string &name)
std::string name_id
static const int UNBUFFERED


rtt_roscomm
Author(s): Ruben Smits, Jonathan Bohren
autogenerated on Sat Jun 8 2019 18:05:17