Julian Oes
07d172dc9c
tools: present nicer error for missing packaging
...
This makes the error more user friendly and suggests what to do to fix
it.
5 years ago
TSC21
c4f8f39ca9
microRTPS: templates: use full version comparison when checking for version 1.7
5 years ago
TSC21
1ea5280299
microRTPS: use package.version to compare FastRTPS lib versions
5 years ago
TSC21
7612879ffd
microRTPS: use FastRTPS version instead of FastRTPSGen version to generate conditional code
5 years ago
Daniel Agar
9585055e9e
uORB: add bitset for faster orb_exists check and remove uORB::Subscription lazy subscribe hack/optimization
...
- add PX4 bitset and atomic_bitset with testing
- add uORB::Subscription constructor to take ORB_ID enum
- move orb test messages into msg/
5 years ago
Julian Oes
9a96ca14be
Tools: make Python import error more readable
...
The problem with printing the exception was that starting with
Python 3.6 the ImportError is yet another (sub) exception called
ModuleNotFoundError which can't be printed as a string and then triggers
another exception:
```
Traceback (most recent call last):
File "/home/julianoes/src/Firmware/Tools/serial/generate_config.py", line 11, in <module>
import jinja2
ModuleNotFoundError: No module named 'jinja2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julianoes/src/Firmware/Tools/serial/generate_config.py", line 13, in <module>
print("Failed to import jinja2: " + e)
TypeError: must be str, not ModuleNotFoundError
```
As per @bkueng's suggestion the easiest is to cast the exception to str
and that way prevent the second exception.
5 years ago
Julian Oes
0a2b42b25d
msg/tools: improve Python dependency note
...
We now check individually for empy and genmsg.
Also, my recommendation is to use pip3 as a user to install the
dependencies as this is least intrusive and should work on all
platforms.
5 years ago
TSC21
0cb1b250e9
px_generate_uorb_topic_files.py: update import error recommendation message
5 years ago
TSC21
2be7ca08ba
msg: generation and parsing scripts: add Python3 support
5 years ago
Julian Oes
4329de9e3b
Use Python 3 everywhere
...
Since Python 2 is retired in 4 months, we should move everything to 3.
5 years ago
TSC21
2e9a4d89ee
msg: remove gencpp and genmsh submodules; remove gencpp imports
5 years ago
Julian Oes
d3da4a92e0
msg: don't implement print_message for fmu-v2
...
This saves about 3.4k of flash for fmu-v2.
5 years ago
TSC21
e7b0384f05
fix FastRTPSGen version verification
5 years ago
TSC21
1970ef875f
micrortps bridge: clean templates; add backwards compatibility; add ROS2 compatibility
5 years ago
TSC21
278d2fd21f
first push on supporting ROS2 Dashing and IDL 4.2
5 years ago
TSC21
47f5b23419
rtps: generation scripts: make indexing of lists possible in both Python 2 and 3
6 years ago
TSC21
11a28665b7
px_generate_uorb_topic_files: cleanup uneeded conditions
6 years ago
TSC21
3d9f83a4f2
microRTPS_bridge: structural change to make possible to generate pub/sub code for multi-topics/aliased msgs
6 years ago
Daniel Agar
32a89a1834
rename empy templates (*.template) to proper file extension (.em)
6 years ago
TSC21
1cc3d95ff7
msg: templates: add 'ids' to the Context documentation
7 years ago
TSC21
0227ea3835
msg: RTPS: pass RTPS ID msg definition file as an EmPy global var
7 years ago
TSC21
4137517d12
px_generate_uorb_topic_files.py: beautify
7 years ago
TSC21
9b028e4f6d
update copyright notice
7 years ago
TSC21
bb835382dd
use a yaml file description instead of json; minor improvements and cleanup
7 years ago
TSC21
943bfbf93f
generalize scripts for usage outside the PX4 Firmware dir and with other templates/packages
7 years ago
TSC21
7c7602873e
assert over the type of the 'timestamp' field
7 years ago
TSC21
c53c035ec6
px_generate_uorb_topic_files: add check and throw error if no timestamp field exists
7 years ago
Daniel Agar
48f1e3ed1c
uORB generation move to msg/
8 years ago
Vicente Monge
c5e2745a19
Fixes for manual bridge generation
...
Fix for some forgot .cxx extensions
Fix for 'print' python 2 3 compatibility
Fix for topic ID type change
8 years ago
Vicente Monge
c85039e413
Fixing rebase conflicts
8 years ago
mazahner
06d28b2635
Rework Includes during the uorb message generation
...
each CMakeFile that generates parameters should add its path to the msg_include_path
which will then be handled in the px_generate_uorb_topic_files.py
8 years ago
Beat Küng
79f2cd79d9
px_generate_uorb_topic_files.py: add multitopics to generate_topics_list_file_from_files method
9 years ago
Beat Küng
89a7e0cf87
uorb topics generator: add multi-topics to the list of all topics
...
topic names with '# TOPICS <name>' were previously not in orb_get_topics().
This means the logger could not find them.
Affects for example actuator_controls_0.
9 years ago
mazahner
73014acf97
Only Compile and create dependencies for the Messages specified in msg/CMakeLists.txt
...
this lets a user select what msgs should be compiled for his project
Care must be taken though, to compile all orb_topcis that are required by the Rest of the Code.
Otherwise many compile errors will occur.
This commits adds by default the ./msg include path to reference to other msgs.
if an exisiting msg is used in another msg.
9 years ago
Beat Küng
7f65e01d07
cmake: avoid GLOB for *.msg files and use an explicit .msg file enumeration
...
This makes sure that adding & removing of .msg files is handled properly
by the build system.
9 years ago
Beat Küng
6e7c605279
Tools/px_generate_uorb_topic*: combine the src & header generators into one script
9 years ago
Daniel Agar
76387b1693
uorb autogeneration
9 years ago
Daniel Agar
e8fd711a5c
uorb generate interally set required paths
10 years ago
James Goppert
1d6b31d196
Switch to cmake build system.
10 years ago
Lorenz Meier
9efc37a3ad
Fix topic generation logic for different board targets
10 years ago
Lorenz Meier
3c3abc078f
Topic generation: Fix compile error
10 years ago
Lorenz Meier
17471eab65
Topic generation: Accept non-existing output directory
10 years ago
Lorenz Meier
9b6259c64f
Header generator: Only get active for no output files or when output older than input
10 years ago
Ban Siesta
f73a942c05
Tools: don't try to generate messages for hidden files starting with a
...
dot.
10 years ago
Lorenz Meier
786e2ad9cd
uORB header generator: Fix typo in feedback text
10 years ago
Andrew Tridgell
4c8ac04877
PX4: better error msg in python uorb generation error
10 years ago
Andrew Tridgell
36870cf44b
Tools: improve python package error message
10 years ago
Thomas Gubler
775e35ceaf
fix syntax in uorb header generation script
...
This fixes syntax and indentation of a58d73b5d0
10 years ago
Lorenz Meier
a58d73b5d0
Add error message with installation instruction if empy is missing.
10 years ago
Lorenz Meier
515266c163
Update header generation script
10 years ago