Anvel GUI programming



  • How would one get started on a plugin that added a new display panel for a custom sensor or status display? I was thinking of something like the Camera Sensor View. Part of the question is how you would create the panel and access the low level drawing primatives, the other is how you would register the functionality so that a user can activate the panel from the GUI.



  • @legowik said in Anvel GUI programming:

    How would one get started on a plugin that added a new display panel for a custom sensor or status display? I was thinking of something like the Camera Sensor View. Part of the question is how you would create the panel and access the low level drawing primatives, the other is how you would register the functionality so that a user can activate the panel from the GUI.

    Hey legowik,

    Thanks for your question. The answer isn't very straighforward - there are a couple of ways you can approach this problem depending on your level of C++ programming knowledge and the type of sensor you're trying to create. ANVEL currently has built-in hooks for camera, lidar, and similar types of sensors that will create the corresponding view window "automagically".

    Thus, if you want to create a new sensor type with GUI, you'll have to create a new corresponding view window listener as well. This is a pretty complicated task that requires deep knowledge of the ANVEL codebase.

    Perhaps the better way to approach this problem is to create your sensor plugin, use the ANVEL API to query the sensor output properties, and then build the GUI to visualize those outputs in whatever language you're comfortable using. Since ANVEL has built-in Python support and uses a wxWidgets GUI, we're currently experimenting internally with wxPython to do these kind of visualizations.

    Our plan is to have an example of this wxWidgets functionality for an upcoming release, and we'll plan to add an example of creating a view window to the sample sensor code in the future.

    Regards,
    The ANVEL Team


Log in to reply
 

Looks like your connection to ANVEL Forum was lost, please wait while we try to reconnect.