Commit 2e52fb22 authored by Darren Tsai's avatar Darren Tsai
Browse files

minor mods for usyd dataset and stop overwriting bbox from server

parent ed6be1f9
Pipeline #7814 failed with stages
in 3 minutes and 49 seconds
......@@ -3,7 +3,7 @@
<launch>
<node pkg="tuatara_example" type="tuatara_client" name="tuatara_example_client" output="screen" required="true" >
<rosparam param="input_videos_list" subst_value="true"> [$(find tuatara_example)/media/yolo_test.mp4]</rosparam>
<rosparam param="input_videos_list" subst_value="true"> [/root/data/Week5_2018-04-05/2018-04-05-13-28-38_Dataset_week-A0.h264]</rosparam>
<param name="~show_result" value="true"/>
<param name="~save_result" value="false"/>
<remap from="~out/image_with_bboxes" to="image_with_bboxes"/>
......
......@@ -174,15 +174,15 @@ int main (int argc, char **argv)
}
}
if( image_with_bboxes_pub.getNumSubscribers() ) {
cv_bridge::CvImage img_bridge;
sensor_msgs::Image img_ros_msg;
img_bridge.header = goal.images[0].header;
img_bridge.encoding = goal.images[0].encoding;
img_bridge.image = combined;
img_bridge.toImageMsg(img_ros_msg); // from cv_bridge to sensor_msgs::Image
image_with_bboxes_pub.publish(img_ros_msg);
}
// if( image_with_bboxes_pub.getNumSubscribers() ) {
// cv_bridge::CvImage img_bridge;
// sensor_msgs::Image img_ros_msg;
// img_bridge.header = goal.images[0].header;
// img_bridge.encoding = goal.images[0].encoding;
// img_bridge.image = combined;
// img_bridge.toImageMsg(img_ros_msg); // from cv_bridge to sensor_msgs::Image
// image_with_bboxes_pub.publish(img_ros_msg);
// }
if( show ) {
cv::imshow("bboxes", combined);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment