File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/extended_object_detection_node Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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++ ){
You can’t perform that action at this time.
0 commit comments