PX4 ROS2 msg conformity and explicit topics

- .msg files are PascalCase
 - topics are still either per msg or explicitly listed in TOPICS
 - compatible structs are still generated (eg struct msg_s), but ROS2 style px4::msg::Msg is also available
This commit is contained in:
Daniel Agar
2022-01-21 09:32:30 -05:00
parent 7cb8ed3a1f
commit 56de0e27d8
395 changed files with 5601 additions and 1517 deletions
+2 -2
View File
@@ -32,9 +32,9 @@
############################################################################
# nuttx uses internal work queue currently
if (NOT "${PX4_PLATFORM}" MATCHES "nuttx")
if(NOT "${PX4_PLATFORM}" MATCHES "nuttx")
add_library(work_queue
add_library(work_queue STATIC
dq_addlast.c
dq_rem.c
dq_remfirst.c
+1 -25
View File
@@ -52,30 +52,6 @@
#include <px4_platform_common/posix.h>
#include "hrt_work.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Private Type Declarations
****************************************************************************/
/****************************************************************************
* Public Variables
****************************************************************************/
/****************************************************************************
* Private Variables
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Public Functions
****************************************************************************/
/****************************************************************************
* Name: hrt_work_queue
*
@@ -125,7 +101,7 @@ int hrt_work_queue(struct work_s *work, worker_t worker, void *arg, uint32_t del
dq_addlast((dq_entry_t *)work, &wqueue->q);
if (px4_getpid() != wqueue->pid) { /* only need to wake up if called from a different thread */
if (getpid() != wqueue->pid) { /* only need to wake up if called from a different thread */
#ifdef __PX4_QURT
px4_task_kill(wqueue->pid, SIGALRM); /* Wake up the worker thread */
#else
+2 -2
View File
@@ -96,7 +96,7 @@ static void _sighandler(int sig_num);
****************************************************************************/
static void _sighandler(int sig_num)
{
PX4_DEBUG("RECEIVED SIGNAL %d", sig_num);
//PX4_DEBUG("RECEIVED SIGNAL %d", sig_num);
}
/****************************************************************************
@@ -176,7 +176,7 @@ static void hrt_work_process()
hrt_work_unlock();
if (!worker) {
PX4_ERR("MESSED UP: worker = 0");
//PX4_ERR("MESSED UP: worker = 0");
} else {
worker(arg);
+1
View File
@@ -35,6 +35,7 @@
#include <stdio.h>
#include "work_lock.h"
#include <px4_platform_common/sem.h>
extern px4_sem_t _work_lock[];