ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Just to have this question marked as answered: from the discussion above, it became clear that the hashbang (#!
) at the beginning of the Python file was not properly entered. It turns out there was an extra space before the #
character.
For anyone reading this in the future, remember, there are 2 required steps to make any Python script run as a ROS node (or even more generally to make the script executable):
chmod gu+x
. I think this is a good tutorial on Linux permissions.#!/usr/bin/env python
.2 | No.2 Revision |
Just to have this question marked as answered: from the discussion above, it became clear that the hashbang (#!
) at the beginning of the Python file was not properly entered. It turns out there was an extra space before the #
character.
For anyone reading this in the future, remember, there are 2 required steps to make any Python script run as a ROS node (or even more generally to make the script executable):
chmod gu+x
. I think this is a good tutorial on Linux permissions.#!/usr/bin/env python