RTI Connext DDS. Core Libraries Getting Started Guide Addendum for ios Systems Version 5.2.3



Similar documents
RTI Database Integration Service. Getting Started Guide

RTI Spreadsheet Add-in

SDK Code Examples Version 2.4.2

RTI Monitoring Library Getting Started Guide

RTI Database Integration Service. Release Notes

RTI Routing Service. Release Notes

RTI Monitor. Release Notes

RTI Administration Console Release Notes

NetBackup Backup, Archive, and Restore Getting Started Guide

GoAnywhere Director to GoAnywhere MFT Upgrade Guide. Version: Publication Date: 07/09/2015

RTI Real-Time Connect. Release Notes

WS_FTP Pro. Addendum to User s Guide. Software Version 6.6. Ipswitch, Inc.

RTI Analyzer. Getting Started Guide

ImageNow Cluster Resource Monitor

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

Networking & Internet

Xcode User Default Reference. (Legacy)

WatchDox SharePoint Beta Guide. Application Version 1.0.0

Quest ChangeAuditor 5.1. For Windows File Servers. Events Reference

Sophos Endpoint Security and Control How to deploy through Citrix Receiver 2.0

All other trademarks are property of their respective owners.

Dolphin Ocean Server and Dolphin Mobile Client Installation Guide for Android and ios. May 2012

