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

syntax error near unexpected token `'joint_states listener''

asked 2014-04-10 15:20:19 -0600

Ros_newbie gravatar image

updated 2014-04-10 22:30:36 -0600

In this tutorial - http://wiki.ros.org/pr2_controllers/T...

I was trying to run the service node for getting the current joint angles but the screen shows the message stated below.-

~/groovy_workspace/sandbox/joint_states_listener$ rosrun joint_states_listener joint_states_listener.py
/home/roger/groovy_workspace/sandbox/joint_states_listener/nodes/joint_states_listener.py: line 6: syntax error near unexpected token `'joint_states_listener''

I am following the tutorial stepwise and havent missed any. Dont know what the problem is. Pls help.

I am using geoovy and ubuntu 12.04

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2014-04-11 06:58:44 -0600

ahendrix gravatar image

This sounds like you have a syntax error on line 6 in your python program.

Without seeing the source code, I can't say anything more than that.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-04-10 15:20:19 -0600

Seen: 295 times

Last updated: Apr 11 '14