45 Commits

Author SHA1 Message Date
Beat Küng
8a2b310b83 topic_listener: avoid code generation, use existing metadata at runtime
This reduces flash size for v5 by ~110KB, the topic listener now only adds
about 1.2KB.
2021-10-20 08:10:05 +02:00
Beat Küng
4c73ac3805 uorb: use single byte for internal types in o_fields metadata
Reduces flash usage by ~9KB.
2021-10-20 08:10:05 +02:00
TSC21
c478e2985a microRTPS: simplify the attribution of the RTPS IDs by makiing it automatic
1. The RTPS IDs are now automatically assigned to the topics
2. Only the topics that get defined to be sent or received in the urtps_bridge_topics.yaml (renamed, since now it doesn't contain IDs) receive the IDs
3. Any addition or removal on the urtps_bridge_topics.yaml file might update the topic IDs - this will require that the agent and the client ID list has to be in sync. This will further require a robustification of the way we check the IDs and the message definitions when starting the bridge.
2021-08-12 08:44:53 +02:00
David Sidrane
64db89ab20 px_generate_uorb_topic_helper: Use inttypes 2021-06-16 17:07:47 +02:00
TSC21
1d1fbdb1d3 microRTPS: remove byte ordering for nested types 2020-11-28 21:26:50 +01:00
Daniel Agar
cf26f24387
msg: add quaternion euler angle pretty print 2020-09-28 10:13:43 -04:00
Daniel Agar
09666c324f msg: add mag device id pretty print decode 2020-09-04 10:48:26 -04:00
Daniel Agar
459abcd035 uORB: print individual bits of fields
- applies to messages with names containing "flags" or "bits" and unsigned fixed width integer type (uint8, uint16, uint32)
2020-07-19 12:25:15 -04:00
Daniel Agar
e34bdb4be9
move IMU integration out of drivers to sensors hub to handle accel/gyro sync
- IMU integration move from drivers (PX4Accelerometer/PX4Gyroscope) to sensors/vehicle_imu 
 - sensors: voted_sensors_update now consumes vehicle_imu
 - delete sensor_accel_integrated, sensor_gyro_integrated
 - merge sensor_accel_status/sensor_gyro_status into vehicle_imu_status
 - sensors status output minor improvements (ordering, whitespace, show selected sensor device id and instance)
2020-05-30 11:07:54 -04:00
Daniel Agar
c5cbc7725d msg: timestamp_sample print elapsed from timestamp 2020-05-11 12:58:52 -04:00
TSC21
2be7ca08ba msg: generation and parsing scripts: add Python3 support 2020-01-13 21:48:35 +00:00
TSC21
2e9a4d89ee msg: remove gencpp and genmsh submodules; remove gencpp imports 2020-01-13 21:48:35 +00:00
Daniel Agar
0dc8119c89 listener print strings 2019-07-30 10:47:10 -04:00
TSC21
3d9f83a4f2 microRTPS_bridge: structural change to make possible to generate pub/sub code for multi-topics/aliased msgs 2019-07-26 15:05:54 +02:00
Daniel Agar
32a89a1834 rename empy templates (*.template) to proper file extension (.em) 2019-06-10 10:42:00 -07:00
TSC21
50e46f89b6 move get_absolute_path() back to generate_microRTPS_bridge.py 2018-10-08 10:58:45 +02:00
TSC21
1e29b00860 improve verification of RTPS ID's uniqueness 2018-10-08 10:58:45 +02:00
TSC21
a7580b14ba update IDL template so it can process builtin types 2018-10-08 10:58:45 +02:00
TSC21
b49b9bad2f change serialization map type for int8_t 2018-10-08 10:58:45 +02:00
TSC21
d17d5d52bf move parse_yaml_msg_id_file() to uorb_rtps_classifier.py 2018-10-08 10:58:45 +02:00
TSC21
a9771f13d1 rtps: add uorb_rtps_classifier.py iot classify RTPS topics as "send", "receive" or "ignore" 2018-10-08 10:58:45 +02:00
TSC21
2250946eaa add verification for the ID uniqueness; give list of available ID's 2018-09-26 12:01:58 +02:00
TSC21
fc980493d7 px_generate_uorb_topic_helper: add a check for the existence of the RTPS ID for each uORB topic 2018-09-26 12:01:58 +02:00
TSC21
28521ea77c move parse_yaml_msg_id_file() definition to generate_microRTPS_bridge.py 2018-09-24 19:28:40 +02:00
TSC21
0227ea3835 msg: RTPS: pass RTPS ID msg definition file as an EmPy global var 2018-09-24 19:28:40 +02:00
TSC21
d708c965ec px_generate_uorb_topic_helper.py: beautify 2018-09-21 15:55:17 +02:00
TSC21
cafc2f5e61 add Copyright notice 2018-09-21 15:55:17 +02:00
TSC21
8efb2bbe10 improve ImportError verbosity for yaml 2018-09-21 15:55:17 +02:00
TSC21
f43c581a8c add errno import for fixing script running over python 3 or above 2018-09-21 15:55:17 +02:00
TSC21
bb835382dd use a yaml file description instead of json; minor improvements and cleanup 2018-09-21 15:55:17 +02:00
TSC21
a323073456 load RTPS msg IDs from a JSON file and remove uorb_rtps_message_ids.py 2018-09-21 15:55:17 +02:00
Daniel Agar
55abaaf6ab uORB printf map extend floating point decimal places 2018-09-02 21:13:10 +02:00
Daniel Agar
af6098b9ea uORB print_message add device_id pretty print 2018-09-02 21:13:10 +02:00
TSC21
c10e851251 replace printf with PX4_INFO_RAW 2018-08-09 13:40:48 +02:00
TSC21
a1ac34d3e7 reformat how the passed time is printed 2018-08-09 13:40:48 +02:00
TSC21
cac84e1424 px_generate_uorb_topic_helper: do not account with the timestamp, so the struct size matches 2018-08-09 13:40:48 +02:00
Beat Küng
f1dc8f8f48 listener: use PX4_INFO_RAW instead of printf
Ensures that clients will get the output of the listener.
2018-08-08 21:09:39 +02:00
TSC21
ca42483794 update msgs fields from camelCase to snake_case so rosidl_generate_interfaces() is able to generate code for ROS IDL files 2018-07-30 21:40:28 +02:00
Daniel Agar
c199ca5193 msg generated print support boolean 2018-07-15 20:33:16 +02:00
Nuno Marques
83fd5a5fd1 Update micro-CDR to latest and fix API usage (#9651)
* uorb_microcdr: msg.cpp.template: update API for how the buffer length is obtained
* micrortps_bridge: CMakeLists: temporarily deactivate check endianness option
2018-07-12 18:04:15 -04:00
Daniel Agar
416feea9e4 uORB print_message cleanup
- indent field print with tabs instead of spaces
 - print a newline before printing a nested field
 - cmake add generator dependencies
2018-03-28 09:15:41 -04:00
Daniel Agar
e76a7e48c8 generate uorb topic helper ignore _padding properly 2018-03-28 09:15:41 -04:00
Daniel Agar
a98c7cf5c8 generate uorb topic helper rename px4_printf to print_field 2018-03-28 09:15:41 -04:00
Daniel Agar
3db17a04fc uORB generate message print functions 2018-03-28 09:15:41 -04:00
Daniel Agar
48f1e3ed1c uORB generation move to msg/ 2017-09-29 10:13:51 -04:00