File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 1
- from dynamic_graph .sot .dynamics_pinocchio import DynamicPinocchio
2
1
from ros_publish import RosPublish
3
2
from ros_subscribe import RosSubscribe
4
- from ros_joint_state import RosJointState
5
-
6
3
from ros import Ros
7
4
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
You can’t perform that action at this time.
0 commit comments