Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 1, 2024
1 parent dc6b30c commit d905897
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,9 @@ def control(self):

# [2] publish cmd
control_cmd_msg = AckermannControlCommand()
control_cmd_msg.stamp = (
control_cmd_msg.lateral.stamp
) = control_cmd_msg.longitudinal.stamp = (self.get_clock().now().to_msg())
control_cmd_msg.stamp = control_cmd_msg.lateral.stamp = (
control_cmd_msg.longitudinal.stamp
) = (self.get_clock().now().to_msg())
control_cmd_msg.longitudinal.velocity = trajectory_longitudinal_velocity[nearestIndex]
control_cmd_msg.longitudinal.acceleration = cmd[0]
control_cmd_msg.lateral.steering_tire_angle = cmd[1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ def load_rosbag(self, rosbag2_path: str):
objects_topic = (
"/perception/object_recognition/detection/objects"
if self.args.detected_object
else "/perception/object_recognition/tracking/objects"
if self.args.tracked_object
else "/perception/object_recognition/objects"
else (
"/perception/object_recognition/tracking/objects"
if self.args.tracked_object
else "/perception/object_recognition/objects"
)
)
ego_odom_topic = "/localization/kinematic_state"
traffic_signals_topic = "/perception/traffic_light_recognition/traffic_signals"
Expand Down

0 comments on commit d905897

Please sign in to comment.