ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Loop over $ rostopic pub ..... on NAO

asked 2013-07-29 06:35:57 -0500

Mohsen 2013 gravatar image

updated 2013-07-29 06:36:28 -0500

Hello I would like to have loop over the following command

rostopic pub /joint_angles nao_msgs/JointAnglesWithSpeed -- '[ 1, now, Head]' '[HeadYaw,HeadPitch]' '[1,-1]' 1.0 0

It means I would like NAO continuously with certain frequency can moves its head.

I will appreciate if you help me

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2013-07-29 07:36:27 -0500

ahendrix gravatar image

You should probably write a ROS node to do this, rather than try to script the command-line tools. You may want to start with the ROS python tutorial

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-07-29 06:35:57 -0500

Seen: 662 times

Last updated: Jul 29 '13