Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for autoware_auto_xx_msgs #1454

Draft
wants to merge 85 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
6a9d298
Port VelocityReport message
kielczykowski-rai Jan 7, 2024
ac3898e
Delete unused vehicle_state_command and vehicle_control_command
kielczykowski-rai Jan 7, 2024
6dbbedb
Port TurnIndicatorsReport
kielczykowski-rai Jan 7, 2024
d3f0135
Port TurnIndicatorsCommand
kielczykowski-rai Jan 7, 2024
1b1ac5a
Port SteeringReport
kielczykowski-rai Jan 8, 2024
a65aede
Port GearReport
kielczykowski-rai Jan 8, 2024
c4a68d2
Port GearCommand
kielczykowski-rai Jan 8, 2024
6fdbc90
Port ControlModeReport
kielczykowski-rai Jan 8, 2024
6ebf21e
Adjust docs to autoware_auto_vehicle_msgs to autoware_vehicle_msgs port
kielczykowski-rai Jan 8, 2024
376072e
Port AutowareState
kielczykowski-rai Jan 8, 2024
7636e3c
Port PathWithLaneId
kielczykowski-rai Jan 8, 2024
af9bf3e
Finish porting autoware_auto_planning_msgs to autoware_planning_msgs
kielczykowski-rai Jan 8, 2024
3a9bd9b
FIX: replace old Trajectory message with tier4_autoware_msgs which is…
kielczykowski-rai Jan 8, 2024
4b92172
Port HADMapBin to LaneletMapBin
kielczykowski-rai Jan 8, 2024
6fffa05
Port AckermannControlCommand to Control
kielczykowski-rai Jan 9, 2024
735258a
Port TrafficSignalArray from autoware_auto_perception_msgs to autowar…
kielczykowski-rai Jan 24, 2024
d69a1e8
Update documentation
kielczykowski-rai Jan 24, 2024
2c03a14
PathWithLaneId: change autoware_msgs to tier4_planning_msgs
kielczykowski-rai Feb 29, 2024
3588c05
Concealer: Delete unused autoware_planning_msgs
kielczykowski-rai Feb 29, 2024
89f3b89
Port DetectedObjects and TrackedObjects
kielczykowski-rai May 13, 2024
6562e1e
Delete unused autoware_auto_system_msgs package
kielczykowski-rai May 13, 2024
4ca6258
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai May 20, 2024
9c8dd4e
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai May 21, 2024
70fc9e5
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai May 23, 2024
33675ea
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai May 27, 2024
27d0fcf
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jun 3, 2024
6e6efbd
feat(traffic_simulator): support TrafficLightGroupArray in TrafficLig…
HansRobo Jun 10, 2024
282817a
feat(traffic_simulator): support TrafficLightGroupArray in SimpleSens…
HansRobo Jun 10, 2024
8ad7666
chore: delete autoware_auto_msgs from dependencies
HansRobo Jun 10, 2024
a043751
feat(traffic_simulator): support TrafficLightGroup for V2I traffic li…
HansRobo Jun 10, 2024
9010b5d
chore(scenario_test_runner): add new architecture_type and delete old…
HansRobo Jun 10, 2024
d9ac325
fix: correct new architecture_type name
HansRobo Jun 10, 2024
c8f86b7
doc: update Communication.md for new architecture_type
HansRobo Jun 10, 2024
6b1a6a3
doc: update Communication.md for unupdated link
HansRobo Jun 10, 2024
a633f38
Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support_ne…
HansRobo Jun 11, 2024
4e53be5
chore: stop using autoware_auto_msgs
HansRobo Jun 11, 2024
6bf60ac
Merge pull request #1277 from tier4/RJD-736/autoware_msgs_support_new…
HansRobo Jun 12, 2024
d81cf93
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jun 13, 2024
fce4c4a
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jun 14, 2024
5cd0492
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jun 17, 2024
c74d0f5
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jun 20, 2024
61325d1
Merge remote-tracking branch 'origin/feature/manual_on_follow_traject…
HansRobo Jun 21, 2024
943c5a2
Merge remote-tracking branch 'origin/RJD-736/autoware_msgs_support' i…
HansRobo Jun 21, 2024
67b0366
refactor: delete unused include
HansRobo Jun 21, 2024
4708462
fix: fix build errors
HansRobo Jun 21, 2024
904cf45
chore: apply formatter
HansRobo Jun 24, 2024
a3591f0
add autoware_ prefix
youtalk Jun 25, 2024
6501e63
update repos
youtalk Jun 25, 2024
a7c0468
re-add autoware_common
youtalk Jun 25, 2024
17f873b
Revert "add autoware_ prefix"
youtalk Jun 25, 2024
e073325
Merge pull request #1300 from youtalk/goodbye-autoware-common
HansRobo Jun 25, 2024
854f78b
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jul 2, 2024
4776822
Fix SpellCheck GitHub Action
kielczykowski-rai Jul 4, 2024
0d2a863
Apply clang format
kielczykowski-rai Jul 4, 2024
743a4c0
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jul 8, 2024
659f57e
Fix cpp_mock_scenarios launch parameters
kielczykowski-rai Jul 9, 2024
7b102e5
Fix GitHub CI test job
kielczykowski-rai Jul 10, 2024
dce196c
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jul 11, 2024
4f1b0c5
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jul 12, 2024
1a70cd3
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jul 16, 2024
0aba9dc
Fix conflicts in includes
kielczykowski-rai Jul 24, 2024
9df2176
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jul 24, 2024
63970d4
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Jul 31, 2024
84906c5
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Aug 13, 2024
e0a4925
Merge remote-tracking branch 'origin' into RJD-736/autoware_msgs_support
kielczykowski-rai Aug 21, 2024
e390ee8
Merge branch 'master' into RJD-736/autoware_msgs_support
HansRobo Aug 27, 2024
60203ee
Merge branch 'master' into RJD-736/autoware_msgs_support
hakuturu583 Aug 28, 2024
4df9686
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Aug 29, 2024
926d7ec
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Sep 2, 2024
e41ab49
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
kielczykowski-rai Sep 16, 2024
7dcf94e
Merge branch 'master' into RJD-736/autoware_msgs_support
HansRobo Sep 24, 2024
23806f1
Merge branch 'master' into RJD-736/autoware_msgs_support
HansRobo Oct 3, 2024
9f308a0
Merge branch 'master' into RJD-736/autoware_msgs_support
HansRobo Oct 9, 2024
71a862c
Merge branch 'master' into RJD-736/autoware_msgs_support
HansRobo Nov 7, 2024
b1716e7
apply linter
HansRobo Nov 7, 2024
f10f1a1
fix mock_test.launch.py to follow master
HansRobo Nov 7, 2024
3840c29
Merge branch 'master' into RJD-736/autoware_msgs_support
HansRobo Nov 12, 2024
06141d2
fix: delete autoware_auto_xx_msgs from include
HansRobo Nov 12, 2024
122e7ae
fix: delete unsupported architecture_type "awf/universe"
HansRobo Nov 12, 2024
6132aa3
fix: delete autoware_auto_xx_msgs from include
HansRobo Nov 13, 2024
a63eb4c
docs: delete comment for unsupported "awf/universe"
HansRobo Nov 15, 2024
0a66ff1
docs: fix doxygen comment
HansRobo Nov 15, 2024
2065b77
Merge branch 'master' into RJD-736/autoware_msgs_support
HansRobo Nov 15, 2024
d52e865
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
HansRobo Nov 18, 2024
3c8c3b6
Merge remote-tracking branch 'origin/master' into RJD-736/autoware_ms…
HansRobo Nov 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions dependency_humble.repos
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ repositories:
type: git
url: https://github.com/autowarefoundation/autoware_msgs.git
version: main
autoware_auto_msgs:
# TODO(youtalk): Remove autoware_common when https://github.com/autowarefoundation/autoware/issues/4911 is closed
autoware_common:
type: git
url: https://github.com/tier4/autoware_auto_msgs.git
version: tier4/main
url: https://github.com/autowarefoundation/autoware_common.git
version: remove-autoware-cmake-utils
autoware_cmake:
type: git
url: https://github.com/autowarefoundation/autoware_cmake.git
Expand Down
50 changes: 26 additions & 24 deletions docs/developer_guide/Communication.md

Large diffs are not rendered by default.

20 changes: 9 additions & 11 deletions external/concealer/include/concealer/autoware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#define CONCEALER__AUTOWARE_HPP_

#include <atomic>
#include <autoware_auto_control_msgs/msg/ackermann_control_command.hpp>
#include <autoware_auto_vehicle_msgs/msg/control_mode_report.hpp>
#include <autoware_auto_vehicle_msgs/msg/gear_command.hpp>
#include <autoware_auto_vehicle_msgs/msg/turn_indicators_command.hpp>
#include <autoware_control_msgs/msg/control.hpp>
#include <autoware_vehicle_msgs/msg/control_mode_report.hpp>
#include <autoware_vehicle_msgs/msg/gear_command.hpp>
#include <autoware_vehicle_msgs/msg/turn_indicators_command.hpp>
#include <concealer/continuous_transform_broadcaster.hpp>
#include <concealer/visibility.hpp>
#include <geometry_msgs/msg/accel.hpp>
Expand Down Expand Up @@ -49,7 +49,7 @@ class Autoware : public rclcpp::Node, public ContinuousTransformBroadcaster<Auto

virtual auto getAcceleration() const -> double = 0;

virtual auto getGearCommand() const -> autoware_auto_vehicle_msgs::msg::GearCommand;
virtual auto getGearCommand() const -> autoware_vehicle_msgs::msg::GearCommand;

virtual auto getSteeringAngle() const -> double = 0;

Expand All @@ -59,16 +59,14 @@ class Autoware : public rclcpp::Node, public ContinuousTransformBroadcaster<Auto
virtual auto getGearSign() const -> double = 0;

virtual auto getTurnIndicatorsCommand() const
-> autoware_auto_vehicle_msgs::msg::TurnIndicatorsCommand;
-> autoware_vehicle_msgs::msg::TurnIndicatorsCommand;

virtual auto getVehicleCommand() const -> std::tuple<
autoware_auto_control_msgs::msg::AckermannControlCommand,
autoware_auto_vehicle_msgs::msg::GearCommand> = 0;
virtual auto getVehicleCommand() const
-> std::tuple<autoware_control_msgs::msg::Control, autoware_vehicle_msgs::msg::GearCommand> = 0;

virtual auto getRouteLanelets() const -> std::vector<std::int64_t> = 0;

virtual auto getControlModeReport() const
-> autoware_auto_vehicle_msgs::msg::ControlModeReport = 0;
virtual auto getControlModeReport() const -> autoware_vehicle_msgs::msg::ControlModeReport = 0;

auto set(const geometry_msgs::msg::Accel &) -> void;

Expand Down
64 changes: 32 additions & 32 deletions external/concealer/include/concealer/autoware_universe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
#ifndef CONCEALER__AUTOWARE_UNIVERSE_HPP_
#define CONCEALER__AUTOWARE_UNIVERSE_HPP_

#include <autoware_auto_control_msgs/msg/ackermann_control_command.hpp>
#include <autoware_auto_planning_msgs/msg/path_with_lane_id.hpp>
#include <autoware_auto_vehicle_msgs/msg/control_mode_report.hpp>
#include <autoware_auto_vehicle_msgs/msg/gear_report.hpp>
#include <autoware_auto_vehicle_msgs/msg/steering_report.hpp>
#include <autoware_auto_vehicle_msgs/msg/turn_indicators_report.hpp>
#include <autoware_auto_vehicle_msgs/msg/velocity_report.hpp>
#include <autoware_auto_vehicle_msgs/srv/control_mode_command.hpp>
#include <autoware_control_msgs/msg/control.hpp>
#include <autoware_vehicle_msgs/msg/control_mode_report.hpp>
#include <autoware_vehicle_msgs/msg/gear_report.hpp>
#include <autoware_vehicle_msgs/msg/steering_report.hpp>
#include <autoware_vehicle_msgs/msg/turn_indicators_report.hpp>
#include <autoware_vehicle_msgs/msg/velocity_report.hpp>
#include <autoware_vehicle_msgs/srv/control_mode_command.hpp>
#include <concealer/autoware.hpp>
#include <concealer/publisher_wrapper.hpp>
#include <concealer/subscriber_wrapper.hpp>
#include <geometry_msgs/msg/accel_with_covariance_stamped.hpp>
#include <nav_msgs/msg/odometry.hpp>
#include <tier4_planning_msgs/msg/path_with_lane_id.hpp>

namespace concealer
{
Expand All @@ -38,30 +38,30 @@ namespace concealer
class AutowareUniverse : public Autoware
{
// clang-format off
using ControlModeCommand = autoware_auto_vehicle_msgs::srv::ControlModeCommand;
using ControlModeReport = autoware_auto_vehicle_msgs::msg::ControlModeReport;
using GearCommand = autoware_auto_vehicle_msgs::msg::GearCommand;
using GearReport = autoware_auto_vehicle_msgs::msg::GearReport;
using TurnIndicatorsCommand = autoware_auto_vehicle_msgs::msg::TurnIndicatorsCommand;
using PathWithLaneId = autoware_auto_planning_msgs::msg::PathWithLaneId;
using SteeringReport = autoware_auto_vehicle_msgs::msg::SteeringReport;
using VelocityReport = autoware_auto_vehicle_msgs::msg::VelocityReport;
using TurnIndicatorsReport = autoware_auto_vehicle_msgs::msg::TurnIndicatorsReport;
using AckermannControlCommand = autoware_auto_control_msgs::msg::AckermannControlCommand;
using AccelWithCovarianceStamped = geometry_msgs::msg::AccelWithCovarianceStamped;

SubscriberWrapper<AckermannControlCommand, ThreadSafety::safe> getAckermannControlCommand;
SubscriberWrapper<GearCommand, ThreadSafety::safe> getGearCommandImpl;
SubscriberWrapper<TurnIndicatorsCommand, ThreadSafety::safe> getTurnIndicatorsCommand;
SubscriberWrapper<PathWithLaneId, ThreadSafety::safe> getPathWithLaneId;

PublisherWrapper<AccelWithCovarianceStamped> setAcceleration;
PublisherWrapper<nav_msgs::msg::Odometry> setOdometry;
PublisherWrapper<SteeringReport> setSteeringReport;
PublisherWrapper<GearReport> setGearReport;
PublisherWrapper<ControlModeReport> setControlModeReport;
PublisherWrapper<VelocityReport> setVelocityReport;
PublisherWrapper<TurnIndicatorsReport> setTurnIndicatorsReport;
using Control = autoware_control_msgs::msg::Control;
using ControlModeCommand = autoware_vehicle_msgs::srv::ControlModeCommand;
using ControlModeReport = autoware_vehicle_msgs::msg::ControlModeReport;
using GearCommand = autoware_vehicle_msgs::msg::GearCommand;
using GearReport = autoware_vehicle_msgs::msg::GearReport;
using PathWithLaneId = tier4_planning_msgs::msg::PathWithLaneId;
using SteeringReport = autoware_vehicle_msgs::msg::SteeringReport;
using TurnIndicatorsCommand = autoware_vehicle_msgs::msg::TurnIndicatorsCommand;
using TurnIndicatorsReport = autoware_vehicle_msgs::msg::TurnIndicatorsReport;
using VelocityReport = autoware_vehicle_msgs::msg::VelocityReport;

SubscriberWrapper<Control, ThreadSafety::safe> getCommand;
SubscriberWrapper<GearCommand, ThreadSafety::safe> getGearCommandImpl;
SubscriberWrapper<TurnIndicatorsCommand, ThreadSafety::safe> getTurnIndicatorsCommand;
SubscriberWrapper<PathWithLaneId, ThreadSafety::safe> getPathWithLaneId;

PublisherWrapper<AccelWithCovarianceStamped> setAcceleration;
PublisherWrapper<nav_msgs::msg::Odometry> setOdometry;
PublisherWrapper<SteeringReport> setSteeringReport;
PublisherWrapper<GearReport> setGearReport;
PublisherWrapper<ControlModeReport> setControlModeReport;
PublisherWrapper<VelocityReport> setVelocityReport;
PublisherWrapper<TurnIndicatorsReport> setTurnIndicatorsReport;
// clang-format on

rclcpp::Service<ControlModeCommand>::SharedPtr control_mode_request_server;
Expand Down Expand Up @@ -103,7 +103,7 @@ class AutowareUniverse : public Autoware

auto getGearSign() const -> double override;

auto getVehicleCommand() const -> std::tuple<AckermannControlCommand, GearCommand> override;
auto getVehicleCommand() const -> std::tuple<Control, GearCommand> override;

auto getRouteLanelets() const -> std::vector<std::int64_t> override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
#include <sys/wait.h>

#include <autoware_adapi_v1_msgs/msg/mrm_state.hpp>
#include <autoware_auto_control_msgs/msg/ackermann_control_command.hpp>
#include <autoware_auto_planning_msgs/msg/path_with_lane_id.hpp>
#include <autoware_auto_system_msgs/msg/emergency_state.hpp>
#include <autoware_auto_vehicle_msgs/msg/turn_indicators_command.hpp>
#include <autoware_control_msgs/msg/control.hpp>
#include <autoware_vehicle_msgs/msg/turn_indicators_command.hpp>
#include <chrono>
#include <concealer/autoware_stream.hpp>
#include <concealer/launch.hpp>
Expand Down Expand Up @@ -147,7 +145,7 @@ class FieldOperatorApplication : public rclcpp::Node
virtual auto restrictTargetSpeed(double) const -> double = 0;

virtual auto getTurnIndicatorsCommand() const
-> autoware_auto_vehicle_msgs::msg::TurnIndicatorsCommand;
-> autoware_vehicle_msgs::msg::TurnIndicatorsCommand;

virtual auto rethrow() const noexcept(false) -> void;

Expand All @@ -159,11 +157,11 @@ class FieldOperatorApplication : public rclcpp::Node
};
} // namespace concealer

namespace autoware_auto_vehicle_msgs::msg
namespace autoware_vehicle_msgs::msg
{
auto operator<<(std::ostream &, const TurnIndicatorsCommand &) -> std::ostream &;

auto operator>>(std::istream &, TurnIndicatorsCommand &) -> std::istream &;
} // namespace autoware_auto_vehicle_msgs::msg
} // namespace autoware_vehicle_msgs::msg

#endif // CONCEALER__AUTOWARE_USER_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,15 @@
#include <autoware_adapi_v1_msgs/msg/localization_initialization_state.hpp>
#endif

#if __has_include(<autoware_system_msgs/msg/autoware_state.hpp>)
#include <autoware_system_msgs/msg/autoware_state.hpp>
#endif

#if __has_include(<autoware_auto_system_msgs/msg/autoware_state.hpp>)
#include <autoware_auto_system_msgs/msg/autoware_state.hpp>
#endif

#include <autoware_adapi_v1_msgs/msg/mrm_state.hpp>
#include <autoware_adapi_v1_msgs/srv/change_operation_mode.hpp>
#include <autoware_adapi_v1_msgs/srv/clear_route.hpp>
#include <autoware_adapi_v1_msgs/srv/initialize_localization.hpp>
#include <autoware_adapi_v1_msgs/srv/set_route_points.hpp>
#include <autoware_auto_control_msgs/msg/ackermann_control_command.hpp>
#include <autoware_auto_perception_msgs/msg/traffic_signal_array.hpp>
#include <autoware_auto_planning_msgs/msg/path_with_lane_id.hpp>
#include <autoware_auto_system_msgs/msg/emergency_state.hpp>
#include <autoware_auto_vehicle_msgs/msg/gear_command.hpp>
#include <autoware_control_msgs/msg/control.hpp>
#include <autoware_perception_msgs/msg/traffic_signal_array.hpp>
#include <autoware_system_msgs/msg/autoware_state.hpp>
#include <autoware_vehicle_msgs/msg/gear_command.hpp>
#include <concealer/autoware_universe.hpp>
#include <concealer/field_operator_application.hpp>
#include <concealer/publisher_wrapper.hpp>
Expand All @@ -47,6 +38,7 @@
#include <tier4_external_api_msgs/msg/emergency.hpp>
#include <tier4_external_api_msgs/srv/engage.hpp>
#include <tier4_external_api_msgs/srv/set_velocity_limit.hpp>
#include <tier4_planning_msgs/msg/path_with_lane_id.hpp>
#include <tier4_planning_msgs/msg/trajectory.hpp>
#include <tier4_rtc_msgs/msg/cooperate_status_array.hpp>
#include <tier4_rtc_msgs/srv/auto_mode_with_module.hpp>
Expand All @@ -62,21 +54,16 @@ class FieldOperatorApplicationFor<AutowareUniverse>
friend struct TransitionAssertion<FieldOperatorApplicationFor<AutowareUniverse>>;

// clang-format off
SubscriberWrapper<autoware_auto_control_msgs::msg::AckermannControlCommand> getAckermannControlCommand;
#if __has_include(<autoware_system_msgs/msg/autoware_state.hpp>)
SubscriberWrapper<autoware_system_msgs::msg::AutowareState, ThreadSafety::safe> getAutowareState;
#endif
#if __has_include(<autoware_auto_system_msgs/msg/autoware_state.hpp>)
SubscriberWrapper<autoware_auto_system_msgs::msg::AutowareState, ThreadSafety::safe> getAutowareAutoState;
#endif
SubscriberWrapper<autoware_control_msgs::msg::Control> getCommand;
SubscriberWrapper<autoware_system_msgs::msg::AutowareState, ThreadSafety::safe> getAutowareState;
SubscriberWrapper<tier4_rtc_msgs::msg::CooperateStatusArray> getCooperateStatusArray;
SubscriberWrapper<tier4_external_api_msgs::msg::Emergency> getEmergencyState;
#if __has_include(<autoware_adapi_v1_msgs/msg/localization_initialization_state.hpp>)
SubscriberWrapper<autoware_adapi_v1_msgs::msg::LocalizationInitializationState> getLocalizationState;
#endif
SubscriberWrapper<autoware_adapi_v1_msgs::msg::MrmState> getMrmState;
SubscriberWrapper<tier4_planning_msgs::msg::Trajectory> getTrajectory;
SubscriberWrapper<autoware_auto_vehicle_msgs::msg::TurnIndicatorsCommand> getTurnIndicatorsCommandImpl;
SubscriberWrapper<autoware_vehicle_msgs::msg::TurnIndicatorsCommand> getTurnIndicatorsCommandImpl;

ServiceWithValidation<autoware_adapi_v1_msgs::srv::ClearRoute> requestClearRoute;
ServiceWithValidation<tier4_rtc_msgs::srv::CooperateCommands> requestCooperateCommands;
Expand Down Expand Up @@ -145,35 +132,16 @@ class FieldOperatorApplicationFor<AutowareUniverse>
auto sendSIGINT() -> void override;

public:
SubscriberWrapper<autoware_auto_planning_msgs::msg::PathWithLaneId> getPathWithLaneId;
SubscriberWrapper<tier4_planning_msgs::msg::PathWithLaneId> getPathWithLaneId;

public:
template <typename... Ts>
CONCEALER_PUBLIC explicit FieldOperatorApplicationFor(Ts &&... xs)
: FieldOperatorApplication(std::forward<decltype(xs)>(xs)...),
// clang-format off
getAckermannControlCommand("/control/command/control_cmd", rclcpp::QoS(1), *this),
#if __has_include(<autoware_system_msgs/msg/autoware_state.hpp>)
getCommand("/control/command/control_cmd", rclcpp::QoS(1), *this),
getAutowareState("/autoware/state", rclcpp::QoS(1), *this, [this](const auto & v) {
/*
There are multiple places that assignments to `autoware_state` in the callback for the /autoware/state topic to accommodate multiple messages.
But only one of them is used as long as correct configuration Autoware is.
Even if the topic comes in multiple types, as long as the content is the same,
there is basically no problem, but there is a possibility that potential problems may occur.
*/
autoware_state = getAutowareStateString<autoware_system_msgs::msg::AutowareState>(v.state); }),
#endif
#if __has_include(<autoware_auto_system_msgs/msg/autoware_state.hpp>)
getAutowareAutoState("/autoware/state", rclcpp::QoS(1), *this, [this](const auto & v) {
/*
There are multiple places that assignments to `autoware_state` in the callback for the /autoware/state topic to accommodate multiple messages.
But only one of them is used as long as correct configuration Autoware is.
Even if the topic comes in multiple types, as long as the content is the same,
there is basically no problem, but there is a possibility that potential problems may occur.
*/
autoware_state = getAutowareStateString<autoware_auto_system_msgs::msg::AutowareState>(v.state);
}),
#endif
getCooperateStatusArray("/api/external/get/rtc_status", rclcpp::QoS(1), *this, [this](const auto & v) { latest_cooperate_status_array = v; }),
getEmergencyState("/api/external/get/emergency", rclcpp::QoS(1), *this, [this](const auto & v) { receiveEmergencyState(v); }),
#if __has_include(<autoware_adapi_v1_msgs/msg/localization_initialization_state.hpp>)
Expand Down Expand Up @@ -209,7 +177,7 @@ class FieldOperatorApplicationFor<AutowareUniverse>
auto getWaypoints() const -> traffic_simulator_msgs::msg::WaypointsArray override;

auto getTurnIndicatorsCommand() const
-> autoware_auto_vehicle_msgs::msg::TurnIndicatorsCommand override;
-> autoware_vehicle_msgs::msg::TurnIndicatorsCommand override;

auto getEmergencyStateName() const -> std::string override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef CONCEALER__TRANSITION_ASSERTION_HPP_
#define CONCEALER__TRANSITION_ASSERTION_HPP_

#include <autoware_system_msgs/msg/autoware_state.hpp>
#include <chrono>
#include <rclcpp/node.hpp>
#include <rclcpp/rate.hpp>
Expand Down
9 changes: 4 additions & 5 deletions external/concealer/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@

<!-- Autoware.Universe -->
<depend>autoware_adapi_v1_msgs</depend>
<depend>autoware_auto_control_msgs</depend>
<depend>autoware_auto_perception_msgs</depend>
<depend>autoware_auto_planning_msgs</depend>
<depend>autoware_auto_system_msgs</depend>
<depend>autoware_auto_vehicle_msgs</depend>
<depend>autoware_control_msgs</depend>
<depend>autoware_perception_msgs</depend>
<depend>autoware_system_msgs</depend>
<depend>autoware_vehicle_msgs</depend>

<!-- TIER IV Autoware.Universe -->
<depend>tier4_external_api_msgs</depend>
Expand Down
14 changes: 6 additions & 8 deletions external/concealer/src/autoware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Autoware::Autoware()
{
}

auto Autoware::getGearCommand() const -> autoware_auto_vehicle_msgs::msg::GearCommand
auto Autoware::getGearCommand() const -> autoware_vehicle_msgs::msg::GearCommand
{
static auto gear_command = []() {
autoware_auto_vehicle_msgs::msg::GearCommand gear_command;
gear_command.command = autoware_auto_vehicle_msgs::msg::GearCommand::DRIVE;
autoware_vehicle_msgs::msg::GearCommand gear_command;
gear_command.command = autoware_vehicle_msgs::msg::GearCommand::DRIVE;
return gear_command;
}();
gear_command.stamp = now();
Expand All @@ -44,13 +44,11 @@ auto Autoware::set(const geometry_msgs::msg::Twist & twist) -> void { current_tw

auto Autoware::set(const geometry_msgs::msg::Pose & pose) -> void { current_pose.store(pose); }

auto Autoware::getTurnIndicatorsCommand() const
-> autoware_auto_vehicle_msgs::msg::TurnIndicatorsCommand
auto Autoware::getTurnIndicatorsCommand() const -> autoware_vehicle_msgs::msg::TurnIndicatorsCommand
{
static auto turn_indicators_command = []() {
autoware_auto_vehicle_msgs::msg::TurnIndicatorsCommand turn_indicators_command;
turn_indicators_command.command =
autoware_auto_vehicle_msgs::msg::TurnIndicatorsCommand::NO_COMMAND;
autoware_vehicle_msgs::msg::TurnIndicatorsCommand turn_indicators_command;
turn_indicators_command.command = autoware_vehicle_msgs::msg::TurnIndicatorsCommand::NO_COMMAND;
return turn_indicators_command;
}();
turn_indicators_command.stamp = now();
Expand Down
15 changes: 6 additions & 9 deletions external/concealer/src/autoware_universe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace concealer
{
AutowareUniverse::AutowareUniverse()
: getAckermannControlCommand("/control/command/control_cmd", rclcpp::QoS(1), *this),
: getCommand("/control/command/control_cmd", rclcpp::QoS(1), *this),
getGearCommandImpl("/control/command/gear_cmd", rclcpp::QoS(1), *this),
getTurnIndicatorsCommand("/control/command/turn_indicators_cmd", rclcpp::QoS(1), *this),
getPathWithLaneId(
Expand Down Expand Up @@ -85,17 +85,14 @@ auto AutowareUniverse::stopAndJoin() -> void

auto AutowareUniverse::getAcceleration() const -> double
{
return getAckermannControlCommand().longitudinal.acceleration;
return getCommand().longitudinal.acceleration;
}

auto AutowareUniverse::getVelocity() const -> double
{
return getAckermannControlCommand().longitudinal.speed;
}
auto AutowareUniverse::getVelocity() const -> double { return getCommand().longitudinal.velocity; }

auto AutowareUniverse::getSteeringAngle() const -> double
{
return getAckermannControlCommand().lateral.steering_tire_angle;
return getCommand().lateral.steering_tire_angle;
}

auto AutowareUniverse::updateLocalization() -> void
Expand Down Expand Up @@ -176,9 +173,9 @@ auto AutowareUniverse::getGearSign() const -> double
: 1.0;
}

auto AutowareUniverse::getVehicleCommand() const -> std::tuple<AckermannControlCommand, GearCommand>
auto AutowareUniverse::getVehicleCommand() const -> std::tuple<Control, GearCommand>
{
return std::make_tuple(getAckermannControlCommand(), getGearCommand());
return std::make_tuple(getCommand(), getGearCommand());
}

auto AutowareUniverse::getRouteLanelets() const -> std::vector<std::int64_t>
Expand Down
Loading
Loading