Ask Your Question

How to change from Python to PyPy to compile ROS Node ?

asked 2016-09-09 04:41:15 -0500

siddian93 gravatar image

I have a package where the nodes are written in python using rospy and other python modules. But lately i realized that PyPy is a better alternative than the default python interpreter.

Basically, i want to change the interpreter such that when I run "rosrun pkg_name node_name", it will run using the PyPy interpreter instead of the Python Interpreter. I am guessing that this might be possible if I make some changes in the CMakeLists.txt file. Any help ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-12-19 12:13:26 -0500

ahendrix gravatar image

Given that significant parts of the ROS libraries use the cpython API, this would necessitate a significant rewrite to use pypy.

(See )

edit flag offensive delete link more

answered 2016-12-19 10:21:36 -0500

gre721 gravatar image

I have the same question. Does anyone now if it is possible to speed up python by using pypy with ROS?

Thank you so much!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2016-09-09 04:41:15 -0500

Seen: 834 times

Last updated: Dec 19 '16