Implementing CRSM Rendezvous Communication for a Distributed Robotic - - PowerPoint PPT Presentation

implementing crsm rendezvous communication for a
SMART_READER_LITE
LIVE PREVIEW

Implementing CRSM Rendezvous Communication for a Distributed Robotic - - PowerPoint PPT Presentation

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work Implementing CRSM Rendezvous Communication for a Distributed Robotic System B. Election Reddy


slide-1
SLIDE 1

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Implementing CRSM Rendezvous Communication for a Distributed Robotic System

  • B. Election Reddy

07305054

under the guidance of

  • Prof. Kavi Arya and Prof. Ramesh S

June 23, 2009

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-2
SLIDE 2

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Outline

1 Concurrent Languages

Synchronous Languages Asynchronous Languages CRSM

2 Fire Bird Platform 3 CRP Rendezvous 4 Rendezvous Implementation 5 Network Problems 6 Case Study: Treasure Hunt 7 Summary 8 Future Work

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-3
SLIDE 3

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work Synchronous Languages Asynchronous Languages CRSM

Concurrent Languages

Synchronous Languages Deterministic Logical Concurrency Suits for describing Centralized Controllers

  • eg. Esterel, Argos
  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-4
SLIDE 4

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work Synchronous Languages Asynchronous Languages CRSM

Concurrent Languages

Asynchronous Languages Non-Deterministic Physical Concurrency Suits for describing Distributed Controllers

  • eg. CSP, ADA
  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-5
SLIDE 5

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work Synchronous Languages Asynchronous Languages CRSM

Concurrent Languages

How to describe GALS???

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-6
SLIDE 6

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work Synchronous Languages Asynchronous Languages CRSM

Concurrent Languages

How to describe GALS??? Communicating Reactive State Machines(CRSM)

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-7
SLIDE 7

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work Synchronous Languages Asynchronous Languages CRSM

CRSM

Language for describing behaviors of distributed controllers Individual nodes are described using Argos Inter node communication is done using Rendezvous Communication primitives Constructs

Hierarchical Composition Synchronous Parallel Composition Signal Hiding Asynchronous Composition

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-8
SLIDE 8

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work Synchronous Languages Asynchronous Languages CRSM

CRSM

Figure: Hierarchical Composition

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-9
SLIDE 9

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work Synchronous Languages Asynchronous Languages CRSM

CRSM

Figure: Synchronous Parallel Composition

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-10
SLIDE 10

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work Synchronous Languages Asynchronous Languages CRSM

CRSM

Figure: Asynchronous Composition

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-11
SLIDE 11

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Fire Bird Platform

Platform: Firebird running uC/OS. uC/OS is an Operating System Kernel for microcontrollers

Real Time Multitasking Preemptive Priority Based Scheduling

Communication: XBee wireless

Figure: Firebird 4

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-12
SLIDE 12

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

CRP Rendezvous[2]

Solution is non-trivial due to Facts:

A1: Communication takes non-zero time A2: Reactive processes are invoked at arbitrary points of times

Requirements:

P1 Safety: Coordinators, commit to only those rendezvous that are enabled. Further, they agree on the commitment of rendezvous. P2 Liveness: It will not be the case that no rendezvous is committed when there is a rendezvous that is enabled for ever.

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-13
SLIDE 13

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

CRP Rendezvous[2] [cont’d...]

There is no protocol with the assumptions A1 and A2 satisfying the properties P1 and P2 [3]

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-14
SLIDE 14

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

CRP Rendezvous[2] [cont’d...]

There is no protocol with the assumptions A1 and A2 satisfying the properties P1 and P2 [3] Solution by CRP: By weakening the assumption A2 by giving control to the reactive process only at definite points of time

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-15
SLIDE 15

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

CRP Rendezvous[2] [cont’d...]

Reactive Process Coordinator Process Signals

Start(Sr): request signal output by the node(reactive process) when it is ready to execute rendezvous r Return(Rr): input signal generated by the coordinator to indicate to the node that it can go ahead with the completion

  • f the execution of the rendezvous r

Kill(Kr): signal output by the node when a local reaction preempts the rendezvous r

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-16
SLIDE 16

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

CRP Rendezvous[2] [cont’d...]

Commitment Sequence Consent phase Confirmation phase

Figure: Coordinator State Diagram[2]

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-17
SLIDE 17

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

CRP Rendezvous[2] [cont’d...]

Status of a rendezvous r closed: the reactive node is not ready to execute r untried: the reactive node is ready to execute r but the coordinator is yet to execute the commitment sequence for r trying: the coordinator is in the middle of executing the commitment sequence for r rejected: the execution of commitment sequence for r is failed committed: the commitment sequence for r is executed successfully

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-18
SLIDE 18

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Rendezvous Implementation

API void rendezvousSend(INT8U from, INT8U to, INT8U channel) INT8U rendezvousReceive(INT8U from, INT8U to, INT8U channel)

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-19
SLIDE 19

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Rendezvous Implementation

Assumptions about the network The nodes are connected to each other via point-to-point links that do not fail The links are bidirectional and the coordinators use these to communicate with each other The network is reliable i.e., messages are not lost and their

  • rder is preserved during transmission