How To Customize An Orgsync App On Anorus Mobile Security Suite On A Microsoft Ipad Oracle 2.5 (Ios) On A Pc Orca 2.2 (Iphone) On An Android Orca2 (Ip

GoAnywhere MFT Upgrade Guide. Version: Publication Date: 08/12/2015

Secure Agent Quick Start for Windows

RTI Connext DDS. Combined Latency and Throughput Performance Test. Getting Started Guide

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02

NVIDIA CUDA GETTING STARTED GUIDE FOR MAC OS X

Configuring IBM Cognos Controller 8 to use Single Sign- On

Tutorial: Mobile Business Object Development. Sybase Unwired Platform 2.2 SP02

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

eggon SDK for ios 7 Integration Instructions

Interact for Microsoft Office

MaaS360 Secure Productivity Suite (SPS): Secure Container User Guide

Xcode Application note

Knappsack ios Build and Deployment Guide

StarWind iscsi SAN & NAS: Configuring HA File Server on Windows Server 2012 for SMB NAS January 2013

Xcode Project Management Guide. (Legacy)

OPENGATE DATABASE MANAGER FOR MICROSOFT ACCESS

StreamServe Persuasion SP5 Document Broker Plus

Understanding class paths in Java EE projects with Rational Application Developer Version 8.0

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Login with Amazon Getting Started Guide for Android. Version 2.0

Studio 5.0 User s Guide

Creating and Deploying Active Directory Rights Management Services Templates Step-by-Step Guide

Glassfish, JAVA EE, Servlets, JSP, EJB

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3 SP02

NVIDIA CUDA GETTING STARTED GUIDE FOR MAC OS X

KonyOne Server Prerequisites _ MS SQL Server

User Document. Adobe Acrobat 7.0 for Microsoft Windows Group Policy Objects and Active Directory

Adobe Acrobat 9 Deployment on Microsoft Systems Management

Standard Client Configuration Requirements

NetFlow Collection and Processing Cartridge Pack User Guide Release 6.0

CommVault Simpana Archive 8.0 Integration Guide

Installation and User Guide Zend Browser Toolbar

Oracle Java Micro Edition Software Development Kit

IBM Rational Rhapsody Gateway Add On. CaliberRM Coupling Notes

Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v Steps to Developing a QNX Program Quickstart Guide

NetBeans IDE Field Guide

ChangeAuditor 6.0 For Windows File Servers. Event Reference Guide

Version Provance Technologies, Inc. All rights reserved. Provance Technologies Inc. 85 Bellehumeur Gatineau, Quebec CANADA J8T 8B7

Skynax. Mobility Management System. System Manual

Using the TASKING Software Platform for AURIX

MA-WA1920: Enterprise iphone and ipad Programming

753 Broad Street Phone: Suite 200 Fax: Augusta, GA Copyrights

Veritas Cluster Server Database Agent for Microsoft SQL Configuration Guide

ChangeAuditor 5.6. For Windows File Servers Event Reference Guide

ios Team Administration Guide (Legacy)

Version 5.0. SurfControl Web Filter for Citrix Installation Guide for Service Pack 2

StarterPak: HubSpot and Dynamics CRM Lead and Contact Synchronization

An Oracle White Paper October BI Publisher 11g Scheduling & Apache ActiveMQ as JMS Provider

PTC Integrity Eclipse and IBM Rational Development Platform Guide

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Setting up Visual Enterprise Integration (WM6)

itunes Connect App Analytics Guide v1

Centrify Mobile Authentication Services

Silk Test Testing Mobile Applications

Tutorial: setting up a web application

Moxa Device Manager 2.3 User s Manual

Symantec AntiVirus Corporate Edition Patch Update

Metadata Management CMS Extension. Version 0.90

VERITAS NetBackup 6.0

StarWind iscsi SAN & NAS: Configuring HA Storage for Hyper-V October 2012

Repeat Success, Not Mistakes; Use DDS Best Practices to Design Your Complex Distributed Systems

e-builder Online User Assistance esignature Setup Guide

Application Interface Services Server for Mobile Enterprise Applications Configuration Guide Tools Release 9.2

An Oracle White Paper March Integrating the SharePoint 2007 Adapter with WebCenter Spaces ( & )

Deploying the Workspace Application for Microsoft SharePoint Online

System Requirements for Microsoft Dynamics NAV 2013 R2

Endpoint Security Console. Version 3.0 User Guide

An Overview of Samsung KNOX Active Directory and Group Policy Features

AdminStudio Release Notes. 16 July Introduction New Features... 6

Tutorial: BlackBerry Application Development. Sybase Unwired Platform 2.0

FOR WINDOWS FILE SERVERS

Gathering customer information from a mobile application James Adams, SAS Institute Inc.

Transcription:

RTI Connext DDS Core Libraries Getting Started Guide Addendum for ios Systems Version 5.2.3

2016 Real-Time Innovations, Inc. All rights reserved. Printed in U.S.A. First printing. April 2016. Trademarks Real-Time Innovations, RTI, NDDS, RTI Data Distribution Service, DataBus, Connext, Micro DDS, the RTI logo, 1RTI and the phrase, Your Systems. Working as one, are registered trademarks, trademarks or service marks of Real-Time Innovations, Inc. All other trademarks belong to their respective owners. Copy and Use Restrictions No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form (including electronic, mechanical, photocopy, and facsimile) without the prior written permission of Real- Time Innovations, Inc. The software described in this document is furnished under and subject to the RTI software license agreement. The software may be used or copied only under the terms of the license agreement. Technical Support Real-Time Innovations, Inc. 232 E. Java Drive Sunnyvale, CA 94089 Phone: (408) 990-7444 Email: support@rti.com Website: https://support.rti.com/

Chapter 1 Installing Connext DDS and Xcode 1 Chapter 2 Creating an Xcode Project 2 Chapter 3 Generating Example Code and an Xcode Project with rtiddsgen 3.1 About the Generated Code 5 Chapter 4 Executing the Code 7

Chapter 1 Installing Connext DDS and Xcode This document supplements the Getting Started Guide with additional steps for working with ios platforms. To install the Xcode development software: Download the software from the Apple App Store or developer website and follow the instructions. To install Connext DDS: Follow the installation instructions in the Getting Started Guide. Install the desired ios architecture package(s). 1

Chapter 2 Creating an Xcode Project 1. Create a new ios Project of whatever type is appropriate for your use case. Follow instructions on the Apple Developer s website (https://developer-.apple.com/library/ios/recipes/xcode_help-structure_navigator/articles/creating_a_project.html#//apple_ref/doc/uid/tp40009934-ch3-sw1) 2. Add the Connext DDS core to your project: a. Select the project and go to the Build Settings tab. b. Add the path to the Connext DDS include files. /Applications/rti_connext_dds-x.y.z/include /Applications/rti_ connext_dds-x.y.z/include/ndds c. Add preprocessor definitions Add the RTI_UNIX preprocessor declaration and compiler option Wno-returntype-c-linkage. 2

Chapter 2 Creating an Xcode Project d. Add the Connext DDS Libraries To add the Connext DDS libraries, right-click on the project and select Add Files to <project name> or add them in the Link Binary With Libraries section of the Build Phases tab and choose Add Other. Either method will lead to a selection dialog like this: Select the Connext DDS libraries for your architecture and language. All languages require libnddscore and libnddsc. For C++, add libnddscpp; etc. (see the ios section of the Platform Notes). If you want to use any of the C++ APIs, rename the Xcode-generated ViewController.m source file (or whatever source file you use to call Connext DDS) to ViewController.mm. 3

Chapter 2 Creating an Xcode Project 3. Call the Connext DDS API Call the Connext DDS Entity creation APIs (create_participant(), create_topic(), etc.) as described in the Getting Started Guide. In the appropriate locations in your code, call the read and write operations. 4. Access the QoS files Connext DDS locates the Quality of Service (QoS) XML file using a number of search paths (see the User s Manual). The Xcode development software transfers files to the target device via a settings bundle. a. Create a Settings.bundle resource following Apple s instructions, then place the QoS file(s) in the Settings.bundle folder. b. In your application code, do one of the following: Set NDDS_QOS_PROFILES to the QoS file in the application s resource path. Change the default directory to the application s resource bundle path. Copy the QoS file(s) to the application s documents directory and change the default directory to the application s documents directory. 4

Chapter 3 Generating Example Code and an Xcode Project with rtiddsgen 1. Run rtiddsgen: From a terminal or ssh window, run rtiddsgen as per other Connext DDS architectures specifying the ios architecture name. 2. Open the generated workspace or project: rtiddsgen creates a workspace with two project files, one for the publisher and one for the subscriber. Open the workspace or project with the Xcode development software just as you would open any other Xcode project. 3.1 About the Generated Code The code generated by rtiddsgen for ios is slightly different than the code generated for other architectures. For most architectures, the main function, looping, and messaging are controlled completely by the application. However for an ios architecture, the main event loop is within the operating environment framework. For an ios architecture, the default output from print() goes to the debugger window. It is important not to do any lengthy processing in the main loop of an ios application. For this reason, the generated publisher code writes on a timer rather than in a 'for' loop with a sleep. Since the generated subscriber code uses waitsets and data is received in a middleware thread, the changes to the subscriber code are minimal. The generated subscriber project contains commentedout code that can redirect Connext DDS core messages to a text window. To enable this code, define REDIRECT_LOGGING before building the application. 5

3.1 About the Generated Code The generated examples place a default QoS file in the Settings.bundle folder and set the application s default directory to the resource path. (See Access the QoS files (Section on page 4)). 6

Chapter 4 Executing the Code Execute the application via the Xcode development software, just as you would execute any other ios application. 7