command_to_joint_state.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:carbot 作者: lucasw 项目源码 文件源码
def __init__(self):
        self.joint_name = rospy.get_param("~joint_name")
        self.joint_state = JointState()
        self.joint_state.name.append(self.joint_name)
        self.joint_state.position.append(0.0)
        self.joint_state.velocity.append(0.0)
        self.joint_pub = rospy.Publisher("joint_states", JointState, queue_size=1)
        self.command_sub = rospy.Subscriber("command", Float64,
                                            self.command_callback, queue_size=1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号