led.py 文件源码

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

项目:baxter_gui 作者: HumaRobotics 项目源码 文件源码
def setLed(self,color, intensity):
        """
            Set an intensity value for the halo led

            :param color: Color of the led (red, green) 
            :type color: str
            :param intensity: Float value for the intensity between 0.0 and 100.0 
            :type intensity: float
        """
        try:
            self.pub[color].publish(Float32(intensity))
        except Exception,e:
            rospy.logwarn("%s",str(e))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号