IntelligentRoboticsLabs / gb_visual_detection_3d

87 stars 32 forks source link

Specify number of detections #41

Open hsaleem1 opened 3 years ago

hsaleem1 commented 3 years ago

Hi there,

Can somebody please guide me that how can we limit the number of detection after running the launch file? As the output is providing repeated and continuous values.

Thanks.

fgonzalezr1998 commented 3 years ago

Hi @hsaleem1 This package doesn't provide a parameter for doing this. So, I can think of different things:

hsaleem1 commented 3 years ago

@fgonzalezr1998, can you please further guide about the third point? I mean how can I execute "kill - 9" signal?

fgonzalezr1998 commented 3 years ago

@hsaleem1 You can use the "system" function from stdlib to execute a "pkill [process_name]" (where process_name" is the process name of darknet_ros_3d). I think it will be "darknet_ros_3d_node" but you can see it with htop or ps. I recommend you to consult its man page.

Also, you can execute a fork() + exec() instead of system(). It provides a greater control over the process son but in this case may be you don't have to.