From 83fcbab9e1d708486ad01485f543f26907cfe59a Mon Sep 17 00:00:00 2001 From: Thomas Moulard <thomas.moulard@gmail.com> Date: Thu, 10 Nov 2011 19:07:02 +0100 Subject: [PATCH] Add support for additional types in RosImport. --- src/ros_import.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ros_import.cpp b/src/ros_import.cpp index 7998fc0..a6990e6 100644 --- a/src/ros_import.cpp +++ b/src/ros_import.cpp @@ -81,6 +81,11 @@ namespace dynamicgraph entity.add<ml::Matrix> (signal, topic); else if (type == "vector") entity.add<ml::Vector> (signal, topic); + else if (type == "matrixHomo") + entity.add<sot::MatrixHomogeneous> (signal, topic); + else if (type == "matrixHomoStamped") + entity.add<std::pair<sot::MatrixHomogeneous, ml::Vector> > + (signal, topic); else throw std::runtime_error("bad type"); return Value (); -- GitLab