Closed AlessandroMelino closed 3 years ago
Finally solved remapping the topic, changing the measure of the depth_image (640x480) and changing the depth escale to 1000 in de configuration.yaml file.
Could you please give elaborated details? How does your configuration.yaml file look like?
Yes of course @frequiem11 , this is my .launch file:
<?xml version="1.0"?>
<launch>
<!-- detector config -->
<arg name="load_params_from_file" default="true" />
<arg name="config_file" default="$(find rwth_upper_body_detector)/config/upper_body_detector_realsense.yaml" />
<arg name="template_file" default="$(find rwth_upper_body_detector)/config/upper_body_template.yaml" />
<arg name="queue_size" default="5" />
<arg name="camera_namespace" default="/head_xtion" />
<!-- input topic names, can either be configured via these args or via remappings -->
<arg name="ground_plane" default="/ground_plane" />
<arg name="depth_image" default="/depth/image_rect_raw" />
<arg name="rgb_image" default="/rgb/image_rect_color" />
<arg name="camera_info_depth" default="/depth/camera_info" />
<!-- output topic names, can either be configured via these args or via remappings -->
<arg name="upper_body_detections" default="/upper_body_detector/detections" />
<arg name="upper_body_bb_centres" default="/upper_body_detector/bounding_box_centres" />
<arg name="upper_body_image" default="/upper_body_detector/image" />
<arg name="upper_body_markers" default="/upper_body_detector/marker_array" />
<arg name="upper_body_roi" default="/upper_body_detector/roi" />
<arg name="upper_body_closest_bb_centres" default="/upper_body_detector/closest_bounding_box_centre" />
<!-- SPENCER integration -->
<arg name="detected_persons" default="/detected_persons"/>
<arg name="detection_id_offset" default="0"/>
<arg name="detection_id_increment" default="1"/>
<rosparam command="load" file="$(arg config_file)" if="$(arg load_params_from_file)"/>
<rosparam command="load" file="$(arg template_file)" if="$(arg load_params_from_file)"/>
<node pkg="rwth_upper_body_detector" type="upper_body_detector" name="upper_body_detector" output="screen" respawn="true">
<param name="queue_size" value="$(arg queue_size)" type="int"/>
<param name="camera_namespace" value="$(arg camera_namespace)" type="string"/>
<param name="ground_plane" value="$(arg ground_plane)" type="string"/>
<param name="depth_image" value="$(arg depth_image)" type="string"/>
<param name="rgb_image" value="$(arg rgb_image)" type="string"/>
<param name="camera_info_depth" value="$(arg camera_info_depth)" type="string"/>
<param name="upper_body_detections" value="$(arg upper_body_detections)" type="string"/>
<param name="upper_body_bb_centres" value="$(arg upper_body_bb_centres)" type="string"/>
<param name="upper_body_image" value="$(arg upper_body_image)" type="string"/>
<param name="upper_body_markers" value="$(arg upper_body_markers)" type="string"/>
<param name="upper_body_roi" value="$(arg upper_body_roi)" type="string"/>
<param name="upper_body_closest_bb_centres" value="$(arg upper_body_closest_bb_centres)" type="string"/>
<param name="detected_persons" value="$(arg detected_persons)" type="string"/>
<param name="detection_id_offset" value="$(arg detection_id_offset)"/>
<param name="detection_id_increment" value="$(arg detection_id_increment)"/>
</node>
</launch>
and my .yaml file:
#=====================================
# Upper body detector parameters
#=====================================
upper_body_detector:
#=====================================
# Distance Range Accepted Detections
#=====================================
distance_range_accepted_detections: 7 # up to what distance detections are kept. All detections after that distance are rejected
#=====================================
# ROI
#=====================================
inc_width_ratio: 0.2
inc_height_ratio: 0.0
region_size_threshold: 10
#======================
# Freespace
#======================
# parameteters for occupancy Map computation
# these parameter define the number of bins for the occupancy histogram
freespace_scaleZ: 20
freespace_scaleX: 20
freespace_minX: -3
freespace_minZ: 0
freespace_maxX: 3
freespace_maxZ: 7
freespace_threshold: 500
freespace_max_depth_to_cons: 7
#====================================
# Detector
#====================================
# parameters upper body detector
evaluation_NMS_threshold_LM: 0.25 # lowering this parameter will reduce the number of false positives! Keep in mind this is distance!
evaluation_inc_height_ratio: 0.2 # parameter for increasing the size of ROI which is then scanned by the depth template
# <<< these parameters are only relevant if you want to perform multi-scaling, evaluation_nr_scales > 1
evaluation_stride: 3
evaluation_scale_stride: 1.03
evaluation_nr_scales: 1
evaluation_inc_cropped_height: 20
evaluation_greedy_NMS_overlap_threshold: 0.3
evaluation_greedy_NMS_threshold: 0.25
# >>>
# scanning corridor, which means for each ROI we scan it with the depth template starting from min_height (in meters) for up to max_height
max_height: 2.1
min_height: 1.0
#======================
# World scale
#======================
WORLD_SCALE: 1.0
#======================
# Depth scale
#======================
DEPTH_SCALE: 1000.0
#===========================
# height and width of images
#===========================
dImWidth: 640
dImHeight: 480
#====================================
# Number of Frames / offset
#====================================
numberFrames: 1000000
nOffset: 0
#====================================
# Size of Template
#====================================
template_size: 30
By the way, it works but no very efficiently.
Best regards. Alessandro
Hello, I'm using ifm3d sensor and I faced same issue. I fix height and width of images and setting Depth scale to 1000 but still getting the warning : No image received and nothing is detected. Any idea How to solve it please ?
Hello everyone.
I am trying to use the example of detection and tracking with an Intel Realsense D435, executing the following command, as explain in tutorial 1:
roslaunch spencer_people_tracking_launch tracking_single_rgbd_sensor.launch
Everything seems to be ok but in rviz, the topic
/spencer/perception_internal/people_detection/rgbd_front_top/upper_body_detector/image
set the warning No image received and nothing is detected.What am I doing wrong?
I post the whole roslaunch code that I am using:
EDIT: I have tested just the Upper Body Detector through a modified launch file of
roslaunch rwth_upper_body_detector upper_body_detector.launch
. The file is the following:The problem is the same, no people detected and no image received on the detector.
Thanks in advance.
Best regards. Alessandro