ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

rostopic pub

asked 2013-05-16 05:14:59 -0600

MovieMaker gravatar image

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@@ :-)

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2013-05-16 06:48:52 -0600

dornhege gravatar image

You cannot just type commands into a python script. You'll need to use Python syntax. Check out the ROS beginner tutorials for the basics.

If you just want a script that lists commands, use a shell script.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-05-16 05:14:59 -0600

Seen: 852 times

Last updated: May 16 '13