From 9a03ab8fb0f4deb050d2b19afd92ef1f0e39b9e2 Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Thu, 7 Nov 2013 16:39:22 +0100
Subject: [PATCH] Call rosInit in command loadUrdf.

  Without this call the command fails.
---
 src/robot_model.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/robot_model.cpp b/src/robot_model.cpp
index d849dfe..f27cdf6 100644
--- a/src/robot_model.cpp
+++ b/src/robot_model.cpp
@@ -60,6 +60,7 @@ void RosRobotModel::loadUrdf (const std::string& filename)
     for (;it!=specialJoints_.end();++it) {
         parser.specifyREPName(it->first, it->second);
     }
+    rosInit (false);
 
     m_HDR = parser.parse(filename);
 
-- 
GitLab