R: R: orogen errors in makefile generation

Dear Sir,

OK than you.
Is there any document that a novice can read to understand (perhaps in a short time) whath have to do in such cases?

Now make file is correctly generated, but when i run make i get the following error from a file in a hiddend directory.

make
Scanning dependencies of target check-uptodate
[ 4%] Built target check-uptodate
Scanning dependencies of target robot-transport-typelib-gnulinux
[ 9%] Building CXX object .orogen/typekit/transports/typelib/CMakeFiles/robot-transport-typelib-gnulinux.dir/std_vector__float_.cpp.o
[ 14%] Building CXX object .orogen/typekit/transports/typelib/CMakeFiles/robot-transport-typelib-gnulinux.dir/TypelibMarshallerBase.cpp.o
[ 19%] Building CXX object .orogen/typekit/transports/typelib/CMakeFiles/robot-transport-typelib-gnulinux.dir/TransportPlugin.cpp.o
Linking CXX shared library librobot-transport-typelib-gnulinux.so
[ 19%] Built target robot-transport-typelib-gnulinux
Scanning dependencies of target robot-typekit-gnulinux
[ 23%] Building CXX object .orogen/typekit/CMakeFiles/robot-typekit-gnulinux.dir/Plugin.cpp.o
[ 28%] Building CXX object .orogen/typekit/CMakeFiles/robot-typekit-gnulinux.dir/type_info/__std__vector__float__.cpp.o
Linking CXX shared library librobot-typekit-gnulinux.so
[ 28%] Built target robot-typekit-gnulinux
Scanning dependencies of target robot-tasks-gnulinux
[ 33%] Building CXX object tasks/CMakeFiles/robot-tasks-gnulinux.dir/__/.orogen/tasks/hmiBase.cpp.o
[ 38%] Building CXX object tasks/CMakeFiles/robot-tasks-gnulinux.dir/__/.orogen/tasks/oneaxisfilterBase.cpp.o
[ 42%] Building CXX object tasks/CMakeFiles/robot-tasks-gnulinux.dir/__/.orogen/tasks/robotBase.cpp.o
/root/EsempiOrocos/orogenRobot/.orogen/tasks/robotBase.cpp: In constructor ‘robot::robotBase::robotBase(const std::string&, RTT::base::TaskCore::TaskState)’:
/root/EsempiOrocos/orogenRobot/.orogen/tasks/robotBase.cpp:18: error: ‘robot::robot::robotBase’ has not been declared
make[2]: *** [tasks/CMakeFiles/robot-tasks-gnulinux.dir/__/.orogen/tasks/robotBase.cpp.o] Error 1
make[1]: *** [tasks/CMakeFiles/robot-tasks-gnulinux.dir/all] Error 2
make: *** [all] Error 2

Does this depends on my error in the following robot.orogen file?

name "robot"

task_context "hmi" do
output_port "desiredP", "/std/vector<float>"
end

task_context "oneaxisfilter" do
input_port "inDesiredP", "/std/vector<float>"
output_port "outDesiredP", "/std/vector<float>"
end

task_context "robot" do
input_port "inDesiredP", "/std/vector<float>"
property "curPos" , "/std/vector<float>"
end

# Static deployment for testing. The hmi produce a new setpoint
# the filter component filter it and robot move to the desired set points

deployment "testrobot" do
do_not_install

hmi = task("mmi", "hmi").
start

filter = task("filter", "oneaxisfilter").
start

robot = task("myRobot", "robot").
realtime.
periodic(0.1).
start

connect(hmi.desiredP, filter.inDesiredP)
connect(filter.outDesiredP , robot.inDesiredP)
end

Again thank you for your kindly support.

Gianpaolo Rizzi

----Messaggio originale----
Da: sylvain [dot] joyeux [..] ...
Data: 5-nov-2010 4.29 PM
A: "gprizzi [..] ..."<gprizzi [..] ...>
Cc: <orocos-users [..] ...>
Ogg: Re: R: Re: [Orocos-users] orogen errors in makefile generation

On 11/05/2010 05:04 PM, gprizzi [..] ... wrote:
> Dear Sir,
>
> thank you for your quick support, I apologize for my short experience
> on autoproj.
No problem at all.

> I added the lines
>
> overrides:
> - orogen:
> url:
> git://gitorious.org/+orocos-dfki-maintainers/dfki-ric-orogen.git
> branch: master
>
> in the file autoproj/overrides.yml
>
> then I ran autoproj update and I got the following error.
> [snip error]

Autoproj refuses to touch a working copy if the update is not trivial,
which is the case here. Hence the message "importing the current version
of orogen would require a merge".

You will have to do the switching yourself. Go in orogen/

1. you should be on the master branch already. Check with
git branch
(there should be a '*' in front of master)
2. do
git remote update
git reset --hard autobuild/master
3. git log -1 should display

commit 07f2a8ceb84df01328f2a4f8962a8295cbd1cf76
Author: Sylvain Joyeux <sylvain [dot] joyeux [..] ...>
Date: Wed Nov 3 17:38:42 2010 +0100

Revert "changing findRTT cmake logic"

> Have I to modify some other configuration file to insert
> Autobuilb::PackageException ?
Eeeh. No. It is the name of the Ruby exception that has been thrown. It
is a display bug.

R: R: orogen errors in makefile generation

On 11/05/2010 06:30 PM, gprizzi [..] ... wrote:
>
> Does this depends on my error in the following robot.orogen file?
>
> name "robot"
>
> task_context "hmi" do
> output_port "desiredP", "/std/vector<float>"
> end
>
> task_context "oneaxisfilter" do
> input_port "inDesiredP", "/std/vector<float>"
> output_port "outDesiredP", "/std/vector<float>"
> end
>
> task_context "robot" do
> input_port "inDesiredP", "/std/vector<float>"
> property "curPos" , "/std/vector<float>"
> end
oroGen generates ambiguous code if the task and the project have the
same name (robot in your case).

This is because it refers to

robot::robotBase::

which is understood by the compiler as

robot::robot::robotBase

I will fix that. For the time being, you can work around it by changing
the task name. Sorry.

By the way, since you are using the dfki-ric-orogen repository, the
generated task libraries should work with the deployer.

--
Sylvain Joyeux
Space& Security Robotics

!!! Achtung, neue Telefonnummer!!!

Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-454136
Fax: +49 (0)421 218-454150
E-Mail: robotik [..] ...

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
-----------------------------------------------------------------------

--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users