ros / ros_tutorials

Code used in tutorials found on ROS wiki
http://wiki.ros.org/ros_tutorials
805 stars 540 forks source link

turtlesim without graphical frontend #138

Open lepalom opened 2 years ago

lepalom commented 2 years ago

I have not found it, but I would like to ask if it would be possible to execute turtlesim_node without graphical frontend.

It sounds strange and let me explain a bit more. I'm giving a ROS course and I would like to review the exercises of my students in a CI script, and AFAIK I cannot execute (or have sense) turtlesim_node without graphical (or can I?). So, just to test if a service or topic is created in a turtlesim client I need to execute it. If I could run turtlesim_node in some text mode, or just some kind of blind mode, I could then run some test to check it.

Is it possible?

audrow commented 2 years ago

I'm not sure. It seems like the turtlesim visualization is pretty tightly coupled with the program logic. I would bet that you can comment out the visualization without too much effort.

It might be nice to add a parameter to turtlesim that can disable visualization. I'm going to mark this as help wanted. @lepalom, if you'd like to make a PR for this, feel free to @ me for a review.

lepalom commented 2 years ago

@audrow I have checked the sources and I guess that it can be possible. I cannot do it now, but maybe in summer I can .