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

Switch to pybind11 for dartpy #1307

Merged
merged 1 commit into from
May 6, 2019
Merged

Switch to pybind11 for dartpy #1307

merged 1 commit into from
May 6, 2019

Conversation

jslee02
Copy link
Member

@jslee02 jslee02 commented May 5, 2019

hello_world.py:

import dartpy as dart


def main():
    world = dart.simulation.World.create()

    urdfParser = dart.utils.DartLoader()
    kr5 = urdfParser.parseSkeleton("dart://sample/urdf/KR5/KR5 sixx R650.urdf")
    ground = urdfParser.parseSkeleton("dart://sample/urdf/KR5/ground.urdf")
    world.addSkeleton(kr5)
    world.addSkeleton(ground)

    node = dart.gui.osg.RealTimeWorldNode(world)

    viewer = dart.gui.osg.Viewer()
    viewer.addWorldNode(node)
    viewer.setUpViewInWindow(0, 0, 640, 480)
    viewer.run()


if __name__ == "__main__":
    main()

Screenshot:
image


Before creating a pull request

  • Document new methods and classes
  • Format new code files using clang-format

Before merging a pull request

  • Set version target by selecting a milestone on the right side
  • Summarize this change in CHANGELOG.md
  • Add unit test(s) for this change

@jslee02 jslee02 marked this pull request as ready for review May 5, 2019 21:00
@jslee02 jslee02 added this to the DART 6.9.0 milestone May 5, 2019
@codecov
Copy link

codecov bot commented May 5, 2019

Codecov Report

Merging #1307 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1307   +/-   ##
=======================================
  Coverage   57.11%   57.11%           
=======================================
  Files         363      363           
  Lines       26954    26954           
=======================================
  Hits        15395    15395           
  Misses      11559    11559

@jslee02 jslee02 changed the base branch from examples_tutorials to master May 6, 2019 01:32
@jslee02 jslee02 merged commit a12231e into master May 6, 2019
@jslee02 jslee02 deleted the pybind11_v2 branch May 6, 2019 04:31
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.

1 participant