Revision ea068cf1 src/client/client.cpp

View differences:

src/client/client.cpp
46 46

  
47 47
    // start middleware
48 48
    if (mw == "ROS") {
49
        middleware = new humotion::client::MiddlewareROS(scope);
49
        middleware_ = new humotion::client::MiddlewareROS(scope);
50 50
    } else {
51 51
        printf("> ERROR: invalid mw '%s' given. RSB support was droppd. please use ROS\n\n",
52 52
               mw.c_str());
......
61 61
//! check if connection is ok
62 62
//! \return true if conn is alive
63 63
bool Client::ok() {
64
    return middleware->ok();
64
    return middleware_->ok();
65 65
}
66 66

  
67 67
//! do a single middleware tick:
68 68
void Client::tick() {
69
    middleware->tick();
69
    middleware_->tick();
70 70
}
71 71

  
72 72
//! set mouth position
73 73
//! \param MouthState m to set
74 74
//! \param send data to server (optional, use manual call to send_*() to trigger update on server)
75 75
void Client::update_mouth_target(MouthState m, bool send) {
76
    middleware->update_mouth_target(m, send);
76
    middleware_->update_mouth_target(m, send);
77 77
}
78 78

  
79 79
//! set gaze direction
80 80
//! \param GazeState m to set
81 81
//! \param send data to server (optional, use manual call to send_*() to trigger update on server)
82 82
void Client::update_gaze_target(GazeState s, bool send) {
83
    middleware->update_gaze_target(s, send);
83
    middleware_->update_gaze_target(s, send);
84 84
}
85 85

  
86 86

  
87 87
//! send all targets to server
88 88
void Client::send_all() {
89
    middleware->send_all();
89
    middleware_->send_all();
90 90
}
91 91

  

Also available in: Unified diff