Is it possible to change pyenv to a virtual machine running ROS?

2 views (last 30 days)
Hi,
I am running Matlab on windows and want to run python scripts from a virtual ubuntu machine with ROS installed.
So far I have been able to run a python script on the virtual machine through Matlab by rosdevice() and then running a system() command through the device. This is a possible solution, but it is really not ideal to run python files through a terminal which makes input arguments a nightmare. It is also difficultto end processes this way.
For some reason python runs from the Matlab pyenv, where ROS is not installed.
Also I don't really want to run the system commands, since I just want to use load a python script with py.importlib.import_module(module), so that I can get store the python output in Matlab.
Is there any way to make this communication any easier? Any help will be amazing

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!