Skip to content

Commit

Permalink
chore: remove the support to auto-msgs. (#115)
Browse files Browse the repository at this point in the history
* remove the support to auto-msgs.

Signed-off-by: xtk8532704 <[email protected]>

* style(pre-commit): autofix

Signed-off-by: xtk8532704 <[email protected]>

---------

Signed-off-by: xtk8532704 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
xtk8532704 and pre-commit-ci[bot] authored Sep 11, 2024
1 parent a5928e8 commit 63eda19
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
4 changes: 0 additions & 4 deletions build_depends.repos
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ repositories:
type: git
url: https://github.com/autowarefoundation/autoware_msgs.git
version: main
core/external/autoware_auto_msgs:
type: git
url: https://github.com/tier4/autoware_auto_msgs.git
version: tier4/main
core/autoware_adapi_msgs:
type: git
url: https://github.com/autowarefoundation/autoware_adapi_msgs.git
Expand Down
1 change: 0 additions & 1 deletion planning/planning_debug_tools/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

<build_depend>rosidl_default_generators</build_depend>

<depend>autoware_auto_perception_msgs</depend>
<depend>autoware_motion_utils</depend>
<depend>autoware_perception_msgs</depend>
<depend>autoware_planning_msgs</depend>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
from subprocess import check_output
import time

from autoware_auto_perception_msgs.msg import (
TrafficSignalArray as autoware_auto_perception_msgs_TrafficSignalArray,
)
from autoware_perception_msgs.msg import (
TrafficSignalArray as autoware_perception_msgs_TrafficSignalArray,
)
Expand Down Expand Up @@ -154,22 +151,7 @@ def load_rosbag(self, rosbag2_path: str):
assert (
type(new_msg).__name__ == "TrafficLightGroupArray"
), f"Unsupported conversion to {type(new_msg).__name__}"
if isinstance(msg, autoware_auto_perception_msgs_TrafficSignalArray):
new_msg.stamp = msg.header.stamp
for traffic_signal in msg.signals:
traffic_light_group = TrafficLightGroup()
traffic_light_group.traffic_light_group_id = (
traffic_signal.map_primitive_id
)
for traffic_light in traffic_signal.lights:
traffic_light_element = TrafficLightElement()
traffic_light_element.color = traffic_light.color
traffic_light_element.shape = traffic_light.shape
traffic_light_element.status = traffic_light.status
traffic_light_element.confidence = traffic_light.confidence
traffic_light_group.elements.append(traffic_light_element)
new_msg.traffic_light_groups.append(traffic_light_group)
elif isinstance(msg, autoware_perception_msgs_TrafficSignalArray):
if isinstance(msg, autoware_perception_msgs_TrafficSignalArray):
new_msg.stamp = msg.stamp
for traffic_signal in msg.signals:
traffic_light_group = TrafficLightGroup()
Expand Down

0 comments on commit 63eda19

Please sign in to comment.