Skip to content

Commit 6fc5296

Browse files
committed
remove useless array functiona dded to the velocity factor interface
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
1 parent 1f74c5c commit 6fc5296

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

common/motion_utils/include/motion_utils/factor/velocity_factor_interface.hpp

-10
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#ifndef MOTION_UTILS__FACTOR__VELOCITY_FACTOR_INTERFACE_HPP_
1717
#define MOTION_UTILS__FACTOR__VELOCITY_FACTOR_INTERFACE_HPP_
1818

19-
#include <rclcpp/time.hpp>
20-
2119
#include <autoware_adapi_v1_msgs/msg/planning_behavior.hpp>
2220
#include <autoware_adapi_v1_msgs/msg/velocity_factor.hpp>
2321
#include <autoware_adapi_v1_msgs/msg/velocity_factor_array.hpp>
@@ -38,14 +36,6 @@ class VelocityFactorInterface
3836
{
3937
public:
4038
[[nodiscard]] VelocityFactor get() const { return velocity_factor_; }
41-
[[nodiscard]] autoware_adapi_v1_msgs::msg::VelocityFactorArray get_array(
42-
const rclcpp::Time & now) const
43-
{
44-
autoware_adapi_v1_msgs::msg::VelocityFactorArray array;
45-
array.header.stamp = now;
46-
array.factors.push_back(velocity_factor_);
47-
return array;
48-
}
4939
void init(const VelocityFactorBehavior & behavior) { behavior_ = behavior; }
5040
void reset() { velocity_factor_.behavior = PlanningBehavior::UNKNOWN; }
5141

0 commit comments

Comments
 (0)