Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

awesomebytes
Copy link
Contributor

@awesomebytes awesomebytes commented Apr 2, 2023

First, @facontidavide let me apologize for doing this PR as I am the first one to see it is an ugly workaround, however, the functionality I think is great to have so...

Introducing the environment variables:
PLOTJUGGLER_ACCEPT_PREVIOUSLY_USED_STREAMING_PLUGIN=1 to skip the dialog 'Start the previously used streaming plugin?'
PLOTJUGGLER_CHOOSE_EMPTY_PLACEHOLDERS_ON_MISSING_TIMESERIES=1 to skip the dialog 'One or more timeseries in the layout haven't been loaded yet, What do you want to do?'

Note that there is a sibling PR in plotjuggler-ros-plugins (PlotJuggler/plotjuggler-ros-plugins#64) to skip the ROS topic selection dialog.
This is a workaround for #201 (passing commandline flags would require a lot of changes).

P.S.: I would have loved to pass it via commandline, but it required a lot of changes. And the plugin side would have needed many more to make it elegant. Maybe PLOTJUGGLER_ACCEPT_PREVIOUSLY_USED_STREAMING_PLUGIN could be implemented as a commandline plugin. Which, by the way, I did not understand what --start_streamer does... I thought it would do that, but I couldn't make it do anything. My bad.
P.S.2: I do not expect this to be merged due to the lack of elegance, specially being the main PlotJuggler repo. But maybe people will want it enough to build from source. (I may).

…er usage

Introduce the environment variables:
PLOTJUGGLER_ACCEPT_PREVIOUSLY_USED_STREAMING_PLUGIN=1 to skip the dialog 'Start the previously used streaming plugin?'
PLOTJUGGLER_CHOOSE_EMPTY_PLACEHOLDERS_ON_MISSING_TIMESERIES=1 to skip the dialog 'One or more timeseries in the layout haven't been loaded yet, What do you want to do?'
Note that there is a sibling commit in plotjuggler-ros-plugins to skip the ROS topic selection dialog.
This is a workaround for facontidavide#201 (passing commandline flags would require a lot of changes)
@facontidavide
Copy link
Owner

wouldn't be easier to add this in Preferences?
In particular, PLOTJUGGLER_CHOOSE_EMPTY_PLACEHOLDERS_ON_MISSING_TIMESERIES, should be a Preference

@facontidavide
Copy link
Owner

also, Windows CI is unhappy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants