ros_tutorials icon indicating copy to clipboard operation
ros_tutorials copied to clipboard

turtlesim without graphical frontend

Open lepalom opened this issue 2 years ago • 2 comments

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?

lepalom avatar Mar 23 '22 18:03 lepalom

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.

audrow avatar Mar 23 '22 23:03 audrow

@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 .

lepalom avatar Mar 24 '22 21:03 lepalom