-
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?
Conversation
…s for changing how we send and receive the messages. Removed the use of the planning mode as its no longer desired behavior.
@@ -17,7 +16,7 @@ public class ContinuousHikingAPI | |||
|
|||
// Commands supported for the Continuous Hiking Process | |||
public static final ROS2Topic<ContinuousHikingCommandMessage> CONTINUOUS_HIKING_COMMAND = IHMC_ROOT.withModule(moduleName).withType(ContinuousHikingCommandMessage.class).withSuffix("command"); | |||
public static final ROS2Topic<Empty> CLEAR_GOAL_FOOTSTEPS = IHMC_ROOT.withModule(moduleName).withType(Empty.class).withSuffix("clear_goal_footsteps"); | |||
public static final ROS2Topic<std_msgs.msg.dds.Empty> CLEAR_GOAL_FOOTSTEPS = IHMC_ROOT.withModule(moduleName).withType(std_msgs.msg.dds.Empty.class).withSuffix("clear_goal_footsteps"); |
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
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
This exists in the message now, its no longer a parameter
@@ -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 comment
The 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
@@ -81,6 +82,7 @@ public ContinuousPlanner(DRCRobotModel robotModel, | |||
ContinuousHikingLogger continuousHikingLogger) | |||
{ | |||
this.referenceFrames = referenceFrames; | |||
this.commandMessage = commandMessage; |
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.
Pass this into the constructor
{ | ||
latestFootstepPlan = generateMonteCarloFootstepPlan(goalPoses); | ||
} | ||
else if (command.getUseHybridPlanner()) |
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.
No hybrid planner anymore
…ystick on publishing all the time so the input of the joystick changes
Switched Continuous Hiking to use the ContinuousHikingAPI. This allows for changing how we send and receive the messages. Removed the use of the planning mode as its no longer desired behavior.