How to change color of turtlesim background using python code
Hi, guys, I'm trying to publish data to turtlesim color_sensor that is trying to display different colors my problem is it publishing data but it's not working. I did call $ rosservice call /clear after running program but it didn't work
#!/usr/bin/env python
import rospy
from turtlesim.msg import Color
rospy.init_node('color_sensor')
pub = rospy.Publisher('/turtle1/color_sensor',Color,queue_size=4)
rate = rospy.Rate(50)
change=Color()
change.r=255
change.g=255
change.b=255
while not rospy.is_shutdown():
pub.publish(change)
print change
what does this mean?
it's not publishing those RGB values to color_sensor, even though I am publishing it.i,e Background color is not changing to White(255,255,255)