Skip to content

Commit

Permalink
Merge pull request #903 from davideCremona/fix_ObjDet_labelId
Browse files Browse the repository at this point in the history
Update zed_wrapper_nodelet.cpp
  • Loading branch information
Myzhar committed Jul 19, 2023
2 parents 8ff3c28 + 2c929ba commit 42fbae3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zed_nodelets/src/zed_nodelet/src/zed_wrapper_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4412,7 +4412,8 @@ void ZEDWrapperNodelet::processDetectedObjects(ros::Time t)
for (auto data : objects.object_list) {
objMsg->objects[idx].label = sl::toString(data.label).c_str();
objMsg->objects[idx].sublabel = sl::toString(data.sublabel).c_str();
objMsg->objects[idx].label_id = data.id;
objMsg->objects[idx].label_id = data.raw_label;
objMsg->objects[idx].instance_id = data.id;
objMsg->objects[idx].confidence = data.confidence;

memcpy(&(objMsg->objects[idx].position[0]), &(data.position[0]), 3 * sizeof(float));
Expand Down

2 comments on commit 42fbae3

@nata-vito
Copy link

@nata-vito nata-vito commented on 42fbae3 Jul 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am trying to build the package on my pc, but it is giving this error that says it has no member named 'instance_id'. I checked with this new pull request that was given merge and apparently it is he who is causing this error when I execute the command 'catkin_make -DCMAKE_BUILD_TYPE=Release', the error occurs in the file zed-ros-wrapper/zed_nodelets/src/zed_nodelet/src/zed_wrapper_nodelet.cpp:4416

My development environment:
Cuda 11.8
Ubuntu 20.04
Python 3.x
Ros Noetic

image

@nata-vito
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the error, it is not in this package but in zed_interfaces, because the default branch is not in main but in ee58794. To solve it, just give git checkout main

Please sign in to comment.