build details

Show: section status errors & todos local changes recent changes last change in-page changes feedback controls

Exercise: Bag instagram

Modified 2019-09-22 by Andrea Censi

Instructions

Modified 2019-09-22 by Andrea Censi

Create dt-bag-instagram as specified below.

Specification for dt-bag-instagram

Modified 2019-09-22 by Andrea Censi

Write a program dt-bag-instagram that applies a filter to a stream of images stored in a ROS bag.

The syntax to invoke the program is:

$ dt-bag-instagram bag in topic filters bag out

where:

- `bag in` is the input bag;
- `topic` is a string containing the topic to process;
- `filters` is a string, which is a colon-separated list of filters;
- `bag out` is the output bag.

Test data

Modified 2019-09-22 by Andrea Censi

If you don’t have a ROS bag to work on, you can download the test bag example_rosbag_H5.bag.

Useful new APIs

Modified 2019-09-22 by Andrea Censi

Compress an BGR image into a sensor_msgs/CompressedImage message

Modified 2019-09-22 by Andrea Censi

The duckietown_utils (unknown ref software_devel/duckietown-utils-library)

previous warning next (53 of 57) index
warning
I will ignore this because it is an external link. 

 > I do not know what is indicated by the link '#software_devel/duckietown-utils-library'.

Location not known more precisely.

Created by function n/a in module n/a.
package provides the utility function d8_compressed_image_from_cv_image() (unknown ref software_devel/duckietown_utils-d8_compressed_image_from_cv_image)
previous warning next (54 of 57) index
warning
I will ignore this because it is an external link. 

 > I do not know what is indicated by the link '#software_devel/duckietown_utils-d8_compressed_image_from_cv_image'.

Location not known more precisely.

Created by function n/a in module n/a.
that takes a BGR image, compresses it and wraps it into a sensor_msgs/CompressedImage ROS message.

Check that it works

Modified 2019-09-22 by Andrea Censi

Play your bag out ROS bag file and run the following command to make sure that your program is working.

$ rosrun image_view image_view image:=topic _image_transport:=compressed