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

Update the way we publish and subscribe to the Continuous Hiking Process. Upgrade to ContinuousHikingAPI #523

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

PotatoPeeler3000
Copy link
Contributor

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.

…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");
Copy link
Contributor Author

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

Copy link
Member

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");
Copy link
Contributor Author

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)
Copy link
Contributor Author

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;
Copy link
Contributor Author

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())
Copy link
Contributor Author

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants