Closed a-nooj closed 2 weeks ago
Thanks for reporting the issue! Could you please provide a minimal reproducing example? A simple test (calling numpy()
on each result path produced in scripts/evaluate_mbm.py
and printing the resulting array) on my machine is unable to recreate the segfault.
I also faced this, minimal code to reproduce is:
import vamp
robot_urdf_path = 'resources/ur5/ur5.urdf'
robot_module, planner_module, plan_settings, simp_settings = vamp.configure_robot_and_planner_with_kwargs('ur5', 'rrtc')
start = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
goal = [0.0, 0.5, 1.0, 0.0, 1.0, 0.0]
env = vamp.Environment()
planner = planner_module(start, goal, env, plan_settings)
simplyfy = robot_module.simplify(planner.path, env, simp_settings)
path = simplyfy.path
path.interpolate(robot_module.resolution())
print("Type of Path : ", type(path))
numpy_path = path.numpy()
print("Path as NP array : ", numpy_path)
The Output from this is :
Type of Path : <class 'vamp._core._core_ext.ur5.Path'>
Segmentation fault (core dumped)
Thanks, I appreciate the example! Could you please share information about the environment in which you're running this (Python version, OS, etc.)? Copy-pasting your script into a virtualenv on my machine, I'm still unable to reproduce the segfault.
Small update: I have now been able to reproduce the segfault; investigating.
@a-nooj, @mohitydv09, thanks for your help finding and reproducing this bug. Could you please confirm that #14 fixes this issue for you?
Calling the
numpy
method forresult.path
gives a segfault.