[Thread] Activity: an object with that name is already existing in Xenomai.

Dear Sirs,

I am having trouble in creating OROCOS deployment on xenomai.

I am using orogen to create source code for Orocos components.

I prepare a simple orogen file with one task with many instances, that is included to the message.

I run the commands:

orogen --target=xenomai -v -V test22.orogen
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/lib/orocos
make

then I prepare a .runinfo file with the following content

test22:native+posix:./test22;popall:control_c

and run the deployment with the command

xeno.load.

I get a lot of warning of the type

Activity: an object with that name is already existing in Xenomai.

Looking at orocos.log

I can see rows of the type

0.043 [ Info ][Thread] Creating Thread for scheduler: 0
0.043 [ Info ][Activity1] Thread created with scheduler type '0', priority 50 and period 0.

when Activity9 is reached the creation of a new thread is followed by line with Activity9 again,
instead of Activity10 , Activity11 and so on and the warning message appears.

This doesn't happen on gnulinux system.

Why this happens?

Can I have a xenomai system not correctly set up?
Can you help me with advices useful in solving this problem?

The full log is attached.

Thank you in advance.

G. Rizzi

[Rock-dev] [Thread] Activity: an object with that name is alread

Gianfranco, I would suggest that you stop cross-posting to all orocos +
rock mailing lists. Both orocos and rock developpers are reading
orocos-users, but people that might answer to you on orocos-users may
not be able to send to rock-dev (for instance). So just send your (very
valuable and very appreciated) bug reports to orocos-users.

On 04/15/2011 12:03 AM, gprizzi [..] ... wrote:
> 0.043 [ Info ][Thread] Creating Thread for scheduler: 0
> 0.043 [ Info ][Activity1] Thread created with scheduler type '0',
> priority 50 and period 0.
>
> when Activity9 is reached the creation of a new thread is followed by
> line with Activity9 again,
> instead of Activity10 , Activity11 and so on and the warning message
> appears.

The problem comes from orogen, which was not assigning names to the
activities. In that case, RTT adds an index to the activity names, but
has a limit of 10 activities (just cycling on the last character)

From what I can gather (from the RTT code), this should be harmless.
The "only" issue you will have is that your tasks won't have names,
which -- I guess -- makes them unlisted in xenomai's tooling.

I'm testing a patch to orogen to fix that issue.
--
Sylvain Joyeux (Dr.Ing.)
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