The nodes are numbered with distinct indices and each node knows its index

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-20
SLIDE 20

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

CoordinatorTask

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-21
SLIDE 21

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

PassiveTask

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-22
SLIDE 22

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Rendezvous Implementation

Figure: CRP Rendezvous Implementation using uC/OS

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-23
SLIDE 23

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Network Problems

Message Losses and Reordering ZigBee 802.15.4 protocol guarantees the reliable

  • communication. So we can safely assume that there won’t be

any message losses and reordering. Interference

CSMA/CA option of XBee module is enabled. So there is very less chances of interference

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-24
SLIDE 24

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

CSMA/CA

Sender node senses the medium before sending the data If the medium is clear then sends the data Otherwise waits for a random amount of time(backoff period) and then checks the medium again If the medium is still busy after backoff period then choses

  • ther backoff period and repeats the same
  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-25
SLIDE 25

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

CSMA/CA

What happens if more than one node senses the medium at the same time???

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-26
SLIDE 26

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

CSMA/CA

What happens if more than one node senses the medium at the same time??? Exception Handling

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-27
SLIDE 27

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Exception Handling

Corrupted messages are handled as below If a Task receives a corrupted message while protocol is running, it just discards that message, sends IGNORE message to the partner and restarts the rendezvous If a Task receives a IGNORE message it discards that message and restarts the rendezvous So, the state of the robot will be same before and after a corrupted message is received

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-28
SLIDE 28

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Case Study: Treasure Hunt

F1, F2, F3 are three Fire Birds All three will go in their own direction for finding treasure If any one of them finds the treasure, it will stop there and sends the TreasureFound message to others TreasureFound message receptor will stop moving in its own direction and goes to the TreasureFound message sender Assumption: Only one treasure exist in the system

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-29
SLIDE 29

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Node1

Figure: CRSM Representation of Node1

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-30
SLIDE 30

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Node2

Figure: CRSM Representation of Node2

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-31
SLIDE 31

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Node3

Figure: CRSM Representation of Node3

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-32
SLIDE 32

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Summary

Understood the CRSM concepts and using of the CRSM tools Acquainted with the programming environment of Robotic System(Fire Bird IV) running Real-Time kernel uCOS Implemented the CRP Rendezvous Communication primitives for Fire Bird using uC/OS

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-33
SLIDE 33

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Future Work

CRP Rendezvous communication protocol is taking approximately 500 milliseconds. This can be improved by tuning the delays involved in its implementation. Implementing the CRSM to C translator using this communication primitives Integrating CRP rendezvous implementation with Esterel2C implementation by Shashidhar[15]

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-34
SLIDE 34

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Conclusion

We have implemented CRP Rendezvous Communication primitives for a distributed robotic system so that the robots can communicate synchronously.

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-35
SLIDE 35

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

Thank you.

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-36
SLIDE 36

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

References

www.nex-robotics.com Implementation of Communicating Reactive Processes by S. Ramesh, Parallel Computing 25(6), 1999 Impossibility of Synchronization in the Presence of Preemption by

  • S. Ramesh, C.M. Shetty, Parallel Processing Letters 8(1), 1998

Parallel Computing 25(6), 1999 Communicating Reactive State Machines: Design, Model and Implementation by S. Ramesh. In IFAC Workshop on Distributed Computer Control System. Pergamon Press, September 1998

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-37
SLIDE 37

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

References

FPGA Based Implementation of CRSMs, M.Tech. Dissertation by Sudeep Bishwas, 2004 Model Based Languages for Distributed Systems, DD Dissertation by Kumar Digvijay Singh, 2007 Implementation of Communicating Reactive State Machines, M.Tech. Dissertation by D. Giri Prasad Reddy, 2000 Verification of CRSMs, M.Tech. Dissertation by B. Vijaya Laxmi, 2003

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-38
SLIDE 38

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

References

www.micrium.com/products/rtos/kernel/rtos.html Communicating Sequential Processes, Communications of the ACM 21 (8): 666-677 by C. A. R. Hoare, 1978 An Effective Implementation for the Generalized Input-Output Construct of CSP by G. Buckley and A. Silberschatz, ACM TOPLAS, Vol.5, No.2, 1983 A Fair and Efficient Implementation of CSP with Output Guards by R.J.R. Back, P. Eklund and R. Kurki-Suonia, Tech.Report, Ser.A, No.38, 1984

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed

slide-39
SLIDE 39

Concurrent Languages Fire Bird Platform CRP Rendezvous Rendezvous Implementation Network Problems Case Study: Treasure Hunt Summary Future Work

References

A New Efficient Implementation of CSP with Output Guards by S. Ramesh, Proceedings of the Seventh International Conference on Distributed Computing Systems, Berlin, Germany, 1987 http://www.digi.com/products/wireless/ point-multipoint/xbee-series1-module.jsp Model-Based Design and Analysis: Esterel to Robots, M. Tech. Dissertation by Y. Shashidhar, 2009

  • B. Election Reddy 07305054

Implementing CRSM Rendezvous Communication for a Distributed