-
Notifications
You must be signed in to change notification settings - Fork 91
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
Update the way we publish and subscribe to the Continuous Hiking Process. Upgrade to ContinuousHikingAPI #523
base: develop
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ public class ContinuousHikingParameters extends StoredPropertySet implements Con | |
{ | ||
public static final StoredPropertyKeyList keys = new StoredPropertyKeyList(); | ||
|
||
public static final BooleanStoredPropertyKey enableContinuousHiking = keys.addBooleanKey("Enable continuous hiking"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This exists in the message now, its no longer a parameter |
||
public static final BooleanStoredPropertyKey stepPublisherEnabled = keys.addBooleanKey("Step publisher enabled"); | ||
public static final BooleanStoredPropertyKey overrideEntireQueueEachStep = keys.addBooleanKey("Override entire queue each step"); | ||
public static final IntegerStoredPropertyKey numberOfStepsToSend = keys.addIntegerKey("Number of steps to send"); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,26 +93,23 @@ private void generalUpdate() | |
*/ | ||
private void updateActiveMappingPlan() | ||
{ | ||
if (continuousPlanningParameters.getEnableContinuousHiking()) | ||
if (walkingStatusMessage.get() != null) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed the check for the parameter that got deleted, and the rest of the changes in this file are formatting |
||
{ | ||
if (walkingStatusMessage.get() != null) | ||
if (walkingStatusMessage.get().getWalkingStatus() == WalkingStatusMessage.COMPLETED && !continuousPlanner.isPlanAvailable()) | ||
{ | ||
if (walkingStatusMessage.get().getWalkingStatus() == WalkingStatusMessage.COMPLETED && !continuousPlanner.isPlanAvailable()) | ||
{ | ||
continuousPlanner.planBodyPathWithPlanarRegionMap(planarRegionMap); | ||
} | ||
continuousPlanner.planBodyPathWithPlanarRegionMap(planarRegionMap); | ||
} | ||
} | ||
|
||
if (continuousPlanner.isPlanAvailable()) | ||
{ | ||
// Publishing Plan Result | ||
FootstepDataListMessage footstepDataList = continuousPlanner.getFootstepDataListMessage(); | ||
publisherMap.publish(controllerFootstepDataTopic, footstepDataList); | ||
if (continuousPlanner.isPlanAvailable()) | ||
{ | ||
// Publishing Plan Result | ||
FootstepDataListMessage footstepDataList = continuousPlanner.getFootstepDataListMessage(); | ||
publisherMap.publish(controllerFootstepDataTopic, footstepDataList); | ||
|
||
continuousPlanner.setPlanAvailable(false); | ||
} | ||
// configurationParameters.setActiveMapping(false); | ||
continuousPlanner.setPlanAvailable(false); | ||
} | ||
// configurationParameters.setActiveMapping(false); | ||
} | ||
|
||
public ContinuousPlannerForPlanarRegions getContinuousPlanner() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is the right empty message to use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep