#include "ros/ros.h"
#include "std_msgs/String.h"
#include "rosserial_test/ros.h"
#include "rosserial/std_msgs/String.h"
#include <gtest/gtest.h>
#include "rosserial_test/fixture.h"
#include "rosserial_test/helpers.h"
Go to the source code of this file.
Namespaces | |
namespace | rosserial |
Functions | |
int | main (int argc, char **argv) |
static void | rosserial_string_cb (const rosserial::std_msgs::String &msg) |
TEST_F (SingleClientFixture, single_publish) | |
TEST_F (SingleClientFixture, single_subscribe) | |
Variables | |
std::string | last_string |
int | rosserial_string_cb_count = 0 |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 74 of file publish_subscribe.cpp.
static void rosserial_string_cb | ( | const rosserial::std_msgs::String & | msg | ) | [static] |
Definition at line 44 of file publish_subscribe.cpp.
TEST_F | ( | SingleClientFixture | , |
single_publish | |||
) |
Single message published from a rosserial-connected client, verified from a roscpp Subscriber.
Definition at line 17 of file publish_subscribe.cpp.
TEST_F | ( | SingleClientFixture | , |
single_subscribe | |||
) |
Single message sent from a roscpp Publisher, received by a rosserial client subscriber.
Definition at line 54 of file publish_subscribe.cpp.
std::string last_string |
Definition at line 42 of file publish_subscribe.cpp.
int rosserial_string_cb_count = 0 |
Definition at line 41 of file publish_subscribe.cpp.