I try to create one custom ros message and building it into unity. When I try to subscribe this topic get data but unity gives me this error:
But at other project with same setting it works well, how can i solve this problem?
Here is my msg files:
cmake_minimum_required(VERSION 3.10.2)
project(ros_msg)
## specify the output directory for generated header file
# set(MESSAGE_GEN_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
# file(GLOB MESSAGE_FILES "msg/*.msg")
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
message_generation
)
## add msg files here in case of new msgs are created.
add_message_files(
FILES
TooltipCoords.msg
TipCoords.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp rospy std_msgs message_runtime
)
include_directories(${catkin_INCLUDE_DIRS})
<?xml version="1.0"?>
<package format="2">
<name>ros_msg</name>
<version>0.0.0</version>
<description>The my_custom_msgs package</description>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>message_generation</build_depend>
<build_export_depend>roscpp</build_export_depend>
<build_export_depend>rospy</build_export_depend>
<build_export_depend>std_msgs</build_export_depend>
<exec_depend>roscpp</exec_depend>
<exec_depend>rospy</exec_depend>
<exec_depend>std_msgs</exec_depend>
<exec_depend>message_runtime</exec_depend>
</package>
public class TooltipCoordsMsg : Message
{
public const string k_RosMessageName = "ros_msg/TooltipCoords";
public override string RosMessageName => k_RosMessageName;