Skip to content

Commit fd7cf59

Browse files
extracted info for complex
1 parent 38516b8 commit fd7cf59

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/extended_object_detection_node/extended_object_detection_node.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ extended_object_detection::ComplexObject ros_msg_from_complex(ExtendedObjectInfo
421421
current_object.rect.right_up.x = complex->x + complex->width;
422422
current_object.rect.right_up.y = complex->y + complex->height;
423423

424+
for( auto const& exi : complex->extracted_info){
425+
current_object.extracted_info.keys.push_back(exi.first);
426+
current_object.extracted_info.values.push_back(exi.second);
427+
}
428+
424429
// if we have solved translation then use it
425430
if( complex->tvec.size() > 0 ){
426431
// TODO: invite some algorithm for merging tvecs
@@ -442,7 +447,9 @@ extended_object_detection::ComplexObject ros_msg_from_complex(ExtendedObjectInfo
442447
// current_object.transform.rotation.z = quaternion[2];
443448
// current_object.transform.rotation.w = quaternion[3];
444449
// }
445-
current_object.transform.rotation.w = 1;
450+
// else
451+
current_object.transform.rotation.w = 1;
452+
446453

447454
if( inner_simples.size() > 0 ){
448455
for( size_t i = 0; i < inner_simples.size(); i++ ){

0 commit comments

Comments
 (0)