Code Monkey home page Code Monkey logo

Comments (5)

balakumar-s avatar balakumar-s commented on June 26, 2024

Thanks for finding this bug. We have a fix that will be pushed soon. In the meantime, to unblock you:

  1. Remove this line
    robot_p = Robot(
    and replace it with:
    robot_p = Robot(
        prim_path=robot_path + "/" + base_link_name,
        name=robot_name,
    )
    from curobo.util.usd_helper import set_prim_transform
    robot_prim = robot_p.prim
    stage = robot_prim.GetStage()
    linkp = stage.GetPrimAtPath(robot_path)
    set_prim_transform(linkp, [position[0], position[1], position[2], 1, 0, 0, 0])

from curobo.

songlin avatar songlin commented on June 26, 2024

@balakumar-s I followed your modification. The robots are placed in the right positions now. However, Isaac-sim crashed when I moved the target cube.

[ERROR] [curobo] changing goal type, breaking previous cuda graph.
NoneType: None
Stack (most recent call last):
  File "examples/isaac_sim/batch_motion_gen_reacher.py", line 298, in <module>
    main()
  File "examples/isaac_sim/batch_motion_gen_reacher.py", line 252, in main
    result = motion_gen.plan_batch_env(full_js, ik_goal, plan_config.clone())
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 1418, in plan_batch_env
    plan_config,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 1243, in _plan_batch_attempts
    solve_state, start_state, goal_pose, plan_config
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 2082, in _plan_from_solve_state_batch
    return_all_solutions=True,
  File "/home/songlin/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/python/lib/python3.7/contextlib.py", line 74, in inner
    return func(*args, **kwds)
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 991, in _solve_trajopt_from_solve_state
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 560, in solve_any
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 762, in solve_batch_env
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 590, in solve_from_solve_state
    goal_buffer = self.update_goal_buffer(solve_state, goal)
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 492, in update_goal_buffer
    log_error("changing goal type, breaking previous cuda graph.")
  File "/home/songlin/Projects/curobo/src/curobo/util/logger.py", line 44, in log_error
    logger.error(txt, exc_info=exc_info, stack_info=stack_info, *args, **kwargs)
Traceback (most recent call last):
  File "examples/isaac_sim/batch_motion_gen_reacher.py", line 298, in <module>
    main()
  File "examples/isaac_sim/batch_motion_gen_reacher.py", line 252, in main
    result = motion_gen.plan_batch_env(full_js, ik_goal, plan_config.clone())
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 1418, in plan_batch_env
    plan_config,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 1243, in _plan_batch_attempts
    solve_state, start_state, goal_pose, plan_config
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 2082, in _plan_from_solve_state_batch
    return_all_solutions=True,
  File "/home/songlin/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/python/lib/python3.7/contextlib.py", line 74, in inner
    return func(*args, **kwds)
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 991, in _solve_trajopt_from_solve_state
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 560, in solve_any
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 762, in solve_batch_env
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 590, in solve_from_solve_state
    goal_buffer = self.update_goal_buffer(solve_state, goal)
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 492, in update_goal_buffer
    log_error("changing goal type, breaking previous cuda graph.")
  File "/home/songlin/Projects/curobo/src/curobo/util/logger.py", line 45, in log_error
    raise
RuntimeError: No active exception to reraise
/home/songlin/.local/share/ov/pkg/isaac_sim-2022.2.1/python.sh: line 41: 368592 Segmentation fault      (core dumped) $python_exe "$@" $args
There was an error running python

Can you help please? I am using Issac-sim 2022.2.1 and installed latest curobo commit

from curobo.

YANGHANJIANG avatar YANGHANJIANG commented on June 26, 2024

@balakumar-s I followed your modification. The robots are placed in the right positions now. However, Isaac-sim crashed when I moved the target cube.

[ERROR] [curobo] changing goal type, breaking previous cuda graph.
NoneType: None
Stack (most recent call last):
  File "examples/isaac_sim/batch_motion_gen_reacher.py", line 298, in <module>
    main()
  File "examples/isaac_sim/batch_motion_gen_reacher.py", line 252, in main
    result = motion_gen.plan_batch_env(full_js, ik_goal, plan_config.clone())
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 1418, in plan_batch_env
    plan_config,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 1243, in _plan_batch_attempts
    solve_state, start_state, goal_pose, plan_config
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 2082, in _plan_from_solve_state_batch
    return_all_solutions=True,
  File "/home/songlin/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/python/lib/python3.7/contextlib.py", line 74, in inner
    return func(*args, **kwds)
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 991, in _solve_trajopt_from_solve_state
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 560, in solve_any
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 762, in solve_batch_env
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 590, in solve_from_solve_state
    goal_buffer = self.update_goal_buffer(solve_state, goal)
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 492, in update_goal_buffer
    log_error("changing goal type, breaking previous cuda graph.")
  File "/home/songlin/Projects/curobo/src/curobo/util/logger.py", line 44, in log_error
    logger.error(txt, exc_info=exc_info, stack_info=stack_info, *args, **kwargs)
Traceback (most recent call last):
  File "examples/isaac_sim/batch_motion_gen_reacher.py", line 298, in <module>
    main()
  File "examples/isaac_sim/batch_motion_gen_reacher.py", line 252, in main
    result = motion_gen.plan_batch_env(full_js, ik_goal, plan_config.clone())
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 1418, in plan_batch_env
    plan_config,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 1243, in _plan_batch_attempts
    solve_state, start_state, goal_pose, plan_config
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 2082, in _plan_from_solve_state_batch
    return_all_solutions=True,
  File "/home/songlin/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/python/lib/python3.7/contextlib.py", line 74, in inner
    return func(*args, **kwds)
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/motion_gen.py", line 991, in _solve_trajopt_from_solve_state
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 560, in solve_any
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 762, in solve_batch_env
    newton_iters=newton_iters,
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 590, in solve_from_solve_state
    goal_buffer = self.update_goal_buffer(solve_state, goal)
  File "/home/songlin/Projects/curobo/src/curobo/wrap/reacher/trajopt.py", line 492, in update_goal_buffer
    log_error("changing goal type, breaking previous cuda graph.")
  File "/home/songlin/Projects/curobo/src/curobo/util/logger.py", line 45, in log_error
    raise
RuntimeError: No active exception to reraise
/home/songlin/.local/share/ov/pkg/isaac_sim-2022.2.1/python.sh: line 41: 368592 Segmentation fault      (core dumped) $python_exe "$@" $args
There was an error running python

Can you help please? I am using Issac-sim 2022.2.1 and installed latest curobo commit

Faced the same issue.

Workaround:
Replace this line

with
use_cuda_graph=False,

from curobo.

songlin avatar songlin commented on June 26, 2024

from curobo.

balakumar-s avatar balakumar-s commented on June 26, 2024

We fixed the robot location in latest release.

from curobo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.