SampleComponent_impl.cpp
Go to the documentation of this file.
1 // -*- mode: c++; indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-
2 #include <iostream>
3 #include "SampleComponent_impl.h"
4 #include "SampleComponent.h"
5 
7 {
8 }
9 
11 {
12 }
13 
14 void SampleComponent_impl::echo(const char *msg)
15 {
16  std::cout << "SampleComponent: " << msg << std::endl;
17  if (std::string(msg) == "up") {
18  m_sample->resetOffset(-0.002);
19  } else {
20  m_sample->resetOffset(0.002);
21  }
22 }
23 
25 {
26  m_sample = i_sample;
27 }
28 
bool resetOffset(double dir)
virtual ~SampleComponent_impl()
destructor
SampleComponent_impl()
constructor
null component
sample RT component which has one data input port and one data output port
SampleComponent * m_sample
void sample(SampleComponent *i_sample)
void echo(const char *msg)


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51