Skip to content

Commit

Permalink
run pre-commit
Browse files Browse the repository at this point in the history
Signed-off-by: Takumi Ito <[email protected]>
  • Loading branch information
Takumi Ito committed Oct 9, 2024
1 parent 1e25b48 commit 521f76e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def getWaypoints(self):
)

return waypoints

def getDistanceToObstacle(self, pose: Pose):
pose_byte = serialize_message(pose)
return self.astar_search.getDistanceToObstacle(pose_byte)
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ namespace py = pybind11;
// cppcheck-suppress syntaxError
PYBIND11_MODULE(autoware_freespace_planning_algorithms_pybind, p)
{
auto pyPlannerWaypointsVector =
py::class_<PlannerWaypointsVector>(p, "PlannerWaypointsVector")
.def(py::init<>())
.def_readwrite("waypoints", &PlannerWaypointsVector::waypoints)
.def_readwrite("length", &PlannerWaypointsVector::length);
auto pyPlannerWaypointsVector = py::class_<PlannerWaypointsVector>(p, "PlannerWaypointsVector")
.def(py::init<>())
.def_readwrite("waypoints", &PlannerWaypointsVector::waypoints)
.def_readwrite("length", &PlannerWaypointsVector::length);
auto pyAstarParam =
py::class_<freespace_planning_algorithms::AstarParam>(p, "AstarParam")
.def(py::init<>())
Expand All @@ -150,8 +149,7 @@ PYBIND11_MODULE(autoware_freespace_planning_algorithms_pybind, p)
"goal_lat_distance_weight",
&freespace_planning_algorithms::AstarParam::goal_lat_distance_weight);
auto pyPlannerCommonParam =
py::class_<freespace_planning_algorithms::PlannerCommonParam>(
p, "PlannerCommonParam")
py::class_<freespace_planning_algorithms::PlannerCommonParam>(p, "PlannerCommonParam")
.def(py::init<>())
.def_readwrite("time_limit", &freespace_planning_algorithms::PlannerCommonParam::time_limit)
.def_readwrite("theta_size", &freespace_planning_algorithms::PlannerCommonParam::theta_size)
Expand Down

0 comments on commit 521f76e

Please sign in to comment.