orocos_toolchain_ros/typgen [-t] option fails

Hi,

The transport option of typegen fails as folowing:
gajan@nekobasu:~/ros/stacks/kul-ros-pkg$ typegen -o kuka_typekit
kuka_typekit lwr_fri/include/friComm.h -t mqueue
/home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-orogen/lib/orogen/typekit.rb:622:in
`enable_plugin': there is not typekit plugin called mqueuemqueue
(ArgumentError)
from /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-orogen/bin/typegen:76
from /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-orogen/bin/typegen:75:in
`each'
from /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-orogen/bin/typegen:75

FYI:
git clone http://git.mech.kuleuven.be/robotics/orocos_toolchain_ros.git
git checkout -b cturtle origin/cturtle
source `rosstack find orocos_toolchain_ros`/env.sh (in .bashrc)

I would appriciate any help.

without the [-t] option typegen works fine but when I do a make
[
-- Performing Test , - Failed
Orocos-RTT found in
/home/gajan/ros/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/orocos-rtt/orocos-rtt-gnulinux-libraries.cmake
-- Found orocos-rtt for the gnulinux target. Available transports: mqueue
CMake Error at config/FindOrocosCORBA.cmake:8 (MESSAGE):
RTT has not been built with CORBA support
Call Stack (most recent call first):
transports/corba/CMakeLists.txt:3 (find_package)
]
Pls show me how to [--enable-corba] in orocos_toolchain_ros.

Best,
Gajan

orocos_toolchain_ros/typgen [-t] option fails

On Thursday 31 March 2011 09:19:07 Gajamohan Mohanarajah wrote:
> Hi,
>
> The transport option of typegen fails as folowing:
> gajan@nekobasu:~/ros/stacks/kul-ros-pkg$ typegen -o kuka_typekit
> kuka_typekit lwr_fri/include/friComm.h -t mqueue
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-o
> rogen/lib/orogen/typekit.rb:622:in `enable_plugin': there is not typekit
> plugin called mqueuemqueue
> (ArgumentError)
> from
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> orogen/bin/typegen:76 from
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> orogen/bin/typegen:75:in `each'
> from
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> orogen/bin/typegen:75

You can apply the patch in attachment which fixes your issue. It was present on
all branches.

roscd orogen
git am 0001-typegen-fix-argument-parsing-of-transport-selection.patch

recompilation is not necessary.

I pushed this fix to all branches,k so eventually, it will be picked up by the
orocos_toolchain_ros as well (if Ruben moves the submodule to the fixed
version...)

>
>
> FYI:
> git clone http://git.mech.kuleuven.be/robotics/orocos_toolchain_ros.git
> git checkout -b cturtle origin/cturtle
> source `rosstack find orocos_toolchain_ros`/env.sh (in .bashrc)
>
> I would appriciate any help.
>
>
> without the [-t] option typegen works fine but when I do a make
> [
> -- Performing Test , - Failed
> Orocos-RTT found in
> /home/gajan/ros/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/orocos-rt
> t/orocos-rtt-gnulinux-libraries.cmake -- Found orocos-rtt for the gnulinux
> target. Available transports: mqueue CMake Error at
> config/FindOrocosCORBA.cmake:8 (MESSAGE):
> RTT has not been built with CORBA support
> Call Stack (most recent call first):
> transports/corba/CMakeLists.txt:3 (find_package)
> ]
> Pls show me how to [--enable-corba] in orocos_toolchain_ros.
>
> Best,
> Gajan

Peter

orocos_toolchain_ros/typgen [-t] option fails

2011/3/31 Peter Soetens <peter [..] ...>

> On Thursday 31 March 2011 09:19:07 Gajamohan Mohanarajah wrote:
> > Hi,
> >
> > The transport option of typegen fails as folowing:
> > gajan@nekobasu:~/ros/stacks/kul-ros-pkg$ typegen -o kuka_typekit
> > kuka_typekit lwr_fri/include/friComm.h -t mqueue
> >
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-o
> > rogen/lib/orogen/typekit.rb:622:in `enable_plugin': there is not typekit
> > plugin called mqueuemqueue
> > (ArgumentError)
> > from
> >
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> > orogen/bin/typegen:76 from
> >
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> > orogen/bin/typegen:75:in `each'
> > from
> >
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> > orogen/bin/typegen:75
>
> You can apply the patch in attachment which fixes your issue. It was
> present on
> all branches.
>
> roscd orogen
> git am 0001-typegen-fix-argument-parsing-of-transport-selection.patch
>
> recompilation is not necessary.
>
> I pushed this fix to all branches,k so eventually, it will be picked up by
> the
> orocos_toolchain_ros as well (if Ruben moves the submodule to the fixed
> version...)
>
>
I don't know what is the supposed manner to do it, but personnaly I always
switch the default orocos_toolchain_ros modules to the last toolchain
(currently toolchain-2.3)

> >
> >
> > FYI:
> > git clone http://git.mech.kuleuven.be/robotics/orocos_toolchain_ros.git
> > git checkout -b cturtle origin/cturtle
> > source `rosstack find orocos_toolchain_ros`/env.sh (in .bashrc)
> >
> > I would appriciate any help.
> >
> >
> > without the [-t] option typegen works fine but when I do a make
> > [
> > -- Performing Test , - Failed
> > Orocos-RTT found in
> >
> /home/gajan/ros/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/orocos-rt
> > t/orocos-rtt-gnulinux-libraries.cmake -- Found orocos-rtt for the
> gnulinux
> > target. Available transports: mqueue CMake Error at
> > config/FindOrocosCORBA.cmake:8 (MESSAGE):
> > RTT has not been built with CORBA support
> > Call Stack (most recent call first):
> > transports/corba/CMakeLists.txt:3 (find_package)
> > ]
> > Pls show me how to [--enable-corba] in orocos_toolchain_ros.
> >
> > Best,
> > Gajan
>
> Peter
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>

orocos_toolchain_ros/typgen [-t] option fails

On Thursday 31 March 2011 11:23:58 Willy Lambert wrote:
> 2011/3/31 Peter Soetens <peter [..] ...>
>
> > On Thursday 31 March 2011 09:19:07 Gajamohan Mohanarajah wrote:
> > > Hi,
> > >
> > > The transport option of typegen fails as folowing:
> > > gajan@nekobasu:~/ros/stacks/kul-ros-pkg$ typegen -o kuka_typekit
> > > kuka_typekit lwr_fri/include/friComm.h -t mqueue
> >
> > /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain
> > -o
> >
> > > rogen/lib/orogen/typekit.rb:622:in `enable_plugin': there is not
> > > typekit plugin called mqueuemqueue
> > > (ArgumentError)
> > >
> > > from
> >
> > /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain
> > -
> >
> > > orogen/bin/typegen:76 from
> >
> > /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain
> > -
> >
> > > orogen/bin/typegen:75:in `each'
> > >
> > > from
> >
> > /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain
> > -
> >
> > > orogen/bin/typegen:75
> >
> > You can apply the patch in attachment which fixes your issue. It was
> > present on
> > all branches.
> >
> > roscd orogen
> > git am 0001-typegen-fix-argument-parsing-of-transport-selection.patch
> >
> > recompilation is not necessary.
> >
> > I pushed this fix to all branches,k so eventually, it will be picked up
> > by the
> > orocos_toolchain_ros as well (if Ruben moves the submodule to the fixed
> > version...)
>
> I don't know what is the supposed manner to do it, but personnaly I always
> switch the default orocos_toolchain_ros modules to the last toolchain
> (currently toolchain-2.3)

You are allowed to do that. But it's Ruben who decides which is the 'official'
(default) one and ends up in the Debian packages.

>
> > > FYI:
> > > git clone http://git.mech.kuleuven.be/robotics/orocos_toolchain_ros.git
> > > git checkout -b cturtle origin/cturtle
> > > source `rosstack find orocos_toolchain_ros`/env.sh (in .bashrc)
> > >
> > > I would appriciate any help.
> > >
> > >
> > > without the [-t] option typegen works fine but when I do a make
> > > [
> > > -- Performing Test , - Failed
> > > Orocos-RTT found in
> >
> > /home/gajan/ros/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/orocos-
> > rt
> >
> > > t/orocos-rtt-gnulinux-libraries.cmake -- Found orocos-rtt for the
> >
> > gnulinux
> >
> > > target. Available transports: mqueue CMake Error at
> > >
> > > config/FindOrocosCORBA.cmake:8 (MESSAGE):
> > > RTT has not been built with CORBA support
> > >
> > > Call Stack (most recent call first):
> > > transports/corba/CMakeLists.txt:3 (find_package)
> > >
> > > ]
> > > Pls show me how to [--enable-corba] in orocos_toolchain_ros.
> > >
> > > Best,
> > > Gajan
> >
> > Peter
> >

Peter

orocos_toolchain_ros/typgen [-t] option fails

On Thursday 31 March 2011 09:19:07 Gajamohan Mohanarajah wrote:
> Hi,
>
> The transport option of typegen fails as folowing:
> gajan@nekobasu:~/ros/stacks/kul-ros-pkg$ typegen -o kuka_typekit
> kuka_typekit lwr_fri/include/friComm.h -t mqueue
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-o
> rogen/lib/orogen/typekit.rb:622:in `enable_plugin': there is not typekit
> plugin called mqueuemqueue

Yep, I could reproduce this, it must be due to the 'mqueuemqueue'

> (ArgumentError)
> from
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> orogen/bin/typegen:76 from
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> orogen/bin/typegen:75:in `each'
> from
> /home/gajan/ros/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> orogen/bin/typegen:75
>
>
> FYI:
> git clone http://git.mech.kuleuven.be/robotics/orocos_toolchain_ros.git
> git checkout -b cturtle origin/cturtle
> source `rosstack find orocos_toolchain_ros`/env.sh (in .bashrc)

It's also present on the 'regular' toolchain (non-ROS). I also saw that the --
no-transports flag is causing this:

$ typegen -o kuka_typekit --no-transports=mqueue kuka_typekit
RobotControlData.hpp
/usr/lib/ruby/1.8/optparse.rb:1266:in `parse_in_order': needless argument: --
no-transports=mqueue (OptionParser::NeedlessArgument)
from /usr/lib/ruby/1.8/optparse.rb:429:in `parse'
from /usr/lib/ruby/1.8/optparse.rb:1266:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `catch'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1248:in `order!'
from /usr/lib/ruby/1.8/optparse.rb:1339:in `permute!'
from /usr/lib/ruby/1.8/optparse.rb:1360:in `parse!'
from /usr/lib/ruby/1.8/optparse.rb:1350:in `parse'
from /home/kaltan/src/git/orocos-toolchain/orogen/bin/typegen:64

or this:

$ typegen -o kuka_typekit --no-transports kuka_typekit RobotControlData.hpp
/home/kaltan/src/git/orocos-toolchain/orogen/bin/typegen:41: private method
`split' called for false:FalseClass (NoMethodError)
from /usr/lib/ruby/1.8/optparse.rb:1267:in `call'
from /usr/lib/ruby/1.8/optparse.rb:1267:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `catch'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1248:in `order!'
from /usr/lib/ruby/1.8/optparse.rb:1339:in `permute!'
from /usr/lib/ruby/1.8/optparse.rb:1360:in `parse!'
from /usr/lib/ruby/1.8/optparse.rb:1350:in `parse'
from /home/kaltan/src/git/orocos-toolchain/orogen/bin/typegen:64

>
> I would appriciate any help.
>
>
> without the [-t] option typegen works fine but when I do a make
> [
> -- Performing Test , - Failed
> Orocos-RTT found in
> /home/gajan/ros/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/orocos-rt
> t/orocos-rtt-gnulinux-libraries.cmake -- Found orocos-rtt for the gnulinux
> target. Available transports: mqueue CMake Error at
> config/FindOrocosCORBA.cmake:8 (MESSAGE):
> RTT has not been built with CORBA support
> Call Stack (most recent call first):
> transports/corba/CMakeLists.txt:3 (find_package)
> ]
> Pls show me how to [--enable-corba] in orocos_toolchain_ros.

This is not necessary for ROS systems, but you could enable it with configuring
RTT with cd build; cmake .. -DENABLE_CORBA=ON . I think it's better that we fix
typegen asap/right now.

Peter