mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 07:38:28 -04:00
0905ffa438
* Use clang to verify no unused files * Add a topic table to prepare for code generating interfaces * Generated IDL's to to a generated directory in build * Use black to format python files * Populate a ROS time maessage with Linux epoch time for ROS time * Add workarounds for PoseStamped and TwistStamped with manual mods to IDL Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com> Co-authored-by: Rhys Mainwaring <rhys.mainwaring@me.com> Co-authored-by: Arsh Pratap <arshpratapofficial@gmail.com> Co-authored-by: Andrew Tridgell <andrew@tridgell.net> Co-authored-by: Russ Webber <russ@rw.id.au> Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
21 lines
766 B
C
21 lines
766 B
C
// #include "Generated/Time.h" // might change to brackets for include path
|
|
|
|
#include "AP_DDS_Generic_Fn_T.h"
|
|
|
|
// Code generated table based on the enabled topics.
|
|
// Mavgen is using python, loops are not readable.
|
|
// Can use jinja to template (like Flask)
|
|
|
|
|
|
const struct AP_DDS_Client::Topic_table AP_DDS_Client::topics[] = {
|
|
{
|
|
.topic_id = 0x01,
|
|
.pub_id = 0x01,
|
|
.topic_profile_label = "time__t",
|
|
.dw_profile_label = "time__dw",
|
|
.serialize = Generic_serialize_topic_fn_t(&builtin_interfaces_msg_Time_serialize_topic),
|
|
.deserialize = Generic_deserialize_topic_fn_t(&builtin_interfaces_msg_Time_deserialize_topic),
|
|
.size_of = Generic_size_of_topic_fn_t(&builtin_interfaces_msg_Time_size_of_topic),
|
|
},
|
|
};
|