how to use python compiled file instead of source code
Hi, i want to launch python node but is there any way i can use .pyc file instead of source .py file?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
I compiled my project with compileall
File mentioned in node launch should have execution permission (chmod +x)
Renamed module files in ____pycache____ from ModuleName.cpython-37.pyc to ModuleName.pyc (otherwise it throws Import error)
Changed type to .pyc file in launch file:
<node name="rest_api" pkg="hspr" type="rest.cpython-37.pyc" output="screen">
Then it works OK, even after original python files deleted
Asked: 2020-06-25 02:49:48 -0600
Seen: 579 times
Last updated: Jun 16 '21
Do I need to know any specific computer language or framework to use ROS?
Is anybody in ROS community using PySide?
Is it possible to have memory mapped messages in ROS?
Any good examples of using dynamic_reconfigure for a python node?
is there a python equivalent of fromROSMsg/toROSMsg (pcl stack)
How to contributing python versions of tutorials? e.g. Tutorials for arm_navigation
How to recieve an array over Publisher and Subscriber? (Python)
Best toolchain for recording kinect data and converting to pointcloud offline?