-
Notifications
You must be signed in to change notification settings - Fork 95
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 implementation for square up and walk-to-goal for CH process #694
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
f4cb234
Added an example of how to create a 3d matrix
PotatoPeeler3000 a8294a6
Remove unused code for testing
PotatoPeeler3000 7f03cda
Fixed 3d cuda example and return the average to the cpu
PotatoPeeler3000 c5b1f13
Using cudaMalloc3D
TomaszTB 06c1006
Started writing a test to have this example be used in a class
PotatoPeeler3000 94dac47
Fixed FilteredRapidHeightMapExtractor to compute the average of the h…
PotatoPeeler3000 29920f7
Updated the kernel to compute the height estimate based on a moving a…
PotatoPeeler3000 ab8ee1a
Alpha filter (ish) is working on the height map, UI button to turn th…
PotatoPeeler3000 8c0cd8e
Tuned filter a little bit
PotatoPeeler3000 03f2c43
Merge branch 'refs/heads/develop' into feature/3d-kernel-example
PotatoPeeler3000 582910a
Update environments for the UI
PotatoPeeler3000 da4c67b
Switched from ROS2Helper to ROS2Node for StoredPropertySets and switc…
PotatoPeeler3000 f2d2dd8
Using createSubscription2 where applicable (#679)
TomaszTB 7210f10
Merge branch 'develop' into feature/one-ui
PotatoPeeler3000 c51203a
Switch height map to use ros2Node to remove ros2Helper
PotatoPeeler3000 4f5fdd7
Implemented square up and walk to goal as a message within CH
PotatoPeeler3000 b5b09e3
Fix translation for when robot isn't facing forward
PotatoPeeler3000 6221b64
Cleanup UI look so there is less scrolling involved
PotatoPeeler3000 bdd6eb4
Moved the RapidHeightMapManager into the perception package to reduce…
PotatoPeeler3000 b98358d
Add reset method for visuals
PotatoPeeler3000 d1205fa
Merge branch 'feature/3d-kernel-example' into feature/new-ch-messages
PotatoPeeler3000 3109bc8
Cleanup files and remove testing lines
PotatoPeeler3000 a78af41
Moved publisher to constructor
PotatoPeeler3000 539411a
Merge branch 'develop' into feature/new-ch-messages
PotatoPeeler3000 5431014
Change planar region to use ros2helper still, merge conflict
PotatoPeeler3000 9bec35b
Cleanup code mainly for height map filter
PotatoPeeler3000 e22e2e6
Cleanup filtered kernel
PotatoPeeler3000 7fb78e1
Check error after mem copy
PotatoPeeler3000 4025d10
Change error checking
PotatoPeeler3000 7873a70
Change error checking
PotatoPeeler3000 9adb15d
Cleanup fields
PotatoPeeler3000 8c04fc1
Merge branch 'develop' into feature/new-ch-messages
PotatoPeeler3000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 93 additions & 30 deletions
123
...high-level-behaviors/src/libgdx/java/us/ihmc/rdx/perception/RDXContinuousHikingPanel.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ public class RDXStancePoseSelectionPanel extends RDXPanel implements RenderableP | |
private final RDXBaseUI baseUI; | ||
private final ImGuiUniqueLabelMap labels = new ImGuiUniqueLabelMap(getClass()); | ||
private final ROS2Publisher<PoseListMessage> publisher; | ||
private final ROS2Publisher<PoseListMessage> turningPublisher; | ||
|
||
private ModelInstance pickPointSphere; | ||
|
||
|
@@ -73,6 +74,7 @@ public RDXStancePoseSelectionPanel(RDXBaseUI baseUI, ROS2Node ros2Node, StancePo | |
stancePoseCalculatorParametersTuner.create(stancePoseCalculator.getStancePoseParameters()); | ||
|
||
publisher = ros2Node.createPublisher(ContinuousHikingAPI.PLACED_GOAL_FOOTSTEPS); | ||
turningPublisher = ros2Node.createPublisher(ContinuousHikingAPI.ROTATE_GOAL_FOOTSTEPS); | ||
|
||
SegmentDependentList<RobotSide, ArrayList<Point2D>> contactPoints = new SideDependentList<>(); | ||
contactPoints.set(RobotSide.LEFT, PlannerTools.createFootContactPoints(0.2, 0.1, 0.08)); | ||
|
@@ -210,6 +212,11 @@ else if (dScroll < 0.0) | |
latestPickPoint.getOrientation().setYawPitchRoll(latestFootstepYaw + deltaYaw, 0.0, 0.0); | ||
} | ||
} | ||
if (input.isWindowHovered() && input.mouseReleasedWithoutDrag(ImGuiMouseButton.Middle) && calculateStancePose.get() && selectionActive) | ||
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. Middle click allows for this feature to plan-to-goal rather then add it to the CH goal queue |
||
{ | ||
setRotateGoalFootsteps(); | ||
selectionActive = false; | ||
} | ||
|
||
if (input.isWindowHovered() & input.mouseReleasedWithoutDrag(ImGuiMouseButton.Left) && calculateStancePose.get() && selectionActive) | ||
{ | ||
|
@@ -254,6 +261,18 @@ public void destroy() | |
rightSpheres.clear(); | ||
} | ||
|
||
private void setRotateGoalFootsteps() | ||
{ | ||
List<Pose3D> poses = new ArrayList<>(); | ||
poses.add(new Pose3D(stancePoses.get(RobotSide.LEFT))); | ||
poses.add(new Pose3D(stancePoses.get(RobotSide.RIGHT))); | ||
|
||
PoseListMessage poseListMessage = new PoseListMessage(); | ||
MessageTools.packPoseListMessage(poses, poseListMessage); | ||
|
||
turningPublisher.publish(poseListMessage); | ||
} | ||
|
||
private void setGoalFootsteps() | ||
{ | ||
List<Pose3D> poses = new ArrayList<>(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
New messages to walk the robot around with little user input