ros2 run bash script from Python package
Hi,
I would like to be able to run a bash script using ros2 run <my package> <my shell script>
. I have added the shell script (estop_nogui.sh
) to the setup.py
of the package (it's a Python package) as follows:
entry_points={
'console_scripts': [
'spot_ros2 = spot_driver.spot_ros2:main',
'spot_commander = spot_driver.spot_commander:main',
'estop_gui = spot_driver.estop_gui:main',
],
},
scripts = [
'scripts/estop_nogui.sh',
],
This results in the file installed at install/spot_driver/lib/spot_driver/
. It's an executable file but ros2 run
can't find it. What else do I need to do for this?
Thanks!
-Jenny