- https://www.ros.org/
- https://www.mathworks.com/products/ros.html
- https://www.mathworks.com/help/ros/ros-in-matlab.html
- https://niryo.com/docs/niryo-one/developer-tutorials/set-up-matlab/
Ho do I connect Niryo One with the output of a python file?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
I want to use the output of an extern python file to control the robot Niryo One. The python file is running live and outputs something. I want the Niryo One to make easy movements depending on this output (at the same time, so uploading a file is not possible. Has anyone an idea how to connect the tasks (maybe with Matlab)?
Thanks in advance.
댓글 수: 0
답변 (1개)
Venkat Siddarth Reddy
2024년 2월 19일
Hi Hannes,
I understand that you are trying to feed the output of python script to Niryo one robot so that, based on the information received, the robot can move accordingly.
To achieve this, you can setup a publisher-subscriber model, where python script would be the publisher and the MATLAB script, which is going to control the robot, will be the subscriber. In this way, whenever there is an output from the python script, you can send this information to MATLAB without any request from MATLAB to python.
You can use ROS toolbox to setup up this publisher subscriber model with the Niryo one robot.
To learn more about ROS, ROS toolbox, ROS communication and the setup of Niryo one with MATLAB, refer to the following documentation:
I hope it helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!