孟令鑫 1 yıl önce
ebeveyn
işleme
b6da66d914

+ 20 - 20
kinglong_msgs/common_msgs.go

@@ -7,42 +7,42 @@ import (
 
 type FaultInfo struct {
 	msg.Package  `ros:"common_msgs"`
-	TimestampSec float64
-	ModuleName   string
-	Version      string
-	ErrorCode    int32
-	Msg          string
-	FaultLevel   int8
-	FaultType    int8
+	TimestampSec float64 `rosname:"timestamp_sec"`
+	ModuleName   string  `rosname:"module_name"`
+	Version      string  `rosname:"version"`
+	ErrorCode    int32   `rosname:"error_code"`
+	Msg          string  `rosname:"msg"`
+	FaultLevel   int8    `rosname:"fault_level"`
+	FaultType    int8    `rosname:"fault_type"`
 }
 
 type Header struct {
 	msg.Package    `ros:"common_msgs"`
-	SequenceNum    int32
-	TimeStamp      float64
-	ModuleName     string
-	Version        string
-	FaultVec       FaultVec
-	TimeStatistics TimeStatistics
+	SequenceNum    int32          `rosname:"sequence_num"`
+	TimeStamp      float64        `rosname:"time_stamp"`
+	ModuleName     string         `rosname:"module_name"`
+	Version        string         `rosname:"version"`
+	FaultVec       FaultVec       `rosname:"fault_vec"`
+	TimeStatistics TimeStatistics `rosname:"time_statistics"`
 }
 
 type FaultVec struct {
 	msg.Package      `ros:"common_msgs"`
-	InfoVec          []FaultInfo
-	ModuleFaultLevel int32
+	InfoVec          []FaultInfo `rosname:"info_vec"`
+	ModuleFaultLevel int32       `rosname:"module_fault_level"`
 }
 
 type TimeStatistics struct {
 	msg.Package      `ros:"common_msgs"`
-	DevTimeStatusMsg []TimeStatus
-	SendingTimestamp float64
+	DevTimeStatusMsg []TimeStatus `rosname:"sequence_num"`
+	SendingTimestamp float64      `rosname:"sequence_num"`
 }
 
 type TimeStatus struct {
 	msg.Package         `ros:"common_msgs"`
-	Dtime               float64
-	SourceNodeName      string
-	DestinationNodeName string
+	Dtime               float64 `rosname:"dtime"`
+	SourceNodeName      string  `rosname:"source_node_name"`
+	DestinationNodeName string  `rosname:"destination_node_name"`
 }
 
 type Retrieval struct {

+ 66 - 0
pjisuv_msgs/common_msgs.go

@@ -1 +1,67 @@
 package pjisuv_msgs
+
+import (
+	"github.com/bluenviron/goroslib/v2/pkg/msg"
+	"github.com/bluenviron/goroslib/v2/pkg/msgs/std_msgs"
+)
+
+type Header struct {
+	msg.Package    `ros:"common_msgs"`
+	SequenceNum    int32          `rosname:"sequence_num"`
+	TimeStamp      float64        `rosname:"time_stamp"`
+	ModuleName     string         `rosname:"module_name"`
+	Version        string         `rosname:"version"`
+	FaultVec       FaultVec       `rosname:"fault_vec"`
+	TimeStatistics TimeStatistics `rosname:"time_statistics"`
+}
+
+type FaultVec struct {
+	msg.Package      `ros:"common_msgs"`
+	InfoVec          []FaultInfo `rosname:"info_vec"`
+	ModuleFaultLevel int32       `rosname:"module_fault_level"`
+}
+
+type TimeStatistics struct {
+	msg.Package      `ros:"common_msgs"`
+	DevTimeStatusMsg []TimeStatus `rosname:"sequence_num"`
+	SendingTimestamp float64      `rosname:"sequence_num"`
+}
+type FaultInfo struct {
+	msg.Package  `ros:"common_msgs"`
+	TimestampSec float64 `rosname:"timestamp_sec"`
+	ModuleName   string  `rosname:"module_name"`
+	Version      string  `rosname:"version"`
+	ErrorCode    int32   `rosname:"error_code"`
+	Msg          string  `rosname:"msg"`
+	FaultLevel   int8    `rosname:"fault_level"`
+	FaultType    int8    `rosname:"fault_type"`
+}
+type TimeStatus struct {
+	msg.Package         `ros:"common_msgs"`
+	Dtime               float64 `rosname:"dtime"`
+	SourceNodeName      string  `rosname:"source_node_name"`
+	DestinationNodeName string  `rosname:"destination_node_name"`
+}
+
+type Retrieval struct {
+	msg.Package            `ros:"common_msgs"`
+	Header                 std_msgs.Header `rosname:"header"`
+	AsVehAccelerationValue float64         `rosname:"AS_Veh_Acceleration_Value"` // 惯导采集到的加速度
+	AsDriverTakeoverReq    int16           `rosname:"AS_Driver_TakeOver_Req"`    // 驾驶员接管提醒(2B9)
+	VcuAccelPosValue       float64         `rosname:"VCU_Accel_Pos_Value"`       // 实际加速踏板位置
+	VcuBrkPelPosValue      float64         `rosname:"VCU_BrkPel_Pos_Value"`      // 实际制动踏板位置
+	VcuRealSpeed           float64         `rosname:"VCU_Real_Speed"`            // 当前车速
+	VcuCurrentGear         int16           `rosname:"VCU_Current_Gear"`          // 当前档位
+	VcuParkingSt           int16           `rosname:"VCU_Parking_St"`            // 当前P档位
+	AutoDLimitInReason     int16           `rosname:"AutoD_Limitin_Reason"`      // 限制进入自动驾驶原因
+	EmergencyStopReason    int16           `rosname:"Emergency_Stop_Reason"`     // 紧急停车激活原因
+	VcuDriverTakeoverReq   int16           `rosname:"VCU_Driver_TakeOver_Req"`   // 驾驶员接管提醒(2BA)
+	VcuVehicleDriveModeSt  int16           `rosname:"VCU_Vehicle_Drive_Mode_St"` // 车辆驾驶模式
+	AutoDOutReason         int16           `rosname:"AutoD_Out_Reason"`          // 退出自动驾驶原因
+	BrakeSysFaultSt        int16           `rosname:"Brak_Sys_Fault_St"`         // 制动系统故障
+	StrgAngleRealValue     float64         `rosname:"Strg_Angle_Real_Value"`     // 方向盘实际转角
+	StrgAngleSpdValue      float64         `rosname:"Strg_Angle_Spd_Value"`      // 方向盘当前实际速度反馈
+	StrgWorkmodeSt         int16           `rosname:"Strg_WorkMode_St"`          // 当前系统实际工作模式
+	BCHornSt               int16           `rosname:"BC_Horn_St"`                // 喇叭状态
+
+}

+ 95 - 0
pjisuv_msgs/perception_msgs.go

@@ -1 +1,96 @@
 package pjisuv_msgs
+
+import (
+	"github.com/bluenviron/goroslib/v2/pkg/msg"
+	"github.com/bluenviron/goroslib/v2/pkg/msgs/std_msgs"
+)
+
+type PerceptionObjects struct {
+	msg.Package `ros:"perception_msgs"`
+	Header      Header         `rosname:"header"`
+	Objs        []Object       `rosname:"objs"`
+	Cells       []ObstacleCell `rosname:"cells"`
+}
+
+type Object struct {
+	msg.Package    `ros:"perception_msgs"`
+	Id             uint32         `rosname:"id"`
+	X              float32        `rosname:"x"`
+	Y              float32        `rosname:"y"`
+	Z              float32        `rosname:"z"`
+	Vxrel          float32        `rosname:"vxrel"`
+	Vyrel          float32        `rosname:"vyrel"`
+	Xabs           float64        `rosname:"xabs"`
+	Yabs           float64        `rosname:"yabs"`
+	Vxabs          float32        `rosname:"vxabs"`
+	Vyabs          float32        `rosname:"vyabs"`
+	Width          float32        `rosname:"width"`
+	Length         float32        `rosname:"length"`
+	Height         float32        `rosname:"height"`
+	Speed          float32        `rosname:"speed"`
+	Heading        float32        `rosname:"heading"`
+	Type           uint8          `rosname:"type"`
+	Source         uint8          `rosname:"source"`
+	Confidence     float32        `rosname:"confidence"`
+	Age            uint32         `rosname:"age"`
+	Velocitystatus uint8          `rosname:"velocitystatus"`
+	Cells          []ObstacleCell `rosname:"cells"`
+}
+
+type ObstacleCell struct {
+	msg.Package `ros:"perception_msgs"`
+	Idc         int32   `rosname:"idc"`
+	X           float64 `rosname:"x"`
+	Y           float64 `rosname:"y"`
+	Xg          float64 `rosname:"xg"`
+	Yg          float64 `rosname:"yg"`
+}
+
+type PerceptionLocalization struct {
+	msg.Package `ros:"perception_msgs"`
+
+	Header           std_msgs.Header `rosname:"header"`
+	FrameUnmber      uint64          `rosname:"frame_unmber"`
+	FusionLevel      int8            `rosname:"fusion_level"`
+	Status           int8            `rosname:"status"`
+	Roll             float64         `rosname:"roll"`
+	Pitch            float64         `rosname:"pitch"`
+	Yaw              float64         `rosname:"yaw"`
+	RollStd          float32         `rosname:"roll_std"`
+	PitchStd         float32         `rosname:"pitch_std"`
+	YawStd           float32         `rosname:"yaw_std"`
+	Qw               float64         `rosname:"qw"`
+	Qx               float64         `rosname:"qx"`
+	Qy               float64         `rosname:"qy"`
+	Qz               float64         `rosname:"qz"`
+	AngularVelocityX float64         `rosname:"angular_velocity_x"`
+	AngularVelocityY float64         `rosname:"angular_velocity_y"`
+	AngularVelocityZ float64         `rosname:"angular_velocity_z"`
+	Latitude         float64         `rosname:"latitude"`
+	Longitude        float64         `rosname:"longitude"`
+	Altitude         float64         `rosname:"altitude"`
+	LatitudeStd      float32         `rosname:"latitude_std"`
+	LongitudeStd     float32         `rosname:"longitude_std"`
+	AltitudeStd      float32         `rosname:"altitude_std"`
+	PositionX        float64         `rosname:"position_x"`
+	PositionY        float64         `rosname:"position_y"`
+	PositionZ        float64         `rosname:"position_z"`
+	PositionXStd     float32         `rosname:"position_x_std"`
+	PositionYStd     float32         `rosname:"position_y_std"`
+	PositionZStd     float32         `rosname:"position_z_std"`
+	VelocityX        float64         `rosname:"velocity_x"`
+	VelocityY        float64         `rosname:"velocity_y"`
+	VelocityZ        float64         `rosname:"velocity_z"`
+	VelocityXStd     float32         `rosname:"velocity_x_std"`
+	VelocityYStd     float32         `rosname:"velocity_y_std"`
+	VelocityZStd     float32         `rosname:"velocity_z_std"`
+	VelocityRx       float64         `rosname:"velocity_rx"`
+	VelocityRy       float64         `rosname:"velocity_ry"`
+	VelocityRz       float64         `rosname:"velocity_rz"`
+	VelocityRxStd    float32         `rosname:"velocity_rx_std"`
+	VelocityRyStd    float32         `rosname:"velocity_ry_std"`
+	VelocityRzStd    float32         `rosname:"velocity_rz_std"`
+	AccelX           float64         `rosname:"accel_x"`
+	AccelY           float64         `rosname:"accel_y"`
+	AccelZ           float64         `rosname:"accel_z"`
+}

+ 0 - 7
pjisuv_msgs/原始msg文件/common_msgs/msg/FaultInfo.msg

@@ -1,7 +0,0 @@
-float64 	timestamp_sec
-string 	module_name
-string 	version
-int32 	error_code
-string 	msg
-int8 	fault_level
-int8 	fault_type

+ 0 - 2
pjisuv_msgs/原始msg文件/common_msgs/msg/FaultVec.msg

@@ -1,2 +0,0 @@
-FaultInfo[] 	info_vec
-int32 	module_fault_level

+ 0 - 6
pjisuv_msgs/原始msg文件/common_msgs/msg/Header.msg

@@ -1,6 +0,0 @@
-int32 sequence_num
-float64 time_stamp
-string 	module_name
-string 	version
-FaultVec 	fault_vec
-TimeStatistics 	time_statistics

+ 0 - 3
pjisuv_msgs/原始msg文件/common_msgs/msg/TimeStatus.msg

@@ -1,3 +0,0 @@
-float64 	dtime
-string 	source_node_name
-string 	destination_node_name

+ 0 - 2
pjisuv_msgs/原始msg文件/perception_msgs/cmake/perception_msgs-msg-extras.cmake

@@ -1,2 +0,0 @@
-set(perception_msgs_MESSAGE_FILES "msg/CameraObjectList.msg;msg/CameraObject.msg;msg/CameraTrafficLightList.msg;msg/CameraTrafficLight.msg;msg/CameraTrafficSignList.msg;msg/CameraTrafficSign.msg;msg/LidarObjectList.msg;msg/LidarObject.msg;msg/Object.msg;msg/ObstacleCell.msg;msg/PerceptionObjects.msg;msg/Point2D.msg;msg/RadarObjectList.msg;msg/RadarObject.msg;msg/PerceptionLocalization.msg;msg/SingleTrafficLight.msg;msg/TrafficLightDetection.msg;msg/UltraCell.msg;msg/UltrasonicParking.msg;msg/cicv_moving_object.msg;msg/cicv_moving_objects.msg;msg/TrajectoryPoint.msg;msg/TrajectoryInfo.msg;msg/Trajectory.msg;msg/CtrlTest.msg;msg/Polygonbus.msg;msg/PolygonStamped.msg;msg/Point64.msg;msg/GpsPosition.msg;msg/centroids.msg")
-set(perception_msgs_SERVICE_FILES "")

+ 0 - 4
pjisuv_msgs/原始msg文件/perception_msgs/cmake/perception_msgs-msg-paths.cmake

@@ -1,4 +0,0 @@
-# generated from genmsg/cmake/pkg-msg-paths.cmake.installspace.in
-
-_prepend_path("${perception_msgs_DIR}/.." "msg" perception_msgs_MSG_INCLUDE_DIRS UNIQUE)
-set(perception_msgs_MSG_DEPENDENCIES std_msgs;geometry_msgs;sensor_msgs;common_msgs)

+ 0 - 14
pjisuv_msgs/原始msg文件/perception_msgs/cmake/perception_msgsConfig-version.cmake

@@ -1,14 +0,0 @@
-# generated from catkin/cmake/template/pkgConfig-version.cmake.in
-set(PACKAGE_VERSION "0.0.0")
-
-set(PACKAGE_VERSION_EXACT False)
-set(PACKAGE_VERSION_COMPATIBLE False)
-
-if("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "${PACKAGE_VERSION}")
-  set(PACKAGE_VERSION_EXACT True)
-  set(PACKAGE_VERSION_COMPATIBLE True)
-endif()
-
-if("${PACKAGE_FIND_VERSION}" VERSION_LESS "${PACKAGE_VERSION}")
-  set(PACKAGE_VERSION_COMPATIBLE True)
-endif()

+ 0 - 257
pjisuv_msgs/原始msg文件/perception_msgs/cmake/perception_msgsConfig.cmake

@@ -1,257 +0,0 @@
-# generated from catkin/cmake/template/pkgConfig.cmake.in
-
-# append elements to a list and remove existing duplicates from the list
-# copied from catkin/cmake/list_append_deduplicate.cmake to keep pkgConfig
-# self contained
-macro(_list_append_deduplicate listname)
-  if(NOT "${ARGN}" STREQUAL "")
-    if(${listname})
-      list(REMOVE_ITEM ${listname} ${ARGN})
-    endif()
-    list(APPEND ${listname} ${ARGN})
-  endif()
-endmacro()
-
-# append elements to a list if they are not already in the list
-# copied from catkin/cmake/list_append_unique.cmake to keep pkgConfig
-# self contained
-macro(_list_append_unique listname)
-  foreach(_item ${ARGN})
-    list(FIND ${listname} ${_item} _index)
-    if(_index EQUAL -1)
-      list(APPEND ${listname} ${_item})
-    endif()
-  endforeach()
-endmacro()
-
-# pack a list of libraries with optional build configuration keywords
-# copied from catkin/cmake/catkin_libraries.cmake to keep pkgConfig
-# self contained
-macro(_pack_libraries_with_build_configuration VAR)
-  set(${VAR} "")
-  set(_argn ${ARGN})
-  list(LENGTH _argn _count)
-  set(_index 0)
-  while(${_index} LESS ${_count})
-    list(GET _argn ${_index} lib)
-    if("${lib}" MATCHES "^(debug|optimized|general)$")
-      math(EXPR _index "${_index} + 1")
-      if(${_index} EQUAL ${_count})
-        message(FATAL_ERROR "_pack_libraries_with_build_configuration() the list of libraries '${ARGN}' ends with '${lib}' which is a build configuration keyword and must be followed by a library")
-      endif()
-      list(GET _argn ${_index} library)
-      list(APPEND ${VAR} "${lib}${CATKIN_BUILD_CONFIGURATION_KEYWORD_SEPARATOR}${library}")
-    else()
-      list(APPEND ${VAR} "${lib}")
-    endif()
-    math(EXPR _index "${_index} + 1")
-  endwhile()
-endmacro()
-
-# unpack a list of libraries with optional build configuration keyword prefixes
-# copied from catkin/cmake/catkin_libraries.cmake to keep pkgConfig
-# self contained
-macro(_unpack_libraries_with_build_configuration VAR)
-  set(${VAR} "")
-  foreach(lib ${ARGN})
-    string(REGEX REPLACE "^(debug|optimized|general)${CATKIN_BUILD_CONFIGURATION_KEYWORD_SEPARATOR}(.+)$" "\\1;\\2" lib "${lib}")
-    list(APPEND ${VAR} "${lib}")
-  endforeach()
-endmacro()
-
-
-if(perception_msgs_CONFIG_INCLUDED)
-  return()
-endif()
-set(perception_msgs_CONFIG_INCLUDED TRUE)
-
-# set variables for source/devel/install prefixes
-if("FALSE" STREQUAL "TRUE")
-  set(perception_msgs_SOURCE_PREFIX /home/pj1.1/autodriver/src/common/perception_msgs)
-  set(perception_msgs_DEVEL_PREFIX /home/pj1.1/autodriver/devel)
-  set(perception_msgs_INSTALL_PREFIX "")
-  set(perception_msgs_PREFIX ${perception_msgs_DEVEL_PREFIX})
-else()
-  set(perception_msgs_SOURCE_PREFIX "")
-  set(perception_msgs_DEVEL_PREFIX "")
-  set(perception_msgs_INSTALL_PREFIX /home/pj1.1/autodriver/install)
-  set(perception_msgs_PREFIX ${perception_msgs_INSTALL_PREFIX})
-endif()
-
-if(CMAKE_CROSSCOMPILING)
-  if("FALSE" STREQUAL "TRUE")
-    # can not disable host filesystem altogether; otherwise files in src/devel are no longer found
-    set(_find_root_path_both CMAKE_FIND_ROOT_PATH_BOTH)
-  else()
-    set(_find_root_path_both)
-  endif()
-endif()
-
-# warn when using a deprecated package
-if(NOT "" STREQUAL "")
-  set(_msg "WARNING: package 'perception_msgs' is deprecated")
-  # append custom deprecation text if available
-  if(NOT "" STREQUAL "TRUE")
-    set(_msg "${_msg} ()")
-  endif()
-  message("${_msg}")
-endif()
-
-# flag project as catkin-based to distinguish if a find_package()-ed project is a catkin project
-set(perception_msgs_FOUND_CATKIN_PROJECT TRUE)
-
-if(NOT "include " STREQUAL " ")
-  set(perception_msgs_INCLUDE_DIRS "")
-  set(_include_dirs "include")
-  if(NOT " " STREQUAL " ")
-    set(_report "Check the issue tracker '' and consider creating a ticket if the problem has not been reported yet.")
-  elseif(NOT " " STREQUAL " ")
-    set(_report "Check the website '' for information and consider reporting the problem.")
-  else()
-    set(_report "Report the problem to the maintainer 'nvidia <zhangqing@china-icv.cn>' and request to fix the problem.")
-  endif()
-  foreach(idir ${_include_dirs})
-    if(IS_ABSOLUTE ${idir} AND CMAKE_CROSSCOMPILING)
-      get_filename_component(idir_path ${idir} DIRECTORY)
-      get_filename_component(idir_name ${idir} NAME)
-      set(include_dir_path "include_dir_path-NOTFOUND")
-      # use find_path to locate absolute path nested under potential root path
-      find_path(include_dir_path ${idir_name}
-        PATHS ${idir_path}
-        NO_DEFAULT_PATH ${_find_root_path_both})
-      if(NOT include_dir_path)
-        message(FATAL_ERROR "Project 'perception_msgs' specifies '${idir}' as an include dir, which is not found.  It does not exist in any of the root filesystems.  Ask the maintainer 'nvidia <zhangqing@china-icv.cn>' to fix it.")
-      endif()
-      set(include "${include_dir_path}/${idir_name}")
-    elseif(IS_ABSOLUTE ${idir} AND IS_DIRECTORY ${idir})
-      set(include ${idir})
-    elseif("${idir} " STREQUAL "include ")
-      get_filename_component(include "${perception_msgs_DIR}/../../../include" ABSOLUTE)
-      if(NOT IS_DIRECTORY ${include})
-        message(FATAL_ERROR "Project 'perception_msgs' specifies '${idir}' as an include dir, which is not found.  It does not exist in '${include}'.  ${_report}")
-      endif()
-    else()
-      message(FATAL_ERROR "Project 'perception_msgs' specifies '${idir}' as an include dir, which is not found.  It does neither exist as an absolute directory nor in '\${prefix}/${idir}'.  ${_report}")
-    endif()
-    _list_append_unique(perception_msgs_INCLUDE_DIRS ${include})
-  endforeach()
-endif()
-
-set(libraries "")
-foreach(library ${libraries})
-  # keep build configuration keywords, target names and absolute libraries as-is
-  if("${library}" MATCHES "^(debug|optimized|general)$")
-    list(APPEND perception_msgs_LIBRARIES ${library})
-  elseif(${library} MATCHES "^-l")
-    list(APPEND perception_msgs_LIBRARIES ${library})
-  elseif(${library} MATCHES "^-")
-    # This is a linker flag/option (like -pthread)
-    # There's no standard variable for these, so create an interface library to hold it
-    if(NOT perception_msgs_NUM_DUMMY_TARGETS)
-      set(perception_msgs_NUM_DUMMY_TARGETS 0)
-    endif()
-    # Make sure the target name is unique
-    set(interface_target_name "catkin::perception_msgs::wrapped-linker-option${perception_msgs_NUM_DUMMY_TARGETS}")
-    while(TARGET "${interface_target_name}")
-      math(EXPR perception_msgs_NUM_DUMMY_TARGETS "${perception_msgs_NUM_DUMMY_TARGETS}+1")
-      set(interface_target_name "catkin::perception_msgs::wrapped-linker-option${perception_msgs_NUM_DUMMY_TARGETS}")
-    endwhile()
-    add_library("${interface_target_name}" INTERFACE IMPORTED)
-    if("${CMAKE_VERSION}" VERSION_LESS "3.13.0")
-      set_property(
-        TARGET
-        "${interface_target_name}"
-        APPEND PROPERTY
-        INTERFACE_LINK_LIBRARIES "${library}")
-    else()
-      target_link_options("${interface_target_name}" INTERFACE "${library}")
-    endif()
-    list(APPEND perception_msgs_LIBRARIES "${interface_target_name}")
-  elseif(TARGET ${library})
-    list(APPEND perception_msgs_LIBRARIES ${library})
-  elseif(IS_ABSOLUTE ${library} AND CMAKE_CROSSCOMPILING)
-    get_filename_component(lib_path ${library} DIRECTORY)
-    get_filename_component(lib_name ${library} NAME)
-    set(lib "lib-NOTFOUND")
-    # use find_library to locate library given by absolute path nested under potential root path
-    find_library(lib ${lib_name}
-      PATHS ${lib_path}
-      NO_DEFAULT_PATH ${_find_root_path_both})
-    if(NOT lib)
-      message(FATAL_ERROR "Project '${PROJECT_NAME}' tried to find library '${library}'.  The library is neither a target nor built/installed properly.  Did you compile project 'perception_msgs'?  Did you find_package() it before the subdirectory containing its code is included?")
-    endif()
-    _list_append_unique(perception_msgs_LIBRARY_DIRS ${lib_path})
-    list(APPEND perception_msgs_LIBRARIES ${lib})
-  elseif(IS_ABSOLUTE ${library})
-    list(APPEND perception_msgs_LIBRARIES ${library})
-  else()
-    set(lib_path "")
-    set(lib "lib-NOTFOUND")
-    # since the path where the library is found is returned we have to iterate over the paths manually
-    foreach(path /home/pj1.1/autodriver/install/lib;/opt/ros/melodic/lib;/opt/bstos/2.2.2.4/sysroots/x86_64-bstsdk-linux/opt/ros/melodic/lib)
-      find_library(lib ${library}
-        PATHS ${path}
-        NO_DEFAULT_PATH ${_find_root_path_both})
-      if(lib)
-        get_filename_component(lib_path ${lib} DIRECTORY)
-        break()
-      endif()
-    endforeach()
-    if(lib)
-      _list_append_unique(perception_msgs_LIBRARY_DIRS ${lib_path})
-      list(APPEND perception_msgs_LIBRARIES ${lib})
-    else()
-      # as a fall back for non-catkin libraries try to search globally
-      find_library(lib ${library})
-      if(NOT lib)
-        message(FATAL_ERROR "Project '${PROJECT_NAME}' tried to find library '${library}'.  The library is neither a target nor built/installed properly.  Did you compile project 'perception_msgs'?  Did you find_package() it before the subdirectory containing its code is included?")
-      endif()
-      list(APPEND perception_msgs_LIBRARIES ${lib})
-    endif()
-  endif()
-endforeach()
-
-set(perception_msgs_EXPORTED_TARGETS "perception_msgs_generate_messages_cpp;perception_msgs_generate_messages_nodejs;perception_msgs_generate_messages_py")
-# create dummy targets for exported code generation targets to make life of users easier
-foreach(t ${perception_msgs_EXPORTED_TARGETS})
-  if(NOT TARGET ${t})
-    add_custom_target(${t})
-  endif()
-endforeach()
-
-set(depends "message_runtime;std_msgs;geometry_msgs;sensor_msgs;common_msgs")
-foreach(depend ${depends})
-  string(REPLACE " " ";" depend_list ${depend})
-  # the package name of the dependency must be kept in a unique variable so that it is not overwritten in recursive calls
-  list(GET depend_list 0 perception_msgs_dep)
-  list(LENGTH depend_list count)
-  if(${count} EQUAL 1)
-    # simple dependencies must only be find_package()-ed once
-    if(NOT ${perception_msgs_dep}_FOUND)
-      find_package(${perception_msgs_dep} REQUIRED NO_MODULE)
-    endif()
-  else()
-    # dependencies with components must be find_package()-ed again
-    list(REMOVE_AT depend_list 0)
-    find_package(${perception_msgs_dep} REQUIRED NO_MODULE ${depend_list})
-  endif()
-  _list_append_unique(perception_msgs_INCLUDE_DIRS ${${perception_msgs_dep}_INCLUDE_DIRS})
-
-  # merge build configuration keywords with library names to correctly deduplicate
-  _pack_libraries_with_build_configuration(perception_msgs_LIBRARIES ${perception_msgs_LIBRARIES})
-  _pack_libraries_with_build_configuration(_libraries ${${perception_msgs_dep}_LIBRARIES})
-  _list_append_deduplicate(perception_msgs_LIBRARIES ${_libraries})
-  # undo build configuration keyword merging after deduplication
-  _unpack_libraries_with_build_configuration(perception_msgs_LIBRARIES ${perception_msgs_LIBRARIES})
-
-  _list_append_unique(perception_msgs_LIBRARY_DIRS ${${perception_msgs_dep}_LIBRARY_DIRS})
-  list(APPEND perception_msgs_EXPORTED_TARGETS ${${perception_msgs_dep}_EXPORTED_TARGETS})
-endforeach()
-
-set(pkg_cfg_extras "perception_msgs-msg-extras.cmake")
-foreach(extra ${pkg_cfg_extras})
-  if(NOT IS_ABSOLUTE ${extra})
-    set(extra ${perception_msgs_DIR}/${extra})
-  endif()
-  include(${extra})
-endforeach()

+ 0 - 21
pjisuv_msgs/原始msg文件/perception_msgs/msg/Object.msg

@@ -1,21 +0,0 @@
-uint32 id 						# obstacle ID.
-float32 x  		# relative distance of x, VCS, unit: m
-float32 y 		# relative distance of y, VCS, unit: m
-float32 z 						# relative distance of z, VCS, unit: m
-float32 vxrel     # relative speed of x, VCS, unit: m/s
-float32 vyrel     # relative speed of y, VCS, unit: m/s
-float64 xabs      # relative distance of x, VCS, unit: m
-float64 yabs      # relative distance of y, VCS, unit: m
-float32 vxabs     # relative speed of x, VCS, unit: m/s
-float32 vyabs     # relative speed of y, VCS, unit: m/s
-float32 width     # unit: m
-float32 length    # unit: m
-float32 height     				# unit: m
-float32 speed      				# unit: m/s
-float32 heading      			# unit: du
-uint8 type 					# UNKNOWN_TYPE=0, PEDESTRIAN_TYPE=1, CAR_TYPE=2, TRUCK_TYPE=3, Bicycle_TYPE=4, Tricycle_TYPE=5, Traffic_Cone_TYPE=6
-uint8 source 					# VISION=0x0000 MOBILEYE=0x0001 LIDAR=0x0100 RADAR=0x0200 ARS_0=0x0201   ARS_1=0x0202  ARS_2=0x0203  ARS_3=0x0204
-float32 confidence				# 0.0~1.0
-uint32 age						#
-uint8 velocitystatus 			#
-ObstacleCell[] cells

+ 0 - 5
pjisuv_msgs/原始msg文件/perception_msgs/msg/ObstacleCell.msg

@@ -1,5 +0,0 @@
-int32 idc
-float64 x
-float64 y
-float64 xg
-float64 yg

+ 0 - 59
pjisuv_msgs/原始msg文件/perception_msgs/msg/PerceptionLocalization.msg

@@ -1,59 +0,0 @@
-
-Header header
-
-uint64 frame_unmber
-int8 fusion_level
-int8 status  #4:固定解,5:浮点解,2:伪距差分,1:单点解
-#rotation
-float64 roll      # x,R, car body (FLU)
-float64 pitch      # y,R, car body (FLU)
-float64 yaw      # z,R, car body (FLU) utm (0,360)  0--east, 90--north
-float32 roll_std	
-float32 pitch_std
-float32 yaw_std 
-
-float64 qw          # w
-float64 qx          # x
-float64 qy          # y
-float64 qz          # z
-
-float64 angular_velocity_x	
-float64 angular_velocity_y
-float64 angular_velocity_z 
-
-
-#position
-float64 latitude	
-float64 longitude
-float64 altitude
-float32 latitude_std	
-float32 longitude_std
-float32 altitude_std
-
-float64 position_x  # utm_east
-float64 position_y  # utm_north
-float64 position_z  # utm_up
-float32 position_x_std	
-float32 position_y_std
-float32 position_z_std
-
-float64 velocity_x  # utm_east_speed
-float64 velocity_y  # utm_north_speed
-float64 velocity_z  # utm_up_speed
-float32 velocity_x_std	
-float32 velocity_y_std
-float32 velocity_z_std
-
-float64 velocity_rx  # ins_x_speed
-float64 velocity_ry  # ins_y_speed
-float64 velocity_rz  # ins_z_speed
-float32 velocity_rx_std	
-float32 velocity_ry_std
-float32 velocity_rz_std
-
-float64 accel_x     # R, car body (RFU)
-float64 accel_y     # F, car body (RFU)
-float64 accel_z     # U, car body (RFU)
-
-
-

+ 0 - 3
pjisuv_msgs/原始msg文件/perception_msgs/msg/PerceptionObjects.msg

@@ -1,3 +0,0 @@
-common_msgs/Header header
-Object[] objs
-ObstacleCell[] cells

+ 0 - 24
pjisuv_msgs/原始msg文件/perception_msgs/package.xml

@@ -1,24 +0,0 @@
-<?xml version="1.0"?>
-<package format="2">
-  <name>perception_msgs</name>
-  <version>0.0.0</version>
-  <description>The perception_msgs package</description>
-
-  <maintainer email="zhangqing@china-icv.cn">nvidia</maintainer>
-  <license>Apache 2</license>
-  <buildtool_depend>catkin</buildtool_depend>
-
-  <build_depend>message_generation</build_depend>
-  <build_depend>std_msgs</build_depend>
-  <build_depend>geometry_msgs</build_depend>
-  <build_depend>sensor_msgs</build_depend>
-  <build_depend>common_msgs</build_depend>
-  <exec_depend>message_runtime</exec_depend>
-  <exec_depend>std_msgs</exec_depend>
-  <exec_depend>geometry_msgs</exec_depend>
-  <exec_depend>sensor_msgs</exec_depend>
-  <exec_depend>common_msgs</exec_depend>
-
-  <export>
-  </export>
-</package>