DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.

ddslogger is a tool that subscribes to RoadCast 2.0 topics, and write received messages to a file

Running the tool

Default mode

The command lines for running the roadcast 2.0 sample in default mode: ./ddslogger This will start ddslogger to subscribe to topic 3 in domain 0 with RTPC discovery, output file is ddslogger.log

Command Line Inputs

All supported parameters can be seen by using the argument '–help'

–dcps: IP address of dcpsInfoRepo used in discoery mode for openDDS. Default value is 0.0.0.0, meaning using RTPS –domainTopics: list of domainIDMask and topic list pairs. Topics are comma separated, domains are semicolon separated Default value is 1:3 –o: output file path. Default value is "ddslogger.log"

Command Line Inputs Examples

./ddslogger –dcps=localhost:12345 –domainTopics="5:0,1,2;10:3,4,5" –o=dds.log This command will start logger in DCPS discovery mode, assuming dcpsInfoRepo program is started at localhost:12345 It is subscribing: topic0,1,2 in domains 0,2(5=b101), and topic3,4,5 in domain 1,3 (10=b1010) Output file will be dds.log

Usecase with RoadCast Examples

terminal 1: cd build/samples/internal/roadcast/rc2_pub; ./sample_roadcast2_publisher –topics=3,4 –domains=0,2 terminal 2: cd build/tools/ddslogger; ./ddslogger –o=dds.log –domainTopics="5:3,4" Kill both application after a while and review dds.log in build/tools/ddslogger

Output

On start up, tool prints topics and domains it subcribes to to screen Logging starts when "start logging..." is printed on screen To stop logging, send SIGHUP, SIGINT, SIGQUIT, SIGQUIT, SIGABRT, SIGTERM to this process (e.g. Ctrl+C or kill command) On stop, tool prints shutdown message to screen

Running the tool as daemon

Using ddslogger_daemon.sh script, user can launch ddslogger program as daemon(in background) Example: ./ddslogger_daemon.sh –start –name=ddslogger1 –dcps=localhost:12345 –domainTopics="5:0,1,2;10:3,4,5" –o=dds.log ./ddslogger_daemon.sh –stop –name=ddslogger1

–start : start a ddslogger daemon with name specified by –name –stop : stop a ddslogger daemon with name specified by –name –name : name of a ddslogger daemon specified by user