mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
End-to-end exercise of the micro-ROS stack on NuttX: calls microros_transport_init() to register the configured backend, brings up rclc_support / node / publisher, publishes 30 std_msgs/Int32 messages on /nuttx_pub at 1 Hz, then tears the stack down cleanly. The example's Make.defs adds $(APPDIR)/system/microros/transport to its own CFLAGS rather than the system/microros Make.defs, so the transport-glue header path is not pushed into the global search path for unrelated apps. Serves as the smoke test for the transport layer and as a template for downstream publisher apps. Signed-off-by: Arjav Patel <arjav1528@gmail.com>
32 lines
1.3 KiB
Makefile
32 lines
1.3 KiB
Makefile
############################################################################
|
|
# apps/examples/microros_pub/Makefile
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership. The
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance with the
|
|
# License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
############################################################################
|
|
|
|
include $(APPDIR)/Make.defs
|
|
|
|
PROGNAME = $(CONFIG_EXAMPLES_MICROROS_PUB_PROGNAME)
|
|
PRIORITY = $(CONFIG_EXAMPLES_MICROROS_PUB_PRIORITY)
|
|
STACKSIZE = $(CONFIG_EXAMPLES_MICROROS_PUB_STACKSIZE)
|
|
MODULE = $(CONFIG_EXAMPLES_MICROROS_PUB)
|
|
|
|
MAINSRC = microros_pub_main.c
|
|
|
|
include $(APPDIR)/Application.mk
|