ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi Brice,
You found a pretty tricky bug! I guess we had never tried to run rosserial_python from within the package of a custom message. Python automatically adds the working directory of a python executable to the python sys.path. As a result, when rosserial_python when to check if it had the package in the sys.path, it found the current working directory. I just updated the code to check for the src directory of the package instead of just the package name. It should work now.
Just pull the latest repo.
2 | No.2 Revision |
Hi Brice,
You found a pretty tricky bug! I guess we had never tried to run rosserial_python from within the package of a custom message. Python automatically adds the working directory of a python executable to the python sys.path. As a result, when rosserial_python when went to check if it had the package in the its sys.path, it found the current working directory. I just updated the code to check for the src directory of the package instead of just the package name. It should work now.
Just pull the latest repo.