Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Darren Tsai
tuatara_example
Commits
2e52fb22
Commit
2e52fb22
authored
Apr 19, 2021
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
launch/single_video.launch
View file @
2e52fb22
...
...
@@ -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.mp
4]
</rosparam>
<rosparam
param=
"input_videos_list"
subst_value=
"true"
>
[
/root/data/Week5_2018-04-05/2018-04-05-13-28-38_Dataset_week-A0.h26
4]
</rosparam>
<param
name=
"~show_result"
value=
"true"
/>
<param
name=
"~save_result"
value=
"false"
/>
<remap
from=
"~out/image_with_bboxes"
to=
"image_with_bboxes"
/>
...
...
src/tuatara_client.cpp
View file @
2e52fb22
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment