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))
评论列表
文章目录