安装、使用Modeling SDK

A. 配置Eclipse环境

  1. 安装JRE,测试版本jdk-8u191-windows-x64,这里JDK/JRE一起装的。
  2. 安装Eclipse,版本必须是eclipse-modeling-luna-SR2-win32-x86_64(位数无关)。
  3. 进入Eclipse,“help”→“Install New Software”→“Add”→“Archive”,选择opendds_modeling_site.zip进行安装。
  4. 配置“Perspective”,选择“OpenDDS Modeling”。

B. 使用Modeling SDK

  1. 新建一个General project,添加“OpenDDS Diagram”和“OpenDDS SDK Code Generator”(Target Folder随意写一个就可以,就是当前目录下,没有会自动创建)。
  2. DDS全部配置好后,在“default.codegen”中点击“Generate All”,生成所有必须文件,文件介绍如下表所示:
File NameDescription
<ModelName>.idlData types from the model’s DataLib
<ModelName>_T.hC++ class from the model’s DcpsLib
<ModelName>_T.cppC++ implementation of the model’s DcpsLib
<ModelName>.mpcMPC project file for the generated C++ library
<ModelName>.mpbMPC base project for use by the application
<ModelName>_paths.mpbMPC base project with paths, see section 11.3.3.7
<ModelName>Traits.hTransport configuration from the .codegen file
<ModelName>Traits.cppTransport configuration from the .codegen file
  1. 使用mpc导出目标平台工程配置文件
mwc.pl -type vc12/gnuace

C. 使用SDK生成的动态库

  1. 参考《OpenDDS-latest.pdf》的11.3.3节,OpenDDS-3.13/tools/modeling目录下,REDME有安装和使用文档,tests目录下有测试用例。
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值