PlotJuggler / plotjuggler-ros-plugins

Many PlotJuggler plugins for ROS and ROS2.
GNU Affero General Public License v3.0
106 stars 44 forks source link

Introduce environment variables to skip dialogs to automate PlotJuggler usage #64

Closed awesomebytes closed 7 months ago

awesomebytes commented 1 year ago

Introducing the environment variable: PLOTJUGGLER_ACCEPT_SELECT_ROS_TOPIC_DIALOG=1 to skip the ROS topic selection dialog. Note that there is a sibling PR (https://github.com/facontidavide/PlotJuggler/pull/811) in PlotJuggler to skip other dialogs.

This is a workaround for https://github.com/facontidavide/PlotJuggler/issues/201 (passing commandline flags would require a lot of changes).

P.S.: I would have loved to pass it via commandline, but from the plugin side, I am not sure how I would pass down the flags all the way to the plugin in an elegant way. Using environment variables is not great, but it works. P.S.2: I do not expect this to be merged due to the lack of elegance. But maybe people will want it enough to build from source. (I may).