PX4 Firmware
PX4 Autopilot Software http://px4.io
microRTPS_client_main.cpp File Reference
#include "microRTPS_transport.h"
#include "microRTPS_client.h"
#include <inttypes.h>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <termios.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/cli.h>
#include <px4_platform_common/module.h>
#include <px4_platform_common/posix.h>
#include <px4_platform_common/tasks.h>
#include <px4_platform_common/time.h>
Include dependency graph for microRTPS_client_main.cpp:

Go to the source code of this file.

Functions

__EXPORT int micrortps_client_main (int argc, char *argv[])
 
static void usage (const char *name)
 
static int parse_options (int argc, char *argv[])
 
static int micrortps_start (int argc, char *argv[])
 

Variables

static int _rtps_task = -1
 
bool _should_exit_task = false
 
Transport_node * transport_node = nullptr
 
struct options _options
 

Function Documentation

◆ micrortps_client_main()

int micrortps_client_main ( int  argc,
char *  argv[] 
)

Definition at line 183 of file microRTPS_client_main.cpp.

References _rtps_task, _should_exit_task, micrortps_start(), transport_node, and usage().

Here is the call graph for this function:

◆ micrortps_start()

static int micrortps_start ( int  argc,
char *  argv[] 
)
static

Definition at line 118 of file microRTPS_client_main.cpp.

References _options, _rtps_task, options::baudrate, options::device, options::ip, micrortps_start_topics(), parse_options(), options::poll_ms, options::recv_port, options::send_port, options::sleep_ms, options::transport, transport_node, options::UART, and options::UDP.

Referenced by micrortps_client_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_options()

static int parse_options ( int  argc,
char *  argv[] 
)
static

Definition at line 78 of file microRTPS_client_main.cpp.

References _options, options::baudrate, options::device, options::ip, options::loops, options::poll_ms, options::recv_port, options::send_port, options::sleep_ms, options::transport, options::UART, options::UDP, and usage().

Referenced by micrortps_start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usage()

static void usage ( const char *  name)
static

Definition at line 58 of file microRTPS_client_main.cpp.

Referenced by micrortps_client_main(), and parse_options().

Here is the caller graph for this function:

Variable Documentation

◆ _options

struct options _options

Definition at line 56 of file microRTPS_client_main.cpp.

Referenced by micrortps_start(), and parse_options().

◆ _rtps_task

int _rtps_task = -1
static

Definition at line 53 of file microRTPS_client_main.cpp.

Referenced by micrortps_client_main(), and micrortps_start().

◆ _should_exit_task

bool _should_exit_task = false

Definition at line 54 of file microRTPS_client_main.cpp.

Referenced by micrortps_client_main().

◆ transport_node

Transport_node* transport_node = nullptr

Definition at line 55 of file microRTPS_client_main.cpp.

Referenced by micrortps_client_main(), and micrortps_start().