コード例 #1
0
ファイル: joints.py プロジェクト: plahera/hri_common
 def __init__(self, joint_name):
     Joint.__init__(self, joint_name)
     self.motor_pub = rospy.Publisher(self.joint_name + '/command',
                                      Float64,
                                      queue_size=10)
     self.set_speed_srv = rospy.ServiceProxy(self.joint_name + '/set_speed',
                                             SetSpeed)
コード例 #2
0
ファイル: joints.py プロジェクト: plahera/hri_common
 def __init__(self, joint_name):
     Joint.__init__(self, joint_name)
     self.msg = MotorCommand()
     self.msg.joint_name = self.joint_name
     self.motor_pub = rospy.Publisher('pololu/command',
                                      MotorCommand,
                                      queue_size=10)
コード例 #3
0
ファイル: joints.py プロジェクト: geni-lab/hri_common
 def __init__(self, joint_name):
     Joint.__init__(self, joint_name)
     self.msg = MotorCommand()
     self.msg.joint_name = self.joint_name
     self.motor_pub = rospy.Publisher('pololu/command', MotorCommand, queue_size=10)
コード例 #4
0
ファイル: joints.py プロジェクト: geni-lab/hri_common
 def __init__(self, joint_name):
     Joint.__init__(self, joint_name)
     self.motor_pub = rospy.Publisher(self.joint_name + '/command', Float64, queue_size=10)
     self.set_speed_srv = rospy.ServiceProxy(self.joint_name + '/set_speed', SetSpeed)
コード例 #5
0
ファイル: joint.py プロジェクト: jdddog/nao_hri
 def __init__(self, joint_name):
     Joint.__init__(self, joint_name)
     self.msg = JointAnglesWithSpeed()
     self.msg.joint_names.append(joint_name)
     self.joint_pub = rospy.Publisher('joint_angles', JointAnglesWithSpeed, queue_size=10)