Skip to content

rosrun jsk_perception image_publisher.py does not work (?) #70

@k-okada

Description

@k-okada

I followed instruction and start

rosrun jsk_perception image_publisher.py _file_name:=$(rospack find jsk_perception)/sample/object_detection_example_1.jpg

and try to visualize the image by

 rosrun image_view image_view image:=/image_publisher/output
[ERROR] [1634453747.476164744]: Skipped loading plugin with error: XML Document '/opt/ros/noetic/share/prosilica_camera/plugins/nodelet_plugins.xml' has no Root Element. This likely means the XML is malformed or missing..
[ INFO] [1634453747.480691611]: Initializing nodelet with 12 worker threads.
[ INFO] [1634453747.555356635]: Using transport "compressed"

but it does not work. Using image_publisher works.

rosrun image_publisher image_publisher $(rospack find jsk_perception)/sample/object_detection_example_1.jpg __name:=image_publisher ~image_raw:=~output

This because I ran

rosrun image_view image_view image:=/edgetpu_object_detector/output/image _image_transport:=compressed

and it update /image_view/image_transport as follows

$ rosparam get /image_view/image_transport
compressed

but image_publishser.py does not support compressed format, to reset transport hint. Ran

rosrun image_view image_view  image:=/image_publisher/output _image_transport:=raw

Or wait for jsk-ros-pkg/jsk_recognition#2637

cc: @hi-kondo

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions