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

Sending messages to nao_controller from rostopic_pub'

asked 2013-07-26 00:55:28 -0600

Mohsen 2013 gravatar image

updated 2013-07-26 02:35:59 -0600

Hello Every body , I am new in Ros and Python I would like to use joint_angles topic to control only on joint of NAO lets say HeadYaw Id it possible to let me know the procedure?

I was running the following command but it does not work :

rostopic pub /joint_angles nao_msgs/JointAnglesWithSpeed '{seq: 1, stamp: now, frame_id: Head}' '['[HeadYaw,HeadPitch]',[1,-1],2.0,0]'

edit retag flag offensive close merge delete

Comments

Could you change the title to something more descriptive? Eg. 'Sending messages to nao_controller from rostopic_pub'. It'll make it easier for future users to find your question :)

Miguel S. gravatar image Miguel S.  ( 2013-07-26 01:39:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-07-26 01:15:03 -0600

Miguel S. gravatar image

updated 2013-07-26 01:18:53 -0600

There are two issues with your command:

  • On ROS groovy the line is not being accepted, if you flatten your arrays and add -- for the negative numbers it works
  • The relative speed must be a value between 0 and 1

So if you type something like this...

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

... it should work (at least on groovy with nao_controller up and running)

edit flag offensive delete link more

Comments

Thanks alot :)

Mohsen 2013 gravatar image Mohsen 2013  ( 2013-07-26 02:32:28 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-07-26 00:55:28 -0600

Seen: 403 times

Last updated: Jul 26 '13