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

Rename function #50

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion include/point_follow_planner/point_follow_planner.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class PointFollowPlanner

// others
void motion(State &state, const double velocity, const double yawrate);
void raycast(const nav_msgs::OccupancyGrid &map);
void create_obs_list(const nav_msgs::OccupancyGrid &map);
void generate_trajectory(std::vector<State> &trajectory, const double velocity, const double yawrate);
void generate_trajectory(std::vector<State> &trajectory, const double yawrate, const Eigen::Vector3d &goal);
void push_back_trajectory(std::vector<std::vector<State>> &trajectories, const double velocity, const double yawrate);
Expand Down
4 changes: 2 additions & 2 deletions src/point_follow_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void PointFollowPlanner::footprint_callback(const geometry_msgs::PolygonStampedP

void PointFollowPlanner::local_map_callback(const nav_msgs::OccupancyGridConstPtr &msg)
{
raycast(*msg);
create_obs_list(*msg);
local_map_not_sub_count_ = 0;
local_map_updated_ = true;
}
Expand Down Expand Up @@ -229,7 +229,7 @@ void PointFollowPlanner::set_dist_to_obj_th(const geometry_msgs::PolygonStamped
dist_to_obj_th_y_ = max_y;
}

void PointFollowPlanner::raycast(const nav_msgs::OccupancyGrid &map)
void PointFollowPlanner::create_obs_list(const nav_msgs::OccupancyGrid &map)
{
obs_list_.poses.clear();
const double max_search_dist = hypot(map.info.origin.position.x, map.info.origin.position.y);
Expand Down
Loading