Skip to content

Conversation

@russkel
Copy link

@russkel russkel commented Aug 5, 2022

There was a conflict between ROS1 and ROS2 interface naming. This fixes it and ROS2 interfaces must be specified with this format: std_msgs/msg/String

Fixes eProsima/Integration-Service#180

Signed-off-by: Russ Webber <russ.webber@greenroomrobotics.com>
@russkel russkel force-pushed the feature/fix-ros2-interfaces branch from 48c04e0 to 59c010f Compare August 5, 2022 06:26
@p-zzg
Copy link

p-zzg commented Feb 10, 2023

Why did I get an error compiling ROS2_SH using "colcon build"

--- stderr: is-ros2
CMake Warning at CMakeLists.txt:50 (message):

          The variable 'IS_ROS2_DISTRO' was not used. You might want to set it to
          specify which ROS 2 version should be used to compile the ROS 2 System Handle.
          By default, a ROS 2 version from the sourced environment will be retrieved automatically.

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_c" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_typesupport_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_cpp"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_cpp" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_cpp" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_c" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_typesupport_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_cpp"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_cpp" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_cpp" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_c" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_typesupport_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_cpp"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_cpp" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_cpp" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_c" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_typesupport_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_cpp"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_cpp" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_cpp" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_c" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_typesupport_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_cpp"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_cpp" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_cpp" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_c" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_typesupport_c"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target "std_msgs::std_msgs__rosidl_generator_cpp"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_introspection_cpp" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:75 (add_library):
Target "is-ros2" links to target
"std_msgs::std_msgs__rosidl_typesupport_cpp" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

@russkel
Copy link
Author

russkel commented Feb 11, 2023

@Heyangq that looks like a workspace issue where it can't find ROS2 libs in the workspace. You need to source ROS2 before you build.

@russkel
Copy link
Author

russkel commented Jun 15, 2023

@MiguelBarro while you are looking at ROS2-SH could you please check out this PR? I thought this was a pretty bad bug and I am confused as to why others aren't running into it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ROS2 SH can only use ROS1 mix files and types.

2 participants