Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sample
SampleRobot
rtc
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
6
SampleComponent_impl::SampleComponent_impl
()
7
{
8
}
9
10
SampleComponent_impl::~SampleComponent_impl
()
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
24
void
SampleComponent_impl::sample
(
SampleComponent
*i_sample)
25
{
26
m_sample
= i_sample;
27
}
28
SampleComponent::resetOffset
bool resetOffset(double dir)
Definition:
SampleComponent.cpp:118
SampleComponent_impl::~SampleComponent_impl
virtual ~SampleComponent_impl()
destructor
Definition:
SampleComponent_impl.cpp:10
SampleComponent_impl::SampleComponent_impl
SampleComponent_impl()
constructor
Definition:
SampleComponent_impl.cpp:6
SampleComponent.h
null component
SampleComponent
sample RT component which has one data input port and one data output port
Definition:
SampleComponent.h:37
SampleComponent_impl.h
SampleComponent_impl::m_sample
SampleComponent * m_sample
Definition:
SampleComponent_impl.h:29
SampleComponent_impl::sample
void sample(SampleComponent *i_sample)
Definition:
SampleComponent_impl.cpp:24
SampleComponent_impl::echo
void echo(const char *msg)
Definition:
SampleComponent_impl.cpp:14
hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51