Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while launching roslaunch joy ps3joy.launch #282

Open
somilm opened this issue Mar 26, 2024 · 0 comments
Open

Error while launching roslaunch joy ps3joy.launch #282

somilm opened this issue Mar 26, 2024 · 0 comments

Comments

@somilm
Copy link

somilm commented Mar 26, 2024

I am getting this error while trying to launch ps3joy.launch.If someone can help me with this I would be greatful.

[ERROR] [1711464413.727121]: bad callback: <bound method JoyRemap.callback of <main.JoyRemap object at 0x7f348f441370>>
Traceback (most recent call last):
File "/home/robotics_lab/catkin_ws/src/joystick_drivers/joy/scripts/joy_remap.py", line 48, in _reval_impl
return var[idx]
IndexError: tuple index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/topics.py", line 750, in _invoke_callback
cb(msg)
File "/home/robotics_lab/catkin_ws/src/joystick_drivers/joy/scripts/joy_remap.py", line 103, in callback
raise e
File "/home/robotics_lab/catkin_ws/src/joystick_drivers/joy/scripts/joy_remap.py", line 97, in callback
out_msg.axes[i] = self.evaluator.reval(exp, in_dic)
File "/home/robotics_lab/catkin_ws/src/joystick_drivers/joy/scripts/joy_remap.py", line 62, in reval
raise e
File "/home/robotics_lab/catkin_ws/src/joystick_drivers/joy/scripts/joy_remap.py", line 59, in reval
return self._reval_impl(ast.parse(expr, mode='eval').body, variables)
File "/home/robotics_lab/catkin_ws/src/joystick_drivers/joy/scripts/joy_remap.py", line 50, in _reval_impl
raise IndexError("Variable '%s' out of range: %d >= %d" % (node.value.id, idx, len(var)))
IndexError: Variable 'axes' out of range: 3 >= 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant