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

Initial draft of changes for online map / planner updates #12

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
745d2d0
Add functionality to update map (and the planner state space boundari…
meychr Apr 5, 2021
51f0bac
Make class member of StateValidator private
meychr May 13, 2021
c8ad75d
Make some class functions constant
meychr May 13, 2021
0d0bcc0
Unify name of state space boundaries to StateSpaceBoundaries
meychr May 13, 2021
07efb89
Reorder member variables
meychr May 13, 2021
b492b7f
Implement getStartingState and getGoalState for OmplReedsSheppPlanner
meychr May 14, 2021
85723b8
Move ROS publishers and services to base class PlannerRos, use Planne…
meychr May 14, 2021
f24ce13
Make isStateValid constant
meychr May 14, 2021
11075fe
Fix typo
meychr May 14, 2021
8c0bc04
Move StateValidator functions to Planner interface
meychr May 14, 2021
0072859
Adapt se2_grid_map_generator config and add TODOs to fix frames
meychr May 19, 2021
db4a618
Set state space bounds changes
meychr May 19, 2021
2735940
Fix formatting
meychr May 19, 2021
6b3863b
Move getStateSpaceBoundaries to OmplPlanner
meychr May 19, 2021
4704095
Remove comment
meychr May 19, 2021
808bd65
Reorder code and remove TODO
meychr May 29, 2021
21e3385
Fix format
meychr Jun 7, 2021
5c1afb2
Implement map interface and occupancy map & adapt height map
meychr Jun 7, 2021
fc57077
Add ROS class for occupancy map
meychr Jun 7, 2021
632a7f6
Integrate new map for state space boundaries update, adapt tests
meychr Jun 7, 2021
db5da4d
Uncomment isTraversable again
meychr Jun 7, 2021
80db121
Make GridMapLazyStateValidatorRos similar to OccupancyMapRos
meychr Jun 7, 2021
ad3095d
Change config file to use elevation for collision checking in state v…
meychr Jun 7, 2021
d07c579
Increase footprint size in car_demo
meychr Jun 7, 2021
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
Prev Previous commit
Next Next commit
Make isStateValid constant
  • Loading branch information
meychr committed May 14, 2021
commit f24ce1366dcf780596b55a7e06134b61064c92ef
2 changes: 1 addition & 1 deletion se2_planning/include/se2_planning/OmplPlanner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class OmplPlanner : public Planner {

protected:
virtual void initializeStateSpace() = 0;
virtual bool isStateValid(const ompl::base::SpaceInformation* si, const ompl::base::State* state) = 0;
virtual bool isStateValid(const ompl::base::SpaceInformation* si, const ompl::base::State* state) const = 0;
virtual ompl::base::ScopedStatePtr convert(const State& state) const = 0;
virtual void convert(const ompl::base::ScopedStatePtr omplState, State* state) const = 0;
virtual void convert(const ompl::geometric::PathGeometric& pathOmpl, Path* path) const = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class OmplReedsSheppPlanner final : public OmplPlanner {
void createDefaultStateSpace();
void initializeStateSpace() final;
void setStateSpaceBoundaries();
bool isStateValid(const ompl::base::SpaceInformation* si, const ompl::base::State* state) final;
bool isStateValid(const ompl::base::SpaceInformation* si, const ompl::base::State* state) const final;
ompl::base::ScopedStatePtr convert(const State& state) const final;
void convert(const ompl::base::ScopedStatePtr omplState, State* state) const final;
void convert(const ompl::geometric::PathGeometric& pathOmpl, Path* path) const final;
Expand Down
2 changes: 1 addition & 1 deletion se2_planning/src/OmplReedsSheppPlanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ bool OmplReedsSheppPlanner::isLocked() const {
return stateValidator_->isLocked();
}

bool OmplReedsSheppPlanner::isStateValid(const ompl::base::SpaceInformation* si, const ompl::base::State* state) {
bool OmplReedsSheppPlanner::isStateValid(const ompl::base::SpaceInformation* si, const ompl::base::State* state) const {
const ReedsSheppState rsState = se2_planning::convert(state);
return stateValidator_->isStateValid(rsState);
}
Expand Down