I am currently porting some of our code/infrastructure to electric from diamondback. When trying to launch my new electric stuff, I get a problem being able to launch one of our third party libraries (dynamixel_controllers) It looks like all the python programs in this package do not have the #!/usr/bin/python at the top of the files, and now they will not launch with the following error message:
If it is a script, you may be missing a '#!' declaration at the top.
I haven't changed anything related to this, and while I can add the #! to the top of each file, I'd rather not as it is an external library, and I don't want to be running our own fork of it. Is there something new to electric that I must do to launch python files?
[Update]
The specific file I'm attempting to run is the joint_trajectory_action_controller.py file from the dynamixel_controllers package. Should this be launched instead by the controller spawner or something? Here's the associated (failing) launch file:
<launch>
<!-- Load joint names from yaml file -->
<rosparam file="$(find cyton_arm_driver)/config/joint_controllers.yaml" command="load"/>
<node name="cyton_joint_action_controller" pkg="dynamixel_controllers" type="joint_trajectory_action_controller.py" required="true">
<param name="~controller_namespace" type="str" value=""/>
</node>
</launch>
Originally posted by John Hoare on ROS Answers with karma: 765 on 2011-09-15
Post score: 0
Original comments
Comment by John Hoare on 2011-09-15:
Please see my update, I am trying to run the joint_trajectory_action_controller.py file.
Comment by arebgun on 2011-09-15:
John, what files are you trying to run that don't have #! line? The two nodes that are designed to run as a script have that line (controller_manager.py and controller_spawner.py), all other modules are not supposed to be run standalone.