Functions
test_subscriber.cpp File Reference
#include <gtest/gtest.h>
#include "rosrt/rosrt.h"
#include <ros/ros.h>
#include <std_msgs/UInt32.h>
#include <boost/thread.hpp>
Include dependency graph for test_subscriber.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
void publishThread (ros::Publisher &pub, bool &done)
 
void subscribeThread (Subscriber< std_msgs::UInt32 > &sub, bool &failed)
 
 TEST (Subscriber, multipleSubscribersMultipleTopics)
 
 TEST (Subscriber, multipleSubscribersSameTopic)
 
 TEST (Subscriber, multipleThreadsSameTopic)
 
 TEST (Subscriber, singleSubscriber)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 261 of file test_subscriber.cpp.

◆ publishThread()

void publishThread ( ros::Publisher pub,
bool &  done 
)

Definition at line 47 of file test_subscriber.cpp.

◆ subscribeThread()

void subscribeThread ( Subscriber< std_msgs::UInt32 > &  sub,
bool &  failed 
)

Definition at line 191 of file test_subscriber.cpp.

◆ TEST() [1/4]

TEST ( Subscriber  ,
multipleSubscribersMultipleTopics   
)

Definition at line 139 of file test_subscriber.cpp.

◆ TEST() [2/4]

TEST ( Subscriber  ,
multipleSubscribersSameTopic   
)

Definition at line 90 of file test_subscriber.cpp.

◆ TEST() [3/4]

TEST ( Subscriber  ,
multipleThreadsSameTopic   
)

Definition at line 231 of file test_subscriber.cpp.

◆ TEST() [4/4]

TEST ( Subscriber  ,
singleSubscriber   
)

Definition at line 60 of file test_subscriber.cpp.



rosrt
Author(s): Josh Faust
autogenerated on Wed Mar 2 2022 00:54:17