Skip to content

fiinal_results = "Marker not found in the output" #15

@PopeyePxx

Description

@PopeyePxx

Thank you for your kind words! I am using Ubuntu 18.04 and compiling GPD with the command find_package(PCL 1.8 REQUIRED), and when running python realbot_ui.py -m outputs/example_data, I encounter the following error:
Global grasps generated
0 grasps generated
Traceback (most recent call last):
File "/home/hun/anaconda3/envs/grasp_splats/lib/python3.10/site-packages/viser/infra/_infra.py", line 449, in wrapped
inner()
File "/home/hun/anaconda3/envs/grasp_splats/lib/python3.10/site-packages/viser/infra/_infra.py", line 257, in
lambda: self._handle_incoming_message(client_id, message)
File "/home/hun/anaconda3/envs/grasp_splats/lib/python3.10/site-packages/viser/infra/_infra.py", line 94, in _handle_incoming_message
cb(client_id, message)
File "/home/hun/anaconda3/envs/grasp_splats/lib/python3.10/site-packages/viser/_gui_api.py", line 157, in _handle_gui_updates
cb(GuiEvent(client, client_id, handle))
File "/home/hun/code/GraspSplats-main/realbot_ui.py", line 399, in _
global_grasp_scores_visual = (global_grasp_scores_visual - np.min(global_grasp_scores_visual)) / (np.max(global_grasp_scores_visual) - np.min(global_grasp_scores_visual))
File "<array_function internals>", line 200, in amin
File "/home/hun/anaconda3/envs/grasp_splats/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 2946, in amin
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
File "/home/hun/anaconda3/envs/grasp_splats/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity

I discovered that this error is because during the sample_grasps process, it cannot recognize the marker "FINAL RESULTS FOR PYTHON:\n". When I print the output, it does not contain this marker.

Here is the relevant code snippet:
command = [binary_file_path] + arguments
result = subprocess.run(command, capture_output=True, text=True)
output = result.stdout

Could you please explain why this is happening? Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions