Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

No match for ‘operator=’: srv.request.image_paths = image_path; #138

@Corsair-cxs

Description

@Corsair-cxs

Version

dev-ov2020.3

Reproduction link

https://github.com/intel/ros_openvino_toolkit/blob/dev-ov2020.3/sample/src/image_object_client.cpp

Steps to reproduce

run catkin_make in catkin_ws workspace.

What is expected?

The number or expression on one side of the equal sign should have the same value as the number or expression on the other side of the equal sign.

What is actually happening?

When I tried to build projects, the console reports error: no match for ‘operator=’

error: no match for ‘operator=’ (operand types are ‘object_msgs::DetectObjectRequest_<std::allocator<void> >::_image_paths_type {aka std::vector<std::__cxx11::basic_string<char> >}’ and ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’)
   srv.request.image_paths = image_path;
                             ^~~~~~~~~~
value name type
srv.request.image_paths std::vector<std::__cxx11::basic_string >
image_path std::__cxx11::string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions