Skip to content

Commit 72502c9

Browse files
[python] Remove python script depending on dynamic-pinocchio.
1 parent 92699af commit 72502c9

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/dynamic_graph/ros/__init__.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,4 @@
1-
from dynamic_graph.sot.dynamics_pinocchio import DynamicPinocchio
21
from ros_publish import RosPublish
32
from ros_subscribe import RosSubscribe
4-
from ros_joint_state import RosJointState
5-
63
from ros import Ros
74

8-
# aliases, for retro compatibility
9-
from ros import RosPublish as RosImport
10-
from ros import RosSubscribe as RosExport
11-
12-
13-
class RosRobotModel(DynamicPinocchio):
14-
def __init__(self, name):
15-
DynamicPinocchio.__init__(self, name)
16-
self.namespace = "sot_controller"
17-
self.jointsParameterName_ = "jrl_map"
18-
19-
def setJointsNamesParameter(self):
20-
import rospy
21-
if self.model is not None:
22-
parameter_name = self.namespace + "/" + jointsParameterName_
23-
jointsName = []
24-
for i in xrange(self.model.njoints):
25-
jointsName.append(self.model.names[i])
26-
rospy.set_param(parameter_name,jointsName)
27-
return
28-
29-
def setNamespace(self, ns):
30-
self.namespace = ns
31-
return
32-
33-
def curConf(self):
34-
return self.position.value

0 commit comments

Comments
 (0)