cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsIntuitiveResearchKitUDPStreamer.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Peter Kazanzides
7  Created on: 2013-12-02
8 
9  (C) Copyright 2013-2014 Johns Hopkins University (JHU), All Rights Reserved.
10 
11 --- begin cisst license - do not edit ---
12 
13 This software is provided "as is" under an open source license, with
14 no warranty. The complete license can be found in license.txt and
15 http://www.cisst.org/cisst/license.txt.
16 
17 --- end cisst license ---
18 */
19 
20 
21 #ifndef _mtsIntuitiveResearchKitUDPStreamer_h
22 #define _mtsIntuitiveResearchKitUDPSTreamer_h
23 
26 
28 class prmEventButton;
29 
31 {
32  CMN_DECLARE_SERVICES(CMN_NO_DYNAMIC_CREATION, CMN_LOG_ALLOW_DEFAULT);
33 
34  protected:
35 
38 
41  bool Clutch;
42  bool Coag;
43 
44  void SetDestination(const std::string &ipPort);
45  void EventHandlerManipClutch(const prmEventButton &button);
46  void EventHandlerCoag(const prmEventButton &button);
47 
48  public:
55  mtsIntuitiveResearchKitUDPStreamer(const std::string &name, double period, const std::string &ip = "", unsigned short port = 0);
56 
59 
63  void Configure(const std::string &ipPort);
64 
65  void Startup(void);
66 
67  void Run(void);
68 
69  void Cleanup(void);
70 
71 };
72 
74 
75 #endif // _mtsIntuitiveResearchKitUDPStreamer_h
Definition: mtsIntuitiveResearchKitUDPStreamer.h:30
void SetDestination(const std::string &ipPort)
Definition: mtsFunctionRead.h:37
osaSocket Socket
Definition: mtsIntuitiveResearchKitUDPStreamer.h:36
void Configure(const std::string &ipPort)
Definition: prmEventButton.h:37
bool SocketConfigured
Definition: mtsIntuitiveResearchKitUDPStreamer.h:37
mtsFunctionRead GetPositionCartesian
Definition: mtsIntuitiveResearchKitUDPStreamer.h:39
Forward declarations and #define for cisstMultiTask.
bool Coag
Definition: mtsIntuitiveResearchKitUDPStreamer.h:42
mtsIntuitiveResearchKitUDPStreamer(const std::string &name, double period, const std::string &ip="", unsigned short port=0)
void EventHandlerManipClutch(const prmEventButton &button)
Defines a periodic task.
Declaration of osaSocketThis is a cross-platform socket library with basic support for UDP (datagram)...
Definition: osaSocket.h:171
Definition: mtsTaskPeriodic.h:80
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
mtsFunctionRead GetGripperPosition
Definition: mtsIntuitiveResearchKitUDPStreamer.h:40
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition: cmnClassRegisterMacros.h:202
void EventHandlerCoag(const prmEventButton &button)
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
bool Clutch
Definition: mtsIntuitiveResearchKitUDPStreamer.h:41