Skip to content

Commit

Permalink
refactor(time_utils): prefix package and namespace with autoware (aut…
Browse files Browse the repository at this point in the history
…owarefoundation#9173)

* refactor(time_utils): prefix package and namespace with autoware

Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>

* refactor(time_utils): prefix package and namespace with autoware

Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
esteve and pre-commit-ci[bot] authored Oct 31, 2024
1 parent d8c0e83 commit dcdb139
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ common/autoware_polar_grid/** yukihiro.saito@tier4.jp
common/autoware_signal_processing/** ali.boyali@tier4.jp fumiya.watanabe@tier4.jp kyoichi.sugahara@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
common/autoware_test_utils/** kyoichi.sugahara@tier4.jp mamoru.sobue@tier4.jp takamasa.horibe@tier4.jp zulfaqar.azmi@tier4.jp
common/autoware_testing/** adam.dabrowski@robotec.ai satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
common/autoware_time_utils/** christopherj.ho@gmail.com shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
common/autoware_universe_utils/** mamoru.sobue@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
common/autoware_vehicle_info_utils/** mamoru.sobue@tier4.jp shumpei.wakabayashi@tier4.jp taiki.tanaka@tier4.jp tomoya.kimura@tier4.jp
common/bag_time_manager_rviz_plugin/** taiki.tanaka@tier4.jp
Expand All @@ -38,7 +39,6 @@ common/tier4_state_rviz_plugin/** hiroki.ota@tier4.jp isamu.takagi@tier4.jp khal
common/tier4_system_rviz_plugin/** koji.minoda@tier4.jp
common/tier4_traffic_light_rviz_plugin/** satoshi.ota@tier4.jp
common/tier4_vehicle_rviz_plugin/** yukihiro.saito@tier4.jp
common/time_utils/** christopherj.ho@gmail.com shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
common/traffic_light_recognition_marker_publisher/** shumpei.wakabayashi@tier4.jp takeshi.miura@tier4.jp tomoya.kimura@tier4.jp
common/traffic_light_utils/** kotaro.uetake@tier4.jp satoshi.ota@tier4.jp shunsuke.miura@tier4.jp
common/tvm_utility/** ambroise.vincent@arm.com xinyu.wang@tier4.jp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.14)
project(time_utils)
project(autoware_time_utils)

find_package(autoware_cmake REQUIRED)
autoware_package()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
//
// Co-developed by Tier IV, Inc. and Apex.AI, Inc.

#ifndef TIME_UTILS__STOPWATCH_HPP_
#define TIME_UTILS__STOPWATCH_HPP_
#ifndef AUTOWARE__TIME_UTILS__STOPWATCH_HPP_
#define AUTOWARE__TIME_UTILS__STOPWATCH_HPP_

#include <time_utils/visibility_control.hpp>
#include <autoware/time_utils/visibility_control.hpp>

#include <chrono>
#include <type_traits>
Expand All @@ -26,7 +26,7 @@ namespace autoware
{
namespace common
{
namespace time_utils
namespace autoware::time_utils
{

namespace detail
Expand Down Expand Up @@ -81,8 +81,8 @@ class TIME_UTILS_PUBLIC Stopwatch
TimePoint m_start{Clock::now()};
};

} // namespace time_utils
} // namespace autoware::time_utils
} // namespace common
} // namespace autoware

#endif // TIME_UTILS__STOPWATCH_HPP_
#endif // AUTOWARE__TIME_UTILS__STOPWATCH_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
// limitations under the License.
//
// Co-developed by Tier IV, Inc. and Apex.AI, Inc.
#ifndef TIME_UTILS__TIME_UTILS_HPP_
#define TIME_UTILS__TIME_UTILS_HPP_
#ifndef AUTOWARE__TIME_UTILS__TIME_UTILS_HPP_
#define AUTOWARE__TIME_UTILS__TIME_UTILS_HPP_

#include <autoware/time_utils/visibility_control.hpp>
#include <builtin_interfaces/msg/duration.hpp>
#include <builtin_interfaces/msg/time.hpp>
#include <time_utils/visibility_control.hpp>

#include <chrono>

namespace time_utils
namespace autoware::time_utils
{
/// Standard interpolation
TIME_UTILS_PUBLIC std::chrono::nanoseconds interpolate(
std::chrono::nanoseconds a, std::chrono::nanoseconds b, float t) noexcept;
} // namespace time_utils
} // namespace autoware::time_utils

#endif // TIME_UTILS__TIME_UTILS_HPP_
#endif // AUTOWARE__TIME_UTILS__TIME_UTILS_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef TIME_UTILS__VISIBILITY_CONTROL_HPP_
#define TIME_UTILS__VISIBILITY_CONTROL_HPP_
#ifndef AUTOWARE__TIME_UTILS__VISIBILITY_CONTROL_HPP_
#define AUTOWARE__TIME_UTILS__VISIBILITY_CONTROL_HPP_

#if defined(__WIN32)
#if defined(TIME_UTILS_BUILDING_DLL) || defined(TIME_UTILS_EXPORTS)
Expand All @@ -33,4 +33,4 @@
#error "Unsupported Build Configuration"
#endif // defined(_WINDOWS)

#endif // TIME_UTILS__VISIBILITY_CONTROL_HPP_
#endif // AUTOWARE__TIME_UTILS__VISIBILITY_CONTROL_HPP_
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>time_utils</name>
<name>autoware_time_utils</name>
<version>1.0.0</version>
<description>Simple conversion methods to/from std::chrono to simplify algorithm development</description>
<maintainer email="christopherj.ho@gmail.com">Christopher Ho</maintainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
// 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 "time_utils/time_utils.hpp"
#include "autoware/time_utils/time_utils.hpp"

#include <algorithm>
#include <limits>
#include <stdexcept>

namespace time_utils
namespace autoware::time_utils
{
////////////////////////////////////////////////////////////////////////////////
std::chrono::nanoseconds interpolate(
Expand All @@ -30,4 +30,4 @@ std::chrono::nanoseconds interpolate(
return a + del_;
}

} // namespace time_utils
} // namespace autoware::time_utils

0 comments on commit dcdb139

Please sign in to comment.