Error using dsr_api::get_depth_image()
Closed this issue · 1 comments
DarkGeekMS commented
I was trying to get the depth from G using dsr_api::get_depth_image() :
auto cam = G->get_node("viriato_head_camera_sensor");
if (cam.has_value())
{
const std::vector<float> depth_data = G->get_depth_image(cam.value());
}
But it always throws std::bad_alloc
exception in get_depth_image
method :
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
DarkGeekMS commented
Solved by @JuanCarlosgg
Commit : robocomp/robocomp@5b10f7a