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

greczek_USC's profile - activity

2014-07-28 22:27:18 -0500 received badge  Taxonomist
2012-09-05 13:42:56 -0500 received badge  Famous Question (source)
2012-09-05 13:42:56 -0500 received badge  Popular Question (source)
2012-09-05 13:42:56 -0500 received badge  Notable Question (source)
2012-08-20 01:14:50 -0500 received badge  Famous Question (source)
2012-08-20 01:14:50 -0500 received badge  Popular Question (source)
2012-08-20 01:14:50 -0500 received badge  Notable Question (source)
2012-04-16 10:22:19 -0500 received badge  Editor (source)
2012-04-16 10:08:42 -0500 asked a question Controlling NAO's joints using actionlib with nao_controller

Hello, I am new to both the NAO ROS package and actionlib, and I am trying to test if I can control the NAO's joints using the action goals in nao_controller. I would like an example of how to form the goal object that is sent to the robot, i.e.:

client = actionlib.SimpleActionClient('joint_trajectory', JointTrajectoryAction)
client.wait_for_server()
goal = ???
client.send_goal(goal)
client.wait_for_result()

Here is what I have been doing:

jt = JointAngleTrajectory()
jt.joint_names = ["HeadYaw", "HeadPitch"]
jt.joint_angles = [0, 0]
jt.times = [0.5, 0.5]
jtg = JointTrajectoryGoal()
jtg.trajectory = jt
jtag = JointTrajectoryActionGoal()
jtag.goal = jtg
client.send_goal(jtag)

But this gets me the error:

AttributeError: 'JointTrajectoryActionGoal' object has no attribute 'trajectory'

Could someone who has used nao_controller and/or actionlib before please clue me in on how to form this goal object? It would be nice to have an example to generalize to other goals in nao_controller like JointAnglesWithSpeedActionGoal.

2012-03-23 12:08:37 -0500 received badge  Scholar (source)
2012-03-01 10:50:34 -0500 asked a question Adding NaoQI API to PYTHONPATH (v1.12)

Hello, I am trying to set up ROS on my Nao robot. I keep getting the error: "Please make sure that Aldebaran's NaoQI API is in your PYTHONPATH." I found the answer below:

http://answers.ros.org/question/28814/adding-naoqi-to-the-pythonpath

and executed

PYTHONPATH=/my/path/to/naoqi-sdk-1.12-linux32/lib:${PYTHONPATH} ,

with "/my/path/to" being the path to the SDK in my system, but the error did not go away. I am using naoqi-sdk-1.12-linux32, so is the path different for this newer version?