API Development for Efficiently Mapping between SEDRIS and Simulation Systems

Similar documents
A Preliminary Study on Daylighting Performance of Light Shelf according to the Depth of Space

An automatic test case generation from state diagram using cause-effect graph based on model transformation

SEDRIS Transmittal Storing and Retrieval System using Relational Databases

Research on Autonomic Control System Connection Goal-model and Fault-tree

A Design of Building Group Management Service Framework for On-Going Commissioning

This beta version is limited to export static model without animation. It also will omit every 10th polygon from the

Crosstalk in multiview 3-D images

Spectral Coding of Three-Dimensional Mesh Geometry Information Using Dual Graph

Reusability Strategy Based on Dynamic Reusability Object Oriented Metrics

PDF Document structure, that need for managing of PDF file. It uses in all functions from EMF2PDF SDK.

Byte Index Chunking Approach for Data Compression

75 TH MORSS CD Cover Page. If you would like your presentation included in the 75 th MORSS Final Report CD it must :

C++ Basics. Data Processing Course, I. Hrivnacova, IPN Orsay

Abstract. 1. Introduction

A Design of Authentication Protocol for a Limited Mobile Network Environment

A Study of Open Middleware for Wireless Sensor Networks

Design of Ontology Engine Architecture for L-V-C Integrating System

Network Intrusion Forensics System based on Collection and Preservation of Attack Evidence

Architecture for QoS-enabled Application Service Deployment in Virtualized Environment

Scanline-based rendering of 2D vector graphics

Keywords: wearable system, flexible platform, complex bio-signal, wireless network

Structure. Woo-Chan Park, Kil-Whan Lee, Seung-Gi Lee, Moon-Hee Choi, Won-Jong Lee, Cheol-Ho Jeong, Byung-Uck Kim, Woo-Nam Jung,

Enhancing Reusability with Reusable Code Patterns based on Reverse Engineering

Automatic Pipeline Generation by the Sequential Segmentation and Skelton Construction of Point Cloud

A Study of Mountain Environment Monitoring Based Sensor Web in Wireless Sensor Networks

An Energy-Efficient Technique for Processing Sensor Data in Wireless Sensor Networks

Time Stamp based Multiple Snapshot Management Method for Storage System

heman Documentation Release r1 Philip Rideout

Towards Secure Virtual Machine Migration in Vehicular Cloud Environment

Parallel Processing of Multimedia Data in a Heterogeneous Computing Environment

M.S. in Information and Communications (Feb. 2003) Gwangju Institute of Science and Technology (GIST) in Korea, Advisor: Prof.

AET60 BioCARDKey. Application Programming Interface. Subject to change without prior notice

The Application of Synthetic Natural Environments for M&S Support of Testing Net-centric Federations

A Repository Framework for Self-Growing Robot Software

typedef Labeling<unsigned char,short> LabelingBS; typedef Labeling<unsigned char,short>::regioninfo RegionInfoBS;

Security-Enriched Urban Computing and Smart Grid

A Polygon Rendering Method with Precomputed Information

Improved Methods for Tagging and Semantic-Annotation for the Semantic-based OpenAPI Retrieval System *

Implementation of a Pedestrian Detection Device based on CENTRIST for an Embedded Environment

A Mobile Device Classification Mechanism for Efficient Prevention of Wireless Intrusion

Applicability Estimation of Mobile Mapping. System for Road Management

Application of Response Surface Method for Optimal Transfer Conditions of MLCC Alignment System

XML and Inter-Operability in Distributed GIS

int fnvgetconfig(handle h, UINT32 id, const void *cfg, size_t sz);... 4

Development of a M2M Network-based Smart SMPS System

Implementation of a Compositional Microprogram Control Unit with e-dia

Chapter 3. Texture mapping. Learning Goals: Assignment Lab 3: Implement a single program, which fulfills the requirements:

Partial Caching Scheme for Streaming Multimedia Data in Ad-hoc Network

Design and Implementation of Secure OTP Generation for IoT Devices

GENERAL MESSAGE RACES IN DATA DISTRIBUTION SERVICE PROGRAMS FOR AIRBORNE SOFTWARE

Remote Direct Storage Management for Exa-Scale Storage

A Study on Development of Azimuth Angle Tracking Algorithm for Tracking-type Floating Photovoltaic System

PusleIR Multitouch Screen Software SDK Specification. Revision 4.0

Lecture 5 Vertex and Fragment Shaders-1. CITS3003 Graphics & Animation

A Case Study of Black-Box Testing for Embedded Software using Test Automation Tool

The Design and Implementation of a BLE-based WebD2D Service for Android Smartphone

Asymmetric Cryptography. kprv. kpub. used in digital signature

Incomplete two-manifold mesh-based tool path generation

A Kinect Sensor based Windows Control Interface

Semantic IoT System for Indoor Environment Control A Sparql and SQL based hybrid model

CUDA. Schedule API. Language extensions. nvcc. Function type qualifiers (1) CUDA compiler to handle the standard C extensions.

A Gateway Selections Using Signal Strength among Clusters in Ad Hoc Networks

Application of Fuzzy Logic Control to Dynamic Channel Allocation of WiMedia UWB Networks

AET60 API version 1.4 February Introduction...3 Features...3 Application Programming Interface...4

Improving Energy Efficiency of Block-Matching Motion Estimation Using Dynamic Partial Reconfiguration

Research Fellow, Korea Institute of Civil Engineering and Building Technology, Korea (*corresponding author) 2

Implementation of Omni-directional Image Viewer Program for Effective Monitoring

Index Terms Underwater Warfare, Defense Modeling and Simulation, Distributed Simulation, HLA/RTI.

Monitoring System of Marine Engine Using Dynamic ID priority Allocation base on CAN

Lab Session # 1 Introduction to C Language. ALQUDS University Department of Computer Engineering

Online Version Only. Book made by this file is ILLEGAL. Design and Implementation of Binary File Similarity Evaluation System. 1.

Character Segmentation and Recognition Algorithm of Text Region in Steel Images

Embedded Systems 1. Introduction

hsgm: Hierarchical Pyramid Based Stereo Matching Algorithm

Collaboration System using Agent based on MRA in Cloud

A Study on Secure SDLC Specialized in Common Criteria

Learning Binary Code with Deep Learning to Detect Software Weakness

ZigBee Security Using Attribute-Based Proxy Re-encryption

A Graph-based Interpretation for Finding Solution Strategies of Contradiction Problems in the Butterfly Diagram

An Analysis of Website Accessibility of Private Industries -Focusing on the Time for Compulsory Compliance with Web Accessibility Guidelines in Korea-

Message Processing at Integrated PHD Gateways for Servicing Various PHDs

An Energy Efficient Clustering in Wireless Sensor Networks

A Load Balancing Scheme for Games in Wireless Sensor Networks

Agenda. The main body and cout. Fundamental data types. Declarations and definitions. Control structures

Determination of the Parameter for Transformation of Local Geodetic System to the World Geodetic System using GNSS

Artemis SDK. Copyright Artemis CCD Limited October 2011 Version

Design and Implementation of HTML5 based SVM for Integrating Runtime of Smart Devices and Web Environments

An Object-Oriented HLA Simulation Study

Framework of a Conceptual Simulation Model Design Tool

III. Classes (Chap. 3)

Recap. ANSI C Reserved Words C++ Multimedia Programming Lecture 2. Erwin M. Bakker Joachim Rijsdam

UniFinger Engine SFR300 SDK Reference Manual

Problem 1: Get val soon! (15 marks)

Implementation of a Face Recognition System for Interactive TV Control System

Proposal of Quadruped Rigging Method by Using Auxiliary Joint

Detection and Mitigation of Web Application Vulnerabilities Based on Security Testing *

Parallel JPEG Color Conversion on Multi-Core Processor

Building Ubiquitous Computing Environment Using the Web of Things Platform

Topics. bool and string types input/output library functions comments memory allocation templates classes

CSCI-1200 Data Structures Fall 2013 Lecture 9 Iterators & Lists

Transcription:

API Development for Efficiently Mapping between SEDRIS and Simulation Systems Hyun Seung Son 1, R. Young Chul Kim 1, In-geol Chun 2, Jae Ho Jeon 2, Woo Yeol Kim 3 1 Dept. of CIC(Computer and Information Communication), Hongik University, Sejong Campus, 339-701, Korea {son, bob}@selab.hongik.ac.kr 2 CPS research team, Electronics and Telecommunications Research Institute Daejeon, 305-700, Korea {igchun, jeonjaeho11}@etri.re.kr 3 Dept. of Computer Education, Daegu National University of Education Daegu, 705-715, Korea john@dnue.ac.kr Abstract. The modeling & Simulation (M&S) in CPS environment needs to integrate the various 3D resources and environment data. The SEDRIS guarantees possibly to work the reuse and interoperability of heterogeneous environment data with standardization of data storage method. To guarantee this, it provides developers with its API in SEDRIS, but developers not easily use the low level APIs without understanding the structures of DRM, SRM, and EDCS. To solve this problem, we propose the SEDRIS High-level API (SHA) (such as STF management, terrain I/O, mesh I/O, texture I/O, and map I/O) that abstracts the existing APIs in SEDRIS for general simulation developers to easily to use them without understanding SEDIRS s structures. That is, our SHA is aimed that the normal developer using SEDRIS can easily develop the simulator without understand SEDRIS s structure. The proposed SHA includes initiation and input/output functions that directly inputs and outputs from 3D resource data to the STF file of SEDRIS. 1 Introduction Cyber Physical Systems (CPS) is system of systems, which are combined with various physical elements and real-time control computing elements [1]. CPS defines in each little different word [2-4], but has a common feature combined with computing systems and physical systems. To be realized, the major CPS needs to have techniques of abstract, architecture, distributed computations, networked control, and verification & validation, etc. [5]. Modeling & Simulation (M&S) of these techniques is also important element for visualizing the physical status and monitoring the control system. M&S in CPS possibly should represent compound elements combined with between various physical systems and virtual systems [6]. The previous M&S in the existing environment simulates a system, but current M&S in CPS concurrently simulates various combined systems. Therefore, M&S in CPS CST 2013, ASTL Vol. 27, pp. 172-176, 2013 SERSC 2013 172

Proceedings, The 2nd International Conference on Computer Science and Technology requires the compound environment integrally to manage and represent various environment data. It is possible to represent the CPS simulation data with Sharing Environmental Data Responsibly with an Interface Specification (SEDRIS) [7]. Also, SEDRIS guarantees the reuse and interoperability of environment data, which is suitable for the various combined systems. When applying to CPS simulation environment with SEDRIS, we can reduce the time and cost because of reusing and interoperability of environment data developed in a particular domain environment. Nevertheless, to use environment data in SEDRIS, any simulation developers need to understand the basic components such as Data Representation Model (DRM) [8], Spatial Reference Model (SRM) [9], and Environmental Data Coding Specification (EDCS) [10]. By supporting the Software Development Kit (SDK) [11] in SEDRIS, the developers easily generate environmental data with SEDRIS, but impossible to use the APIs without any knowledge on DRM, EDCS, and SRM due to low level API. In this paper, we propose the SEDRIS High-Level API (SHA) to use, manage, and build the environment data without knowledge about DRM, EDCS, and SRM. SHA support abstract API needed to save and read the environment data in SEDRIS from 3D resources (such as mesh, texture, map, etc.) using simulation in CPS. The proposed SHA supports the APIs such as initialize, STF management, terrain I/O, mesh I/O, texture I/O, and map I/O. This paper introduces the proposed SHA and case study applying to 3D object. The paper is organized as follows. Chapter 2 presents the proposed SEDRIS High- Level API. Chapter 3 describes a case study about 3D building using simulation. Chapter 4 gives conclusion and future works. 2 What is SEDRIS High-Level API (SHA)? Why we suggest SHA? We propose high-level APIs (named SHA) from low-level API in SEDRIS. Because a user easily use and build without the knowledge of DRM s structure in SEDRIS STF file. SHA in figure 1 consist of two steps such as a production step and a consumption step. The production step makes the STF file in SEDRIS with graphic resource data and environment data from the outside. The consumption step supplies graphic and environment data from STF file in SEDRIS to simulator. SHA consists of APIs to produce and consume such as initialize, STF management, terrain I/O, mesh I/O, texture I/O, and map I/O. Fig. 1. The structure of SEDRIS High-Level API (SHA). 173

API Development for Efficiently Mapping between SEDRIS and Simulation Systems Table 1 shows some proposed SHA. To distinguish API for Cyber Physical Systems, we attach the prefix named cps before API names. Without the prefix, the API name is normal type as name expressed about feature of general function. To keep independent from other libraries, SHA is to use only the most basic data type and Standard Template Library (STL) in C++ for data structure. In some cases, happened many input or output data, SHA is to use the struct structure of C/C++ Language. Table 1. The Specification of SEDRIS High-Level API (SHA). Type SEDRIS High-Level API (SHA) Description Initialize void cpsinitialize() Initialize void cpsclear() Release void cpscreatestffile(const char *file_name) Create file STF void cpsloadstffile(const char *file_name, int type = management Load file READONLY) BOOL cpsloadmapguidefile(const char *file_name) Load map Terrain I/O CPS_TERRAIN cpsgetterrain() Get map data std::list<cps_entity>* cpsgetentityobject() Get map entity BOOL cpsimportmeshfile(const char *mesh_file_name, const char *mat_file_name) Import mesh CPS_VET_POSITION* cpsgetvertexposition( const char *submesh_file_name, unsigned int &size) Get vertex value CPS_VET_NORMAL* cpsgetvertexnormal( Get normal Mesh I/O const char *submesh_file_name, unsigned int &size) value CPS_TEX_COORD* cpsgettexturecoord( Get texture const char *submesh_file_name, unsigned int &size) coordination CPS_FACE* cpsgetface(const char *submesh_file_name, unsigned int &size) Get index value CPS_MATERIAL cpsgetmaterial(const char *submesh_file_name) Get material BOOL cpsimporttexturefile(const char *img_file_name) Import texture Texture I/O BYTE* cpsgettexturedata( const char *submesh_file_name, int &width, Get texture int &height, unsigned int &size) Map I/O BOOL cpsimportheightmapfile(const char *map_file_name, int width, int height) Import map BYTE* cpsgetheightmap(const char *img_file_name, int &width, int &height, unsigned int &size) Get map 3 A Case Study In this chapter, we show an example to create a building showed in figure 2. First, data is initialized using the cpsinitialize() function. Second, bldg_sample.stf file is created with the cpscreatestffile() function. Third, two texture files such as brick27.bmp and brickpath.bmp is imported using cpsimprottexturefile() function before loading the texture. Fourth, two of the mesh and material file is imported using the cpsimportmeshfile() function. Last, data is released using the 174

Proceedings, The 2nd International Conference on Computer Science and Technology cpsclear() function. #include "ETRI_CPS_HIGHLEVEL_API.h" void main() { cpsinitialize(); //Initialize cpscreatestffile("bldg_sample.stf"); //Create STF file cpsimporttexturefile ("brick27.bmp"); //Add Texture cpsimporttexturefile ("brickpath.bmp"); //Add Texture //Add mesh cpsimportmeshfile("bldg06.mesh.xml","bldg06.material"); cpsclear(); //release } Fig. 2. The Example of C++ Program using SHA. Figure 3(a) shows the result from SEDRIS s Focus Tools with the bldg_sample.stf file generated after running the program code in figure 2, and also show to register two texture images in image library, and one mesh file and fourteen submesh files in model library. Figure 3(b) shows the result with SEDRIS Model Viewer Tools. With these results, we can validate to build the complete building structure. (a) The Structure of DRM of the created bldg_sample.stf. (b) The Result of the created bldg_sample.stf using Model Viewer Tools. Fig. 3. The Result of C++ program using SHA. 175

API Development for Efficiently Mapping between SEDRIS and Simulation Systems 4 Conclusion CPS Simulation should simulate various embedded systems simultaneously because of compoundly representing various combined systems. Therefore, to solve this problem, we need SEDRIS that can express the various environment data. So we propose the SEDRIS High-Level API (SHA) to use, manage, and build the environment data without knowledge about DRM, EDCS, and SRM. When applying to CPS simulation environment with SEDRIS, we can reduce the time and cost because of reusing and interoperability of environment data developed in a particular domain environment. In this paper, we introduced SHA needed to apply SEDRIS in CPS simulation. Especially, proposed SHA focus on terrain data management such as texture, polygon, vertex, and map. Further research should be conducted, which is not dealt in this study on terrain map of complex format and environment data such as atmospheric, pressure, and temperature. Acknowledgments. This work was supported by the IT R&D Program of MKE/KEIT [10035708, "The Development of CPS(Cyber-Physical Systems) Core Technologies for High Confidential Autonomic Control Software"] References 1. Jaeho Jeon, InGeol Chun, WonTae Kim: Metamodel-Based CPS Modeling Tool. Embedded and Multimedia Computing Technology and Service, Lecture Notes in Electrical Engineering Vol. 181, 285--291 (2012) 2. Edward A. Lee: Cyber Physical Systems: Design Challenges. Object Oriented Real-Time Distributed Computing (ISORC), 2008 11th IEEE International Symposium on, pp. 363-- 369 (2008) 3. Wayne Wolf: Cyber-physical Systems. Embedded Computing, pp. 88--89 (2009) 4. R. Rajkumar, I. Lee, L. Sha, J. Stankovic: Cyber-physical systems: the next computing revolution. Proceedings of the 47th Annual Design Automation Conference (DAC '10), pp. 731 736 (2010) 5. K. Baheti, H. Gill: Cyber-physical systems. The Impact of Control Technology, T. Samad and A.M. Annaswamy (eds.), IEEE Control Systems Society (2011) 6. Hyun Seung Son, Woo Yeol Kim, Robert Young Chul Kim, Hang-Gi Min: Metamodel Design for Model Transformation from Simulink to ECML in Cyber Physical Systems. Computer Applications for Graphics, Grid Computing, and Industrial Environment, CCIS 351, pp. 56 60 (2012) 7. Farid Mamaghani: An Introduction to SEDRIS. http://www.sedris.org (2008) 8. Michele L. Worley: Fundamentals of the DRM. http://www.sedris.org (2004) 9. ISO/IEC 18026:2009(E): Spatial Reference Model (SRM). http://www.sedris.org 10. ISO/IEC 18025:2005(E): Environmental Data Coding Specification (EDCS). http://www.sedris.org 11. Warren Macchi, Kevin Wertman, Jesse Campos: Advanced Use of the SEDRIS SDK. http://www.sedris.org (2004) 176