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

Added Franka blockstacking example #925

Merged

Conversation

laikhtewari
Copy link
Contributor

@laikhtewari laikhtewari commented Aug 11, 2022

Motivation and Context

Creates a new franka blockstacking example using the static manipulator class.
T122948310
Screen Shot 2022-08-24 at 3 48 56 PM

How Has This Been Tested

Running the example (with a display) succeeds in creating an environment with 6 blocks that can be manipulated
DISPLAY=:100 python examples/franka_blockstacking_example.py

Screen Shot 2022-08-15 at 4 14 41 PM

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 11, 2022
@laikhtewari laikhtewari requested a review from 1heart August 11, 2022 15:48
Copy link
Contributor

@1heart 1heart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall lgtm, minor nits:

  • Very similarly to the prior PR involving franka_example.py, it would be nice to (1) isolate the output of argparse from the function itself, (2) avoid the double negative not args.no_render.
  • You could also import functions display_grayscale, display_rgb relatively there, to avoid duplication.
  • Add a screenshot of this working.

@1heart 1heart marked this pull request as ready for review August 12, 2022 16:18
@Skylion007
Copy link
Contributor

Can this run, without rendering as a unit test for test_examples. See https://github.com/facebookresearch/habitat-lab/blob/main/test/test_examples.py for how to hook up the script.

Copy link
Contributor

@aclegg3 aclegg3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall.
For this test to run on CI we need to host the panda_arm.urdf somewhere it can be downloaded publicly (assuming the license is amenable).

examples/franka_blockstacking_example.py Outdated Show resolved Hide resolved
@laikhtewari laikhtewari requested a review from aclegg3 August 25, 2022 15:07
Copy link
Contributor

@mathfac mathfac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding this example, some comments about code clarity.

examples/franka_blockstacking_example.py Outdated Show resolved Hide resolved
examples/franka_blockstacking_example.py Outdated Show resolved Hide resolved
examples/franka_blockstacking_example.py Outdated Show resolved Hide resolved
@laikhtewari laikhtewari merged commit 2acd836 into facebookresearch:main Aug 31, 2022
dannymcy pushed a commit to dannymcy/habitat-lab that referenced this pull request Jul 8, 2024
* added franka blockstacking example

* pulled display util funcs out, cleaned arg parsing

* updated block example

* add franka blockstack to tests

* download pointnav data in circleci

* fix indentation in circleci config

* download data after installing habitat-sim api

* conda activate before habitat-sim

* restore circleci config

* use symlink data to habitat sim

* add data path change

* use cubeSolid handle

* download panda arm urdf in ci tests

* update circleci config to match main

* use constants

* use constants for range offset
HHYHRHY pushed a commit to SgtVincent/EMOS that referenced this pull request Aug 31, 2024
* added franka blockstacking example

* pulled display util funcs out, cleaned arg parsing

* updated block example

* add franka blockstack to tests

* download pointnav data in circleci

* fix indentation in circleci config

* download data after installing habitat-sim api

* conda activate before habitat-sim

* restore circleci config

* use symlink data to habitat sim

* add data path change

* use cubeSolid handle

* download panda arm urdf in ci tests

* update circleci config to match main

* use constants

* use constants for range offset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants