20 "implementation_id",
"SeqIn",
21 "type_name",
"SequenceInComponent",
22 "description",
"Sequence InPort component",
24 "vendor",
"Noriaki Ando, AIST",
25 "category",
"example",
26 "activity_type",
"DataFlowComponent",
29 "lang_type",
"compile",
37 m_OctetIn(
"Octet", m_Octet),
38 m_ShortIn(
"Short", m_Short),
39 m_LongIn(
"Long", m_Long),
40 m_FloatIn(
"Float", m_Float),
41 m_DoubleIn(
"Double", m_Double),
42 m_OctetSeqIn(
"OctetSeq", m_OctetSeq),
43 m_ShortSeqIn(
"ShortSeq", m_ShortSeq),
44 m_LongSeqIn(
"LongSeq", m_LongSeq),
45 m_FloatSeqIn(
"FloatSeq", m_FloatSeq),
46 m_DoubleSeqIn(
"DoubleSeq", m_DoubleSeq)
174 int all_col = h_col + (col * 5);
191 std::vector<int> in_size;
192 std::vector<int>::iterator it;
194 in_size.push_back(d_size);
195 in_size.push_back(f_size);
196 in_size.push_back(l_size);
197 in_size.push_back(s_size);
198 in_size.push_back(o_size);
199 in_size.push_back(ds_size);
200 in_size.push_back(fs_size);
201 in_size.push_back(ls_size);
202 in_size.push_back(ss_size);
203 in_size.push_back(os_size);
205 it = std::max_element(in_size.begin(), in_size.end());
209 std::cout.width(h_col + (col * 5));
211 std::cout <<
"-" << std::endl; all_row++;
213 std::cout.width(h_col);
214 std::cout.setf(std::ios::right, std::ios::adjustfield);
217 std::cout.width(col);
218 std::cout.setf(std::ios::right, std::ios::adjustfield);
220 std::cout <<
"Double";
221 std::cout.width(col);
222 std::cout.setf(std::ios::right, std::ios::adjustfield);
224 std::cout <<
"Float";
225 std::cout.width(col);
226 std::cout.setf(std::ios::right, std::ios::adjustfield);
229 std::cout.width(col);
230 std::cout.setf(std::ios::right, std::ios::adjustfield);
232 std::cout <<
"Short";
233 std::cout.width(col);
234 std::cout.setf(std::ios::right, std::ios::adjustfield);
236 std::cout <<
"Octet";
237 std::cout << std::endl; all_row++;
239 std::cout.width(all_col);
241 std::cout <<
"-" << std::endl; all_row++;
243 for (
int i = 0; i < (all_col - 10)/ 2; i++)
245 std::cout <<
"Basic type";
246 for (
int i = 0; i < (all_col - 10)/ 2; i++)
248 std::cout << std::endl; all_row++;
250 std::cout.width(h_col + (col * 5));
252 std::cout <<
"-" << std::endl; all_row++;
254 std::cout.width(h_col);
255 std::cout.setf(std::ios::right, std::ios::adjustfield);
258 std::cout.width(col);
259 std::cout.setf(std::ios::right, std::ios::adjustfield);
262 std::cout.width(col);
263 std::cout.setf(std::ios::right, std::ios::adjustfield);
266 std::cout.width(col);
267 std::cout.setf(std::ios::right, std::ios::adjustfield);
270 std::cout.width(col);
271 std::cout.setf(std::ios::right, std::ios::adjustfield);
274 std::cout.width(col);
275 std::cout.setf(std::ios::right, std::ios::adjustfield);
277 std::cout << int(
m_Octet.data) <<
"[";
280 std::cout <<
" " <<
"]";
284 std::cout <<
m_Octet.data <<
"]";
286 std::cout << std::endl; all_row++;
288 std::cout.width(all_col);
290 std::cout <<
"-" << std::endl; all_row++;
292 for (
int i = 0; i < (all_col - 13)/ 2; i++)
294 std::cout <<
"Sequence type";
295 for (
int i = 0; i < (all_col - 13)/ 2; i++)
297 std::cout << std::endl; all_row++;
299 std::cout.width(all_col);
301 std::cout <<
"-" << std::endl; all_row++;
303 for (
int i = 0; i < max_size; i++)
305 std::cout.width(h_col - 2);
306 std::cout.setf(std::ios::right, std::ios::adjustfield);
312 std::cout.width(col);
313 std::cout.setf(std::ios::right, std::ios::adjustfield);
324 std::cout.width(col);
325 std::cout.setf(std::ios::right, std::ios::adjustfield);
336 std::cout.width(col);
337 std::cout.setf(std::ios::right, std::ios::adjustfield);
348 std::cout.width(col);
349 std::cout.setf(std::ios::right, std::ios::adjustfield);
360 std::cout.width(col);
361 std::cout.setf(std::ios::right, std::ios::adjustfield);
368 std::cout <<
" " <<
"]";
380 std::cout << std::endl; all_row++;
386 for (
int i = 0 ; i < all_row; i++)
InPort< TimedShortSeq > m_ShortSeqIn
InPort< TimedOctet > m_OctetIn
InPort< TimedOctetSeq > m_OctetSeqIn
DataFlowComponentBase class.
InPort< TimedShort > m_ShortIn
bool g_Listener_dump_enabled
InPort< TimedFloat > m_FloatIn
virtual RTC::ReturnCode_t onInitialize()
Callback function to initialize.
ExecutionContextHandle_t UniqueId
void SeqInInit(RTC::Manager *manager)
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
Callback function to execute periodically.
InPort< TimedLongSeq > m_LongSeqIn
Sequence InPort component.
static const char * seqin_spec[]
void addConnectorListener(ConnectorListenerType callback_type, ConnectorListener *listener, bool autoclean=true)
Adding ConnectorListener type listener.
InPort< TimedLong > m_LongIn
TimedDoubleSeq m_DoubleSeq
InPort< TimedDoubleSeq > m_DoubleSeqIn
Class represents a set of properties.
SeqIn(RTC::Manager *manager)
InPort< TimedDouble > m_DoubleIn
bool addInPort(const char *name, InPortBase &inport)
[local interface] Register DataInPort
void addConnectorDataListener(ConnectorDataListenerType listener_type, ConnectorDataListener *listener, bool autoclean=true)
Adding BufferDataListener type listener.
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
Register RT-Component Factory.
InPort< TimedFloatSeq > m_FloatSeqIn
bool read()
Readout the value from DataPort.