State sample test

"H.S. Randhawa" <[email protected]> Sat, 29 Apr 2006 19:01:10 +0530
Newsgroups gmane.science.robotics.orocos.user
Message-ID <[email protected]>
I want to create a state in which a fake component whose sample code is in
the OROCOS packages, but i found following errors during compilation. The
sample code is in /opt/orocos/orocos-0.20.0/ packages/execution/


g++ -Wall -g -I/usr/local/orocos/include -c test_state.cpp -o test_state.o
test_state.cpp: In function `int ORO_main(int, char**)':
test_state.cpp:66: error: expected init-declarator before '<' token
test_state.cpp:66: error: expected `,' or `;' before '<' token
test_state.cpp:68: error: `DoubleExtension' undeclared (first use this
function)
test_state.cpp:68: error: (Each undeclared identifier is reported only once
for each function it appears in.)
test_state.cpp:68: error: template argument 1 is invalid
test_state.cpp:68: error: ISO C++ forbids declaration of `MyControlKernel'
with no type
test_state.cpp:72: error: invalid conversion from `const char*' to
`ORO_main::MyControlKernel'
test_state.cpp:74: error: no matching function for call to
`ORO_ControlKernel::ExecutionEx
tension::ExecutionExtension(ORO_main::MyControlKernel*)'
/usr/local/orocos/include/control_kernel/ExecutionExtension.hpp:128: note:
candidates are:
ORO_ControlKernel::ExecutionExtension::ExecutionExtension(ORO_ControlKernel::ExecutionExtension&)
/usr/local/orocos/include/control_kernel/ExecutionExtension.hpp:134:
note:
ORO_ControlKernel::ExecutionExtension::ExecutionExtension(ORO_ControlKernel::ControlKernelInterface*)
test_state.cpp:76: error: 'class ORO_ControlKernel::ExecutionExtension' has
no member named 'commandFactory'
test_state.cpp:77: error: 'class ORO_ControlKernel::ExecutionExtension' has
no member named 'dataFactory'
test_state.cpp:78: error: 'class ORO_ControlKernel::ExecutionExtension' has
no member named 'commandFactory'
test_state.cpp:79: error: 'class ORO_ControlKernel::ExecutionExtension' has
no member named 'dataFactory'
test_state.cpp:91: error: `StateGraphParser' undeclared (first use this
function)
test_state.cpp:91: error: expected `;' before "stateparser"
test_state.cpp:93: error: `ParsedStateContext' undeclared (first use this
function)
test_state.cpp:93: error: template argument 1 is invalid
test_state.cpp:93: error: template argument 2 is invalid
test_state.cpp:93: error: invalid type in declaration before '=' token
test_state.cpp:93: error: `stateparser' undeclared (first use this function)
test_state.cpp:95: error: template argument 1 is invalid
test_state.cpp:95: error: template argument 2 is invalid
test_state.cpp:95: error: expected `;' before '::' token
test_state.cpp:95: error: request for member `end' in `stategraph', which is
of non-class type `int'
test_state.cpp:96: error: invalid type argument of `unary *'
test_state.cpp:98: error: request for member `size' in `stategraph', which
is of non-class type `int'
test_state.cpp:100: error: 'class ORO_ControlKernel::ExecutionExtension' has
no member named 'startStateContext'
test_state.cpp:100: error: invalid types `int[int]' for array subscript
/usr/local/orocos/include/control_kernel/ExecutionExtension.hpp:263: error:
`virtual void ORO_ControlKernel::ExecutionExtension::step()' is protected
test_state.cpp:103: error: within this context
make: *** [test_state.o] Error 1

_______________________________________________
Orocos mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos