From b9f6469568728ae9fa3a5f03cb5907133928b66f Mon Sep 17 00:00:00 2001 From: Peter Soetens Date: Thu, 16 Dec 2010 23:22:28 +0100 Subject: [PATCH 1/2] ros-primitives: use StdTypeInfo instead of low-level TemplateTypeInfo TemplateTypeInfo should only rarely be used by typekits. Signed-off-by: Peter Soetens --- .../orocos/types/ros_primitives_typekit_plugin.cpp | 24 ++++++++++---------- 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/rtt_ros_integration/src/orocos/types/ros_primitives_typekit_plugin.cpp b/rtt_ros_integration/src/orocos/types/ros_primitives_typekit_plugin.cpp index ab5976f..879b652 100644 --- a/rtt_ros_integration/src/orocos/types/ros_primitives_typekit_plugin.cpp +++ b/rtt_ros_integration/src/orocos/types/ros_primitives_typekit_plugin.cpp @@ -44,20 +44,20 @@ namespace ros_integration { virtual std::string getName(){ return std::string("ros-")+"primitives"; } - + virtual bool loadTypes() { RTT::types::Types()->addType( new types::TemplateTypeInfo("time") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("uint8") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("int8") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("int16") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("uint16") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("int32") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("uint32") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("int64") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("uint64") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("float32") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("float64") ); - RTT::types::Types()->addType( new types::TemplateTypeInfo("string") ); + RTT::types::Types()->addType( new types::StdTypeInfo("uint8") ); + RTT::types::Types()->addType( new types::StdTypeInfo("int8") ); + RTT::types::Types()->addType( new types::StdTypeInfo("int16") ); + RTT::types::Types()->addType( new types::StdTypeInfo("uint16") ); + RTT::types::Types()->addType( new types::StdTypeInfo("int32") ); + RTT::types::Types()->addType( new types::StdTypeInfo("uint32") ); + RTT::types::Types()->addType( new types::StdTypeInfo("int64") ); + RTT::types::Types()->addType( new types::StdTypeInfo("uint64") ); + RTT::types::Types()->addType( new types::StdTypeInfo("float32") ); + RTT::types::Types()->addType( new types::StdTypeInfo("float64") ); + RTT::types::Types()->addType( new types::StdStringTypeInfo("string") ); return true; } virtual bool loadOperators() { return true; } -- 1.7.0.4