Ask Your Question
0

syntax error near unexpected token `'joint_states listener''

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

Ros_newbie gravatar image

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

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 -0500

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

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

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

Seen: 188 times

Last updated: Apr 11 '14