rostopic pub
whenever I type in terminal:
rostopic pub call (/cmd_nose qbo_arduqbo/Nose [0,0,'test'] 2)
rostopic pub call (-1 /cmd_mouth qbo_arduqbo/Mouth [0,0,'test'] [0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,0,0,0,0,0])
my robot smiles and has a green nose LED lit.
But, when I type it in a rospy script, I get a syntax error.
HOW can I do this correctly. I have tried almost everything. Thanks in Advance@@ :-)