From 30233da6e6c36f2aff388ab6bc92ee40b8c7ac3c Mon Sep 17 00:00:00 2001
From: Rohan Budhiraja <budhiraja@laas.fr>
Date: Fri, 2 Sep 2016 14:21:10 +0200
Subject: [PATCH] [python] Avoid importing rospy when not needed

---
 src/dynamic_graph/ros/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dynamic_graph/ros/__init__.py b/src/dynamic_graph/ros/__init__.py
index f18ed00..20c3dde 100644
--- a/src/dynamic_graph/ros/__init__.py
+++ b/src/dynamic_graph/ros/__init__.py
@@ -9,7 +9,6 @@ from ros import Ros
 from ros import RosPublish as RosImport
 from ros import RosSubscribe as RosExport
 
-import rospy
 
 class RosRobotModel(Dynamic):
     def __init__(self):
@@ -18,6 +17,7 @@ class RosRobotModel(Dynamic):
         self.jointsParameterName_ = "jrl_map"
 
     def setJointsNamesParameter(self):
+        import rospy
         if self.model is not None:
             parameter_name = self.namespace + "/" + jointsParameterName_
             jointsName = []
-- 
GitLab