Error importing a package created with orocreate-pkg

G'day,

I encounter a problem in importing any package created with orocreate-pkg, namely:

[TypekitRepository::Import] A protocol with id 1 was already added for type /std/string

This also happens for id 1, 2 and 42. My Orocos installed version is as follows:

nictosi@ubuntu:/opt/ros/electric/stacks/orocos_toolchain/ocl$ dpkg -l | grep orocos
ii  orocos-bfl                                  0.6.0-5                                         Orocos Bayesian Filtering Library
ii  orocos-bfl-examples                         0.6.0-5                                         Orocos Bayesian Filtering Library examples
ii  ros-electric-orocos-kinematics-dynamics     0.2.3-s1323552462~lucid                         orocos_kinematics_dynamics
ii  ros-electric-orocos-toolchain               0.5.0.7-s1323571095~lucid                       orocos_toolchain
nictosi@ubuntu:/opt/ros/electric/stacks/orocos_toolchain/ocl$ dpkg -l | grep rtt
ii  ros-electric-rtt-common-msgs                0.5.0.3-s1323573205~lucid                       rtt_common_msgs
ii  ros-electric-rtt-geometry                   0.1.0-s1323574051~lucid                         rtt_geometry
ii  ros-electric-rtt-ros-comm                   0.5.0.2-s1323572581~lucid                       rtt_ros_comm
ii  ros-electric-rtt-ros-integration            0.5.0.7-s1323572230~lucid 

Below are the messages shown using deployer-gnulinux. As you can see, the component "ActiveSensing" is available.

 
0.107 [ Warning][DeploymentComponent::import] The ROS package 'ocl' in '/opt/ros/electric/stacks/orocos_toolchain/ocl' nor its dependencies contained a lib/orocos directory. I'll look in the RTT_COMPONENT_PATH next.
   Switched to : Deployer
 
  This console reader allows you to browse and manipulate TaskContexts.
  You can type in an operation, expression, create or change variables.
  (type 'help' for instructions and 'ls' for context info)
 
    TAB completion and HISTORY is available ('bash' like)
 
    Use 'Ctrl-D' or type 'quit' to exit this program.
 
Deployer [S]> import("activeSensing")
8.074 [ ERROR  ][TypekitRepository::Import] A protocol with id 1 was already added for type /std/string
8.074 [ ERROR  ][TypekitRepository::Import] A protocol with id 1 was already added for type /std/vector</double>
8.085 [ ERROR  ][TypekitRepository::Import] A protocol with id 2 was already added for type /std/vector</double>
Plugin of activeSensing loaded in process.
 = true                
 
Deployer [S]> displayComponentTypes ()
I can create the following component types: 
   ActiveSensing
   OCL::ConsoleReporting
   OCL::FileReporting
   OCL::HMIConsoleOutput
   OCL::HelloWorld
   OCL::LuaComponent
   OCL::LuaTLSFComponent
 
OCL::TcpReporting
   OCL::TimerComponent
   OCL::logging::Appender
   OCL::logging::FileAppender
   OCL::logging::LoggingService
   OCL::logging::OstreamAppender
   TaskContext
 = (void)              
 
Deployer [S]>

Thanks a lot in advance

Niccolo

Error importing a package created with orocreate-pkg

Hi Niccolo,

On Wed, Jan 18, 2012 at 10:29 AM, <niccolo [dot] tosi [..] ...> wrote:

> G'day,
>
> I encounter a problem in importing any package created with orocreate-pkg,
> namely:
>
>
> [TypekitRepository::Import] A protocol with id 1 was already added for type
> /std/string
>

This is an error you can ignore and which will not impair your system. We
discussed about a solution but we can only fix it in the 2.6 release
series. The problem is that it is not defined what to do when multiple
typekits provide a transport for a given type, so the system warns about
this. We need to fix this in a sane way and cleanup the log messages.

>
>
> This also happens for id 1, 2 and 42. My Orocos installed version is as
> follows:
>
>
> nictosi@ubuntu:/opt/ros/electric/stacks/orocos_toolchain/ocl$ dpkg -l |
> grep
> orocos
> ii orocos-bfl 0.6.0-5
> Orocos Bayesian Filtering Library
> ii orocos-bfl-examples 0.6.0-5
> Orocos Bayesian Filtering Library examples
> ii ros-electric-orocos-kinematics-dynamics 0.2.3-s1323552462~lucid
> orocos_kinematics_dynamics
> ii ros-electric-orocos-toolchain 0.5.0.7-s1323571095~lucid
> orocos_toolchain
> nictosi@ubuntu:/opt/ros/electric/stacks/orocos_toolchain/ocl$ dpkg -l |
> grep
> rtt
> ii ros-electric-rtt-common-msgs 0.5.0.3-s1323573205~lucid
> rtt_common_msgs
> ii ros-electric-rtt-geometry 0.1.0-s1323574051~lucid
> rtt_geometry
> ii ros-electric-rtt-ros-comm 0.5.0.2-s1323572581~lucid
> rtt_ros_comm
> ii ros-electric-rtt-ros-integration 0.5.0.7-s1323572230~lucid
>
>
> Below are the messages shown using deployer-gnulinux. As you can see, the
> component "ActiveSensing" is available.
>
>
> 0.107 [ Warning][DeploymentComponent::import] The ROS package 'ocl' in
> '/opt/ros/electric/stacks/orocos_toolchain/ocl' nor its dependencies
> contained a lib/orocos directory. I'll look in the RTT_COMPONENT_PATH next.
> Switched to : Deployer
>
> This console reader allows you to browse and manipulate TaskContexts.
> You can type in an operation, expression, create or change variables.
> (type 'help' for instructions and 'ls' for context info)
>
> TAB completion and HISTORY is available ('bash' like)
>
> Use 'Ctrl-D' or type 'quit' to exit this program.
>
> Deployer [S]> import("activeSensing")
> 8.074 [ ERROR ][TypekitRepository::Import] A protocol with id 1 was
> already
> added for type /std/string
> 8.074 [ ERROR ][TypekitRepository::Import] A protocol with id 1 was
> already
> added for type /std/vector
> 8.085 [ ERROR ][TypekitRepository::Import] A protocol with id 2 was
> already
> added for type /std/vector
> Plugin of activeSensing loaded in process.
> = true
>
> Deployer [S]> displayComponentTypes ()
> I can create the following component types:
> ActiveSensing
> OCL::ConsoleReporting
> OCL::FileReporting
> OCL::HMIConsoleOutput
> OCL::HelloWorld
> OCL::LuaComponent
> OCL::LuaTLSFComponent
>
> OCL::TcpReporting
> OCL::TimerComponent
> OCL::logging::Appender
> OCL::logging::FileAppender
> OCL::logging::LoggingService
> OCL::logging::OstreamAppender
> TaskContext
> = (void)
>
> Deployer [S]>
>

You can check the available types/typekits with typing '.types' in the
Deployer prompt. Also here, everything should be fine.

Peter