forked from autowarefoundation/autoware
-
Notifications
You must be signed in to change notification settings - Fork 13
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 #228 from usdot-fhwa-stol/release/cabin
Release/cabin
- Loading branch information
Showing
16 changed files
with
307 additions
and
92 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
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,6 +1,49 @@ | ||
.git* | ||
ros/build* | ||
ros/devel* | ||
ros/install* | ||
ros/log* | ||
ros/coverage_* | ||
# Added colcon build folders | ||
# Kyle Rush - 10/30/2019 | ||
|
||
# GNU global tags | ||
GTAGS | ||
GRTAGS | ||
GSYMS | ||
GPATH | ||
|
||
# Python byte-compile file | ||
__pycache__/ | ||
*.py[co] | ||
|
||
# editor backup files | ||
*~ | ||
\#*\# | ||
|
||
# backup files | ||
*.bak | ||
|
||
# Eclipse | ||
.cproject | ||
.project | ||
.pydevproject | ||
.settings/ | ||
|
||
# Visual Studio Code | ||
**/.vscode/ | ||
|
||
# CLion | ||
.idea/ | ||
cmake-build-debug/ | ||
|
||
# clang-format | ||
.clang-format | ||
|
||
# ROSBag files | ||
*.bag | ||
|
||
# Autoware Resources | ||
*.pcd | ||
*.bag | ||
*.csv | ||
|
||
/.metadata/ | ||
build/ | ||
install/ | ||
log/ | ||
.git/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
cmake_minimum_required(VERSION 3.5) | ||
project(autoware_build_flags) | ||
|
||
find_package(catkin REQUIRED) | ||
|
||
catkin_package(CFG_EXTRAS autoware_build_flags-extras.cmake) | ||
find_package(ros_environment REQUIRED) | ||
set(ROS_VERSION $ENV{ROS_VERSION}) | ||
|
||
if(${ROS_VERSION} EQUAL 1) | ||
|
||
find_package(catkin REQUIRED) | ||
catkin_package(CFG_EXTRAS autoware_build_flags-extras.cmake) | ||
|
||
else() #ROS2 | ||
|
||
find_package(ament_cmake_auto REQUIRED) | ||
ament_auto_find_build_dependencies() | ||
ament_auto_package() | ||
|
||
endif() |
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,15 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<package format="3"> | ||
<name>autoware_build_flags</name> | ||
<version>1.12.0</version> | ||
<version>1.2.0</version> | ||
<description>Common build flags for Autoware.</description> | ||
|
||
<author email="[email protected]">Esteve Fernandez</author> | ||
<maintainer email="[email protected]">Esteve Fernandez</maintainer> | ||
|
||
<license>Apache 2</license> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
<buildtool_depend condition="$ROS_VERSION == 1">catkin</buildtool_depend> | ||
<buildtool_depend condition="$ROS_VERSION == 2">ament_cmake_auto</buildtool_depend> | ||
|
||
<export> | ||
<architecture_independent/> | ||
|
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
34 changes: 34 additions & 0 deletions
34
common/lanelet2_extension/include/lanelet2_extension/time/TimeConversion.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
/* | ||
* Copyright (C) 2022 LEIDOS. | ||
* | ||
* 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. | ||
*/ | ||
#include <boost/date_time/posix_time/posix_time.hpp> | ||
|
||
namespace lanelet | ||
{ | ||
|
||
namespace time { | ||
|
||
double toSec(const boost::posix_time::time_duration& duration); | ||
|
||
double toSec(const boost::posix_time::ptime& time); | ||
|
||
boost::posix_time::ptime timeFromSec(double sec); | ||
|
||
boost::posix_time::time_duration durationFromSec(double sec); | ||
|
||
} // namespace time | ||
|
||
} // namespace lanelet |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
/* | ||
* Copyright (C) 2022 LEIDOS. | ||
* | ||
* 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. | ||
*/ | ||
#include <boost/date_time/posix_time/posix_time.hpp> | ||
#include <lanelet2_extension/time/TimeConversion.h> | ||
|
||
namespace lanelet | ||
{ | ||
|
||
namespace time { | ||
|
||
double toSec(const boost::posix_time::time_duration& duration) { | ||
if (duration.is_special()) { | ||
throw std::invalid_argument("Cannot convert special duration to seconds"); | ||
} | ||
return duration.total_microseconds() / 1000000.0; | ||
} | ||
|
||
double toSec(const boost::posix_time::ptime& time) { | ||
return toSec(time - boost::posix_time::from_time_t(0)); | ||
} | ||
|
||
boost::posix_time::ptime timeFromSec(double sec) { | ||
return boost::posix_time::from_time_t(0) + boost::posix_time::microseconds(static_cast<long>(sec * 1000000L)); | ||
} | ||
|
||
boost::posix_time::time_duration durationFromSec(double sec) { | ||
return boost::posix_time::microseconds(static_cast<long>(sec * 1000000L)); | ||
} | ||
|
||
} // namespace time | ||
|
||
} // namespace lanelet |
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
Oops, something went wrong.