零基础构建OpenDDS demo
参考:OpenDDS Developer's Guide 第二章Getting Started
内容:
~/Downloads/OpenDDS-3.13/DevGuideExamples/Messenger$ tao_idl Messenger.idl
processing Messenger.idl
~/Downloads/OpenDDS-3.13/DevGuideExamples/Messenger$ opendds_idl Messenger.idl
processing Messenger.idl
建立Message.mpc
~/Downloads/OpenDDS-3.13/DevGuideExamples/DCPS/Messenger$ mpc.pl Messenger.mpc -type gnuace
MPC_ROOT was set to /home/coolwaterld/Downloads/OpenDDS-3.13/ACE_wrappers/MPC.
Using .../OpenDDS-3.13/ACE_wrappers/bin/MakeProjectCreator/config/MPC.cfg
Generating 'gnuace' output using Messenger.mpc
Generation Time: 0s
~/Downloads/OpenDDS-3.13/DevGuideExamples/DCPS/Messenger$ make -f GNUmakefile.Messenger_Idl
建立WritePublisher.cpp
~/Downloads/OpenDDS-3.13/DevGuideExamples/DCPS/Messenger$ make -f GNUmakefile.Messenger_Publisher
touch .depend.Messenger_Publisher_Idl2
touch .depend.Messenger_Publisher_Idl1
touch .depend.Messenger_Publisher
GNUmakefile: /home/coolwaterld/Downloads/OpenDDS-3.13/DevGuideExamples/DCPS/Messenger/GNUmakefile.Messenger_Publisher MAKEFLAGS=
Write DataReaderListenerImpl.cpp DataReaderListenerImpl.h and Subscriber.cpp
~/Downloads/OpenDDS-3.13/DevGuideExamples/DCPS/Messenger$ make -f GNUmakefile.Messenger_Subscriber
GNUmakefile: /home/coolwaterld/Downloads/OpenDDS-3.13/DevGuideExamples/DCPS/Messenger/GNUmakefile.Messenger_Subscriber MAKEFLAGS=
~/Downloads/OpenDDS-3.13/DevGuideExamples/DCPS/Messenger$ $DDS_ROOT/bin/DCPSInfoRepo -o simple.ior
gedit simple.ior
IOR:010000001e00000049444c3a4f70656e4444532f444350532f44435053496e666f3a312e30000000010000000000000088000000010102000f0000003139322e3136382e31362e3133380000899700003400000014010f004e5550000000190000000001000000526f6f74504f4100496e666f5265706f000000000001000000496e666f5265706f02000000000000000800000001000000004f41540100000018000000010000000100010001000000010001050901010000000000
rtps.ini:
[common]
DCPSGlobalTransportConfig=$file
DCPSDefaultDiscovery=DEFAULT_RTPS
[transport/the_rtps_transport]
transport_type=rtps_udp
~/Downloads/OpenDDS-3.13/DevGuideExamples/DCPS/Messenger$ ./publisher -DCPSConfigFile rtps.ini
~/Downloads/OpenDDS-3.13/DevGuideExamples/DCPS/Messenger$ ./subscriber -DCPSConfigFile rtps.ini