RoboStack / jupyterlab-ros

Helper extensions for running ROS from within JupyterLab
BSD 3-Clause "New" or "Revised" License
62 stars 22 forks source link

Does it support real time controllers? #27

Open renanmb opened 3 years ago

renanmb commented 3 years ago

ROS itself does not support, that is why we run it on the top of a controller. Can we simulate the same architecture with the jupterlab ?

hbcarlos commented 3 years ago

Hi @renanmb!

I'm sorry, I'm lost in your question. Can you elaborate a little bit?

If you mean whether we can use controllers, there is a notebook example where we use the widget Controller to connect different controllers to a notebook and use them to move the robot.

https://github.com/RoboStack/jupyterlab-ros/blob/master/examples/Controller.ipynb

renanmb commented 3 years ago

Sorry for not elaborating:

https://docs.ros.org/en/foxy/Tutorials/Real-Time-Programming.html

This is the issue, I want to simulate examples that require real-time. I like jupyter specially for teaching. But currently havent found a solution to real-time programming and ROS specially for a cloud platform. For example, ROS academy does not have this capability yet.

hbcarlos commented 3 years ago

From what I have read on that link, you are talking about a system that fits the various constraints of the real-time robotics application. That has nothing to do with the editor (in this case, JupyterLab); it is related to the OS and the ROS version you use.

If that's what you are asking, this extension doesn’t support real-time controllers since, as explained in the link you sent, you need ROS2, which this extension doesn’t support. There is already an issue: https://github.com/RoboStack/jupyterlab-ros/issues/4

If what you are looking for is an editor with Real-Time collaboration to work on the same document multiple users simultaneously, JupyterLab supports Real-Time collaboration, and even though I haven't had time to update the extension to work with JupyterLab v3.1, I think it should work.

I hope this clarifies your doubts. I’m a bit lost on what you are asking. If you have more questions, do not hesitate to ask!