#include <string>
#include <gtest/gtest.h>
#include <stdlib.h>
#include "ros/ros.h"
#include <test_roscpp/TestArray.h>
Go to the source code of this file.
Macros | |
#define | USAGE "USAGE: sub_pub <count> <time>" |
Functions | |
int | main (int argc, char **argv) |
void | messageCallback (const test_roscpp::TestArrayConstPtr &msg) |
void | subscriberCallback (const ros::SingleSubscriberPublisher &, const ros::Publisher &pub) |
TEST (SelfSubscribe, advSub) | |
Variables | |
ros::Duration | g_dt |
bool | g_failure = false |
int | g_msg_count |
int32_t | g_msg_i = -1 |
uint32_t | g_options = 0 |
bool | g_success = false |
#define USAGE "USAGE: sub_pub <count> <time>" |
Definition at line 134 of file subscribe_self.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 137 of file subscribe_self.cpp.
void messageCallback | ( | const test_roscpp::TestArrayConstPtr & | msg | ) |
Definition at line 63 of file subscribe_self.cpp.
void subscriberCallback | ( | const ros::SingleSubscriberPublisher & | , |
const ros::Publisher & | pub | ||
) |
Definition at line 52 of file subscribe_self.cpp.
TEST | ( | SelfSubscribe | , |
advSub | |||
) |
Definition at line 82 of file subscribe_self.cpp.
ros::Duration g_dt |
Definition at line 46 of file subscribe_self.cpp.
bool g_failure = false |
Definition at line 49 of file subscribe_self.cpp.
int g_msg_count |
Definition at line 45 of file subscribe_self.cpp.
int32_t g_msg_i = -1 |
Definition at line 50 of file subscribe_self.cpp.
uint32_t g_options = 0 |
Definition at line 47 of file subscribe_self.cpp.
bool g_success = false |
Definition at line 48 of file subscribe_self.cpp.