Skip to content
Snippets Groups Projects
Commit 30233da6 authored by Rohan Budhiraja's avatar Rohan Budhiraja
Browse files

[python] Avoid importing rospy when not needed

parent 1ada8dde
No related branches found
No related tags found
No related merge requests found
......@@ -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 = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment