Comments (6)
Thanks Antoine, it is needed by others. Please do implement that. ;)
There have been attempts to implement this feature in the past, but IIRC they ended up being unsuccessful.
How are you planning to implement that exactly? Are you perhaps going to add an environment variable specifying the look up paths, or is it going to be a GUI element where the user can specify the look up path manually? I think both approaches make sense.
from gui_tool.
I am not sure of the best way to implement it. I am not very familiar with (Py)Qt, so I think an environment variable would probably be the easiest for me, but not the most user friendly.
Also do you think having it in the bus monitor is enough or is there any other place where it could be useful ?
from gui_tool.
environment variable would probably be the easiest for me, but not the most user friendly.
Fine. Do you think it makes sense to implement that on the level of PyUAVCAN? We have a line here where the default DSDL definitions are loaded: https://github.com/UAVCAN/pyuavcan/blob/master/uavcan/__init__.py#L183. We could extend that code so that it queries the environment variable and loads DSDL from the locations specified in the variable.
Also do you think having it in the bus monitor is enough or is there any other place where it could be useful ?
Having it only in the bus monitor is definitely not enough. There are other parts of the application, such as the plotter, the subscriber tool, and the console, where the user may need access to the custom definitions. Implementing the support for environment variable on the level of PyUAVCAN will take care of that.
from gui_tool.
I have just discovered an undocumented feature in PyUAVCAN. Have a look:
paths = [os.path.join(dsdl_path, "uavcan")] + paths
custom_path = os.path.join(os.path.expanduser("~"), "uavcan_vendor_specific_types")
if os.path.isdir(custom_path):
paths += [f for f in [os.path.join(custom_path, f) for f in os.listdir(custom_path)]
if os.path.isdir(f)]
Missing documentation entries have been added to the GUI Tool and PyUAVCAN docs.
That said, we still very much want the capability to point the location where to load the custom DSDL from via GUI.
from gui_tool.
Interesting. It should be good enough for my application, thanks!
from gui_tool.
Solved in #27
from gui_tool.
Related Issues (20)
- Integrate Sentry
- Plotter time axis issue HOT 7
- CAN serial ports are renamed to "n/a" (by Qt?!) HOT 2
- Add some documentation about plotter widgets HOT 1
- Plotter HIDE-SHOW button HOT 1
- Plotter filter for uavcan.protocol.debug.KeyValue HOT 1
- Custom DSDL types are not shown in the data type selection menus HOT 3
- Launch GUI tool macOS HOT 2
- Dependency PyQt5 uses GPL3 license HOT 18
- PyQt5/QtCore.so: undefined symbol: “PySlice_AdjustIndices” HOT 4
- Vendor-specific data types are not accessible from the bus monitor and plotter processes
- Add support to select Socket can interfaces HOT 2
- Any new function update for this gui? HOT 1
- Creating panels with package that is not in gui tool python environment HOT 1
- Certificate error HOT 10
- Not compatible with KDE Breeze dark theme HOT 1
- uavcan V1 compatible ? HOT 1
- Error with switching to a new library name HOT 4
- Logger illumination HOT 2
- v0 REPO has moved... https://github.com/dronecan/gui_tool and is now called DroneCan! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gui_tool.