-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from mROS-base/v0.4.0
bump v0.4.0 with newer embeddedRTPS
- Loading branch information
Showing
7 changed files
with
87 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
# Copyright (c) 2021 smorita_emb | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cmake_minimum_required(VERSION 3.16.3) | ||
|
||
project(mros2) | ||
|
||
target_include_directories(mros2 | ||
BEFORE INTERFACE | ||
embeddedRTPS/thirdparty/Micro-CDR/include | ||
embeddedRTPS/include | ||
include | ||
mros2_msgs | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/thirdparty/Micro-CDR/include | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/include | ||
${PROJECT_SOURCE_DIR}/include | ||
${PROJECT_SOURCE_DIR}/mros2_msgs | ||
) | ||
|
||
target_sources(mros2 | ||
INTERFACE | ||
src/mros2.cpp | ||
embeddedRTPS/src/communication/UdpDriver.cpp | ||
embeddedRTPS/src/messages/MessageTypes.cpp | ||
embeddedRTPS/src/messages/MessageReceiver.cpp | ||
embeddedRTPS/src/discovery/TopicData.cpp | ||
embeddedRTPS/src/discovery/ParticipantProxyData.cpp | ||
embeddedRTPS/src/discovery/SEDPAgent.cpp | ||
embeddedRTPS/src/discovery/SPDPAgent.cpp | ||
embeddedRTPS/src/storages/HistoryCache.cpp | ||
embeddedRTPS/src/storages/SimpleHistoryCache.cpp | ||
embeddedRTPS/src/storages/PBufWrapper.cpp | ||
embeddedRTPS/src/ThreadPool.cpp | ||
embeddedRTPS/src/entities/Participant.cpp | ||
embeddedRTPS/src/entities/Domain.cpp | ||
embeddedRTPS/src/entities/StatelessReader.cpp | ||
embeddedRTPS/thirdparty/Micro-CDR/src/c/common.c | ||
embeddedRTPS/thirdparty/Micro-CDR/src/c/types/basic.c | ||
embeddedRTPS/thirdparty/Micro-CDR/src/c/types/string.c | ||
embeddedRTPS/thirdparty/Micro-CDR/src/c/types/sequence.c | ||
embeddedRTPS/thirdparty/Micro-CDR/src/c/types/array.c | ||
${PROJECT_SOURCE_DIR}/src/mros2.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/communication/UdpDriver.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/messages/MessageTypes.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/messages/MessageReceiver.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/discovery/TopicData.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/discovery/ParticipantProxyData.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/discovery/SEDPAgent.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/discovery/SPDPAgent.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/storages/PBufWrapper.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/ThreadPool.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/entities/Participant.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/entities/Domain.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/src/entities/StatelessReader.cpp | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/thirdparty/Micro-CDR/src/c/common.c | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/thirdparty/Micro-CDR/src/c/types/basic.c | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/thirdparty/Micro-CDR/src/c/types/string.c | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/thirdparty/Micro-CDR/src/c/types/sequence.c | ||
${PROJECT_SOURCE_DIR}/embeddedRTPS/thirdparty/Micro-CDR/src/c/types/array.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule embeddedRTPS
updated
62 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Conversion of FreeRTOS's definitions/types/functions in embeddedRTPS | ||
* | ||
* Copyright (c) 2022 mROS-base | ||
* | ||
* Licensed 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. | ||
*/ | ||
|
||
#ifndef RTPS_CONVERSION_H | ||
#define RTPS_CONVERSION_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
#include <stdint.h> | ||
typedef uint32_t TickType_t; | ||
#define configTICK_RATE_HZ ((TickType_t)1000) | ||
|
||
#ifndef pdMS_TO_TICKS | ||
#define pdMS_TO_TICKS(xTimeInMs) ((TickType_t)(((TickType_t)(xTimeInMs) * (TickType_t)configTICK_RATE_HZ) / (TickType_t)1000)) | ||
#endif | ||
|
||
#define xTaskGetTickCount osKernelGetTickCount | ||
#define vTaskDelay osDelay | ||
|
||
void sys_msleep(unsigned int ms); | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* RTPS_CONVERSION_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters