小乌龟控制完成

This commit is contained in:
Cx330 committed 2025-10-11 21:52:39 +08:00
1 parent b09567204c
commit cdcf44c156
329 files changed
+16783

No files matched your search

@@ -0,0 +1,2 @@
set(Aee1220310013_MESSAGE_FILES "")
set(Aee1220310013_SERVICE_FILES "/home/zmn/下载/ros_turtlecontrol/src/Aee1220310013/srv/ProcessID.srv")
@@ -0,0 +1,4 @@
# generated from genmsg/cmake/pkg-msg-paths.cmake.develspace.in
set(Aee1220310013_MSG_INCLUDE_DIRS "")
set(Aee1220310013_MSG_DEPENDENCIES std_msgs)
@@ -0,0 +1,14 @@
# 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,0 +1,225 @@
# 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(Aee1220310013_CONFIG_INCLUDED)
return()
endif()
set(Aee1220310013_CONFIG_INCLUDED TRUE)
# set variables for source/devel/install prefixes
if("TRUE" STREQUAL "TRUE")
set(Aee1220310013_SOURCE_PREFIX /home/zmn/下载/ros_turtlecontrol/src/Aee1220310013)
set(Aee1220310013_DEVEL_PREFIX /home/zmn/下载/ros_turtlecontrol/devel)
set(Aee1220310013_INSTALL_PREFIX "")
set(Aee1220310013_PREFIX ${Aee1220310013_DEVEL_PREFIX})
else()
set(Aee1220310013_SOURCE_PREFIX "")
set(Aee1220310013_DEVEL_PREFIX "")
set(Aee1220310013_INSTALL_PREFIX /home/zmn/下载/ros_turtlecontrol/install)
set(Aee1220310013_PREFIX ${Aee1220310013_INSTALL_PREFIX})
endif()
# warn when using a deprecated package
if(NOT "" STREQUAL "")
set(_msg "WARNING: package 'Aee1220310013' 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(Aee1220310013_FOUND_CATKIN_PROJECT TRUE)
if(NOT "/home/zmn/下载/ros_turtlecontrol/devel/include " STREQUAL " ")
set(Aee1220310013_INCLUDE_DIRS "")
set(_include_dirs "/home/zmn/下载/ros_turtlecontrol/devel/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 'root <root@todo.todo>' and request to fix the problem.")
endif()
foreach(idir ${_include_dirs})
if(IS_ABSOLUTE ${idir} AND IS_DIRECTORY ${idir})
set(include ${idir})
elseif("${idir} " STREQUAL "include ")
get_filename_component(include "${Aee1220310013_DIR}/../../../include" ABSOLUTE)
if(NOT IS_DIRECTORY ${include})
message(FATAL_ERROR "Project 'Aee1220310013' specifies '${idir}' as an include dir, which is not found. It does not exist in '${include}'. ${_report}")
endif()
else()
message(FATAL_ERROR "Project 'Aee1220310013' specifies '${idir}' as an include dir, which is not found. It does neither exist as an absolute directory nor in '/home/zmn/下载/ros_turtlecontrol/src/Aee1220310013/${idir}'. ${_report}")
endif()
_list_append_unique(Aee1220310013_INCLUDE_DIRS ${include})
endforeach()
endif()
set(libraries "")
foreach(library ${libraries})
# keep build configuration keywords, generator expressions, target names, and absolute libraries as-is
if("${library}" MATCHES "^(debug|optimized|general)$")
list(APPEND Aee1220310013_LIBRARIES ${library})
elseif(${library} MATCHES "^-l")
list(APPEND Aee1220310013_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 Aee1220310013_NUM_DUMMY_TARGETS)
set(Aee1220310013_NUM_DUMMY_TARGETS 0)
endif()
# Make sure the target name is unique
set(interface_target_name "catkin::Aee1220310013::wrapped-linker-option${Aee1220310013_NUM_DUMMY_TARGETS}")
while(TARGET "${interface_target_name}")
math(EXPR Aee1220310013_NUM_DUMMY_TARGETS "${Aee1220310013_NUM_DUMMY_TARGETS}+1")
set(interface_target_name "catkin::Aee1220310013::wrapped-linker-option${Aee1220310013_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 Aee1220310013_LIBRARIES "${interface_target_name}")
elseif(${library} MATCHES "^\\$<")
list(APPEND Aee1220310013_LIBRARIES ${library})
elseif(TARGET ${library})
list(APPEND Aee1220310013_LIBRARIES ${library})
elseif(IS_ABSOLUTE ${library})
list(APPEND Aee1220310013_LIBRARIES ${library})
else()
set(lib_path "")
set(lib "${library}-NOTFOUND")
# since the path where the library is found is returned we have to iterate over the paths manually
foreach(path /home/zmn/下载/ros_turtlecontrol/devel/lib;/opt/ros/noetic/lib)
find_library(lib ${library}
PATHS ${path}
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
if(lib)
set(lib_path ${path})
break()
endif()
endforeach()
if(lib)
_list_append_unique(Aee1220310013_LIBRARY_DIRS ${lib_path})
list(APPEND Aee1220310013_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 'Aee1220310013'? Did you find_package() it before the subdirectory containing its code is included?")
endif()
list(APPEND Aee1220310013_LIBRARIES ${lib})
endif()
endif()
endforeach()
set(Aee1220310013_EXPORTED_TARGETS "Aee1220310013_generate_messages_cpp;Aee1220310013_generate_messages_eus;Aee1220310013_generate_messages_lisp;Aee1220310013_generate_messages_nodejs;Aee1220310013_generate_messages_py")
# create dummy targets for exported code generation targets to make life of users easier
foreach(t ${Aee1220310013_EXPORTED_TARGETS})
if(NOT TARGET ${t})
add_custom_target(${t})
endif()
endforeach()
set(depends "")
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 Aee1220310013_dep)
list(LENGTH depend_list count)
if(${count} EQUAL 1)
# simple dependencies must only be find_package()-ed once
if(NOT ${Aee1220310013_dep}_FOUND)
find_package(${Aee1220310013_dep} REQUIRED NO_MODULE)
endif()
else()
# dependencies with components must be find_package()-ed again
list(REMOVE_AT depend_list 0)
find_package(${Aee1220310013_dep} REQUIRED NO_MODULE ${depend_list})
endif()
_list_append_unique(Aee1220310013_INCLUDE_DIRS ${${Aee1220310013_dep}_INCLUDE_DIRS})
# merge build configuration keywords with library names to correctly deduplicate
_pack_libraries_with_build_configuration(Aee1220310013_LIBRARIES ${Aee1220310013_LIBRARIES})
_pack_libraries_with_build_configuration(_libraries ${${Aee1220310013_dep}_LIBRARIES})
_list_append_deduplicate(Aee1220310013_LIBRARIES ${_libraries})
# undo build configuration keyword merging after deduplication
_unpack_libraries_with_build_configuration(Aee1220310013_LIBRARIES ${Aee1220310013_LIBRARIES})
_list_append_unique(Aee1220310013_LIBRARY_DIRS ${${Aee1220310013_dep}_LIBRARY_DIRS})
_list_append_deduplicate(Aee1220310013_EXPORTED_TARGETS ${${Aee1220310013_dep}_EXPORTED_TARGETS})
endforeach()
set(pkg_cfg_extras "Aee1220310013-msg-extras.cmake")
foreach(extra ${pkg_cfg_extras})
if(NOT IS_ABSOLUTE ${extra})
set(extra ${Aee1220310013_DIR}/${extra})
endif()
include(${extra})
endforeach()
@@ -0,0 +1,9 @@
(cl:in-package :asdf)
(defsystem "Aee1220310013-srv"
:depends-on (:roslisp-msg-protocol :roslisp-utils )
:components ((:file "_package")
(:file "ProcessID" :depends-on ("_package_ProcessID"))
(:file "_package_ProcessID" :depends-on ("_package"))
))
@@ -0,0 +1,220 @@
; Auto-generated. Do not edit!
(cl:in-package Aee1220310013-srv)
;//! \htmlinclude ProcessID-request.msg.html
(cl:defclass <ProcessID-request> (roslisp-msg-protocol:ros-message)
((student_id
:reader student_id
:initarg :student_id
:type cl:string
:initform ""))
)
(cl:defclass ProcessID-request (<ProcessID-request>)
())
(cl:defmethod cl:initialize-instance :after ((m <ProcessID-request>) cl:&rest args)
(cl:declare (cl:ignorable args))
(cl:unless (cl:typep m 'ProcessID-request)
(roslisp-msg-protocol:msg-deprecation-warning "using old message class name Aee1220310013-srv:<ProcessID-request> is deprecated: use Aee1220310013-srv:ProcessID-request instead.")))
(cl:ensure-generic-function 'student_id-val :lambda-list '(m))
(cl:defmethod student_id-val ((m <ProcessID-request>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader Aee1220310013-srv:student_id-val is deprecated. Use Aee1220310013-srv:student_id instead.")
(student_id m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <ProcessID-request>) ostream)
"Serializes a message object of type '<ProcessID-request>"
(cl:let ((__ros_str_len (cl:length (cl:slot-value msg 'student_id))))
(cl:write-byte (cl:ldb (cl:byte 8 0) __ros_str_len) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 8) __ros_str_len) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 16) __ros_str_len) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 24) __ros_str_len) ostream))
(cl:map cl:nil #'(cl:lambda (c) (cl:write-byte (cl:char-code c) ostream)) (cl:slot-value msg 'student_id))
)
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <ProcessID-request>) istream)
"Deserializes a message object of type '<ProcessID-request>"
(cl:let ((__ros_str_len 0))
(cl:setf (cl:ldb (cl:byte 8 0) __ros_str_len) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 8) __ros_str_len) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 16) __ros_str_len) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 24) __ros_str_len) (cl:read-byte istream))
(cl:setf (cl:slot-value msg 'student_id) (cl:make-string __ros_str_len))
(cl:dotimes (__ros_str_idx __ros_str_len msg)
(cl:setf (cl:char (cl:slot-value msg 'student_id) __ros_str_idx) (cl:code-char (cl:read-byte istream)))))
msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<ProcessID-request>)))
"Returns string type for a service object of type '<ProcessID-request>"
"Aee1220310013/ProcessIDRequest")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'ProcessID-request)))
"Returns string type for a service object of type 'ProcessID-request"
"Aee1220310013/ProcessIDRequest")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<ProcessID-request>)))
"Returns md5sum for a message object of type '<ProcessID-request>"
"e7263169494a43b7a316d7ec3753d546")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'ProcessID-request)))
"Returns md5sum for a message object of type 'ProcessID-request"
"e7263169494a43b7a316d7ec3753d546")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<ProcessID-request>)))
"Returns full string definition for message of type '<ProcessID-request>"
(cl:format cl:nil "string student_id~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'ProcessID-request)))
"Returns full string definition for message of type 'ProcessID-request"
(cl:format cl:nil "string student_id~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <ProcessID-request>))
(cl:+ 0
4 (cl:length (cl:slot-value msg 'student_id))
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <ProcessID-request>))
"Converts a ROS message object to a list"
(cl:list 'ProcessID-request
(cl:cons ':student_id (student_id msg))
))
;//! \htmlinclude ProcessID-response.msg.html
(cl:defclass <ProcessID-response> (roslisp-msg-protocol:ros-message)
((x
:reader x
:initarg :x
:type cl:float
:initform 0.0)
(y
:reader y
:initarg :y
:type cl:float
:initform 0.0)
(radius
:reader radius
:initarg :radius
:type cl:float
:initform 0.0)
(direction
:reader direction
:initarg :direction
:type cl:integer
:initform 0))
)
(cl:defclass ProcessID-response (<ProcessID-response>)
())
(cl:defmethod cl:initialize-instance :after ((m <ProcessID-response>) cl:&rest args)
(cl:declare (cl:ignorable args))
(cl:unless (cl:typep m 'ProcessID-response)
(roslisp-msg-protocol:msg-deprecation-warning "using old message class name Aee1220310013-srv:<ProcessID-response> is deprecated: use Aee1220310013-srv:ProcessID-response instead.")))
(cl:ensure-generic-function 'x-val :lambda-list '(m))
(cl:defmethod x-val ((m <ProcessID-response>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader Aee1220310013-srv:x-val is deprecated. Use Aee1220310013-srv:x instead.")
(x m))
(cl:ensure-generic-function 'y-val :lambda-list '(m))
(cl:defmethod y-val ((m <ProcessID-response>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader Aee1220310013-srv:y-val is deprecated. Use Aee1220310013-srv:y instead.")
(y m))
(cl:ensure-generic-function 'radius-val :lambda-list '(m))
(cl:defmethod radius-val ((m <ProcessID-response>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader Aee1220310013-srv:radius-val is deprecated. Use Aee1220310013-srv:radius instead.")
(radius m))
(cl:ensure-generic-function 'direction-val :lambda-list '(m))
(cl:defmethod direction-val ((m <ProcessID-response>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader Aee1220310013-srv:direction-val is deprecated. Use Aee1220310013-srv:direction instead.")
(direction m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <ProcessID-response>) ostream)
"Serializes a message object of type '<ProcessID-response>"
(cl:let ((bits (roslisp-utils:encode-single-float-bits (cl:slot-value msg 'x))))
(cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream))
(cl:let ((bits (roslisp-utils:encode-single-float-bits (cl:slot-value msg 'y))))
(cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream))
(cl:let ((bits (roslisp-utils:encode-single-float-bits (cl:slot-value msg 'radius))))
(cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream))
(cl:let* ((signed (cl:slot-value msg 'direction)) (unsigned (cl:if (cl:< signed 0) (cl:+ signed 4294967296) signed)))
(cl:write-byte (cl:ldb (cl:byte 8 0) unsigned) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 8) unsigned) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 16) unsigned) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 24) unsigned) ostream)
)
)
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <ProcessID-response>) istream)
"Deserializes a message object of type '<ProcessID-response>"
(cl:let ((bits 0))
(cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream))
(cl:setf (cl:slot-value msg 'x) (roslisp-utils:decode-single-float-bits bits)))
(cl:let ((bits 0))
(cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream))
(cl:setf (cl:slot-value msg 'y) (roslisp-utils:decode-single-float-bits bits)))
(cl:let ((bits 0))
(cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream))
(cl:setf (cl:slot-value msg 'radius) (roslisp-utils:decode-single-float-bits bits)))
(cl:let ((unsigned 0))
(cl:setf (cl:ldb (cl:byte 8 0) unsigned) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 8) unsigned) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 16) unsigned) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 24) unsigned) (cl:read-byte istream))
(cl:setf (cl:slot-value msg 'direction) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<ProcessID-response>)))
"Returns string type for a service object of type '<ProcessID-response>"
"Aee1220310013/ProcessIDResponse")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'ProcessID-response)))
"Returns string type for a service object of type 'ProcessID-response"
"Aee1220310013/ProcessIDResponse")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<ProcessID-response>)))
"Returns md5sum for a message object of type '<ProcessID-response>"
"e7263169494a43b7a316d7ec3753d546")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'ProcessID-response)))
"Returns md5sum for a message object of type 'ProcessID-response"
"e7263169494a43b7a316d7ec3753d546")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<ProcessID-response>)))
"Returns full string definition for message of type '<ProcessID-response>"
(cl:format cl:nil "float32 x~%float32 y~%float32 radius~%int32 direction~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'ProcessID-response)))
"Returns full string definition for message of type 'ProcessID-response"
(cl:format cl:nil "float32 x~%float32 y~%float32 radius~%int32 direction~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <ProcessID-response>))
(cl:+ 0
4
4
4
4
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <ProcessID-response>))
"Converts a ROS message object to a list"
(cl:list 'ProcessID-response
(cl:cons ':x (x msg))
(cl:cons ':y (y msg))
(cl:cons ':radius (radius msg))
(cl:cons ':direction (direction msg))
))
(cl:defmethod roslisp-msg-protocol:service-request-type ((msg (cl:eql 'ProcessID)))
'ProcessID-request)
(cl:defmethod roslisp-msg-protocol:service-response-type ((msg (cl:eql 'ProcessID)))
'ProcessID-response)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'ProcessID)))
"Returns string type for a service object of type '<ProcessID>"
"Aee1220310013/ProcessID")
@@ -0,0 +1,10 @@
(cl:defpackage Aee1220310013-srv
(:use )
(:export
"PROCESSID"
"<PROCESSID-REQUEST>"
"PROCESSID-REQUEST"
"<PROCESSID-RESPONSE>"
"PROCESSID-RESPONSE"
))
@@ -0,0 +1,12 @@
(cl:in-package Aee1220310013-srv)
(cl:export '(STUDENT_ID-VAL
STUDENT_ID
X-VAL
X
Y-VAL
Y
RADIUS-VAL
RADIUS
DIRECTION-VAL
DIRECTION
))
@@ -0,0 +1,6 @@
"use strict";
module.exports = {
srv: require('./srv/_index.js')
};
@@ -0,0 +1,226 @@
// Auto-generated. Do not edit!
// (in-package Aee1220310013.srv)
"use strict";
const _serializer = _ros_msg_utils.Serialize;
const _arraySerializer = _serializer.Array;
const _deserializer = _ros_msg_utils.Deserialize;
const _arrayDeserializer = _deserializer.Array;
const _finder = _ros_msg_utils.Find;
const _getByteLength = _ros_msg_utils.getByteLength;
//-----------------------------------------------------------
//-----------------------------------------------------------
class ProcessIDRequest {
constructor(initObj={}) {
if (initObj === null) {
// initObj === null is a special case for deserialization where we don't initialize fields
this.student_id = null;
}
else {
if (initObj.hasOwnProperty('student_id')) {
this.student_id = initObj.student_id
}
else {
this.student_id = '';
}
}
}
static serialize(obj, buffer, bufferOffset) {
// Serializes a message object of type ProcessIDRequest
// Serialize message field [student_id]
bufferOffset = _serializer.string(obj.student_id, buffer, bufferOffset);
return bufferOffset;
}
static deserialize(buffer, bufferOffset=[0]) {
//deserializes a message object of type ProcessIDRequest
let len;
let data = new ProcessIDRequest(null);
// Deserialize message field [student_id]
data.student_id = _deserializer.string(buffer, bufferOffset);
return data;
}
static getMessageSize(object) {
let length = 0;
length += _getByteLength(object.student_id);
return length + 4;
}
static datatype() {
// Returns string type for a service object
return 'Aee1220310013/ProcessIDRequest';
}
static md5sum() {
//Returns md5sum for a message object
return '372af5010cb802275110c9bd017544b8';
}
static messageDefinition() {
// Returns full string definition for message
return `
string student_id
`;
}
static Resolve(msg) {
// deep-construct a valid message object instance of whatever was passed in
if (typeof msg !== 'object' || msg === null) {
msg = {};
}
const resolved = new ProcessIDRequest(null);
if (msg.student_id !== undefined) {
resolved.student_id = msg.student_id;
}
else {
resolved.student_id = ''
}
return resolved;
}
};
class ProcessIDResponse {
constructor(initObj={}) {
if (initObj === null) {
// initObj === null is a special case for deserialization where we don't initialize fields
this.x = null;
this.y = null;
this.radius = null;
this.direction = null;
}
else {
if (initObj.hasOwnProperty('x')) {
this.x = initObj.x
}
else {
this.x = 0.0;
}
if (initObj.hasOwnProperty('y')) {
this.y = initObj.y
}
else {
this.y = 0.0;
}
if (initObj.hasOwnProperty('radius')) {
this.radius = initObj.radius
}
else {
this.radius = 0.0;
}
if (initObj.hasOwnProperty('direction')) {
this.direction = initObj.direction
}
else {
this.direction = 0;
}
}
}
static serialize(obj, buffer, bufferOffset) {
// Serializes a message object of type ProcessIDResponse
// Serialize message field [x]
bufferOffset = _serializer.float32(obj.x, buffer, bufferOffset);
// Serialize message field [y]
bufferOffset = _serializer.float32(obj.y, buffer, bufferOffset);
// Serialize message field [radius]
bufferOffset = _serializer.float32(obj.radius, buffer, bufferOffset);
// Serialize message field [direction]
bufferOffset = _serializer.int32(obj.direction, buffer, bufferOffset);
return bufferOffset;
}
static deserialize(buffer, bufferOffset=[0]) {
//deserializes a message object of type ProcessIDResponse
let len;
let data = new ProcessIDResponse(null);
// Deserialize message field [x]
data.x = _deserializer.float32(buffer, bufferOffset);
// Deserialize message field [y]
data.y = _deserializer.float32(buffer, bufferOffset);
// Deserialize message field [radius]
data.radius = _deserializer.float32(buffer, bufferOffset);
// Deserialize message field [direction]
data.direction = _deserializer.int32(buffer, bufferOffset);
return data;
}
static getMessageSize(object) {
return 16;
}
static datatype() {
// Returns string type for a service object
return 'Aee1220310013/ProcessIDResponse';
}
static md5sum() {
//Returns md5sum for a message object
return 'deec39c810656f01d6b1be82e15bf4e7';
}
static messageDefinition() {
// Returns full string definition for message
return `
float32 x
float32 y
float32 radius
int32 direction
`;
}
static Resolve(msg) {
// deep-construct a valid message object instance of whatever was passed in
if (typeof msg !== 'object' || msg === null) {
msg = {};
}
const resolved = new ProcessIDResponse(null);
if (msg.x !== undefined) {
resolved.x = msg.x;
}
else {
resolved.x = 0.0
}
if (msg.y !== undefined) {
resolved.y = msg.y;
}
else {
resolved.y = 0.0
}
if (msg.radius !== undefined) {
resolved.radius = msg.radius;
}
else {
resolved.radius = 0.0
}
if (msg.direction !== undefined) {
resolved.direction = msg.direction;
}
else {
resolved.direction = 0
}
return resolved;
}
};
module.exports = {
Request: ProcessIDRequest,
Response: ProcessIDResponse,
md5sum() { return 'e7263169494a43b7a316d7ec3753d546'; },
datatype() { return 'Aee1220310013/ProcessID'; }
};
@@ -0,0 +1,8 @@
"use strict";
let ProcessID = require('./ProcessID.js')
module.exports = {
ProcessID: ProcessID,
};
@@ -0,0 +1,13 @@
;;
;; DO NOT EDIT THIS FILE
;;
;; THIS FILE IS AUTOMATICALLY GENERATED
;; FROM /home/zmn/下载/ros_turtlecontrol/src/Aee1220310013/package.xml (0.0.0)
;; USING /opt/ros/noetic/lib/python3/dist-packages/geneus/geneus_main.py /opt/ros/noetic/share/geneus/package.xml (3.0.0)
;;
(ros::load-ros-package "geometry_msgs")
(ros::load-ros-package "roscpp")
(ros::load-ros-package "rosgraph_msgs")
(ros::load-ros-package "std_msgs")
(ros::load-ros-package "visualization_msgs")
(ros::load-ros-package "Aee1220310013")
@@ -0,0 +1,166 @@
;; Auto-generated. Do not edit!
(when (boundp 'Aee1220310013::ProcessID)
(if (not (find-package "AEE1220310013"))
(make-package "AEE1220310013"))
(shadow 'ProcessID (find-package "AEE1220310013")))
(unless (find-package "AEE1220310013::PROCESSID")
(make-package "AEE1220310013::PROCESSID"))
(unless (find-package "AEE1220310013::PROCESSIDREQUEST")
(make-package "AEE1220310013::PROCESSIDREQUEST"))
(unless (find-package "AEE1220310013::PROCESSIDRESPONSE")
(make-package "AEE1220310013::PROCESSIDRESPONSE"))
(in-package "ROS")
(defclass Aee1220310013::ProcessIDRequest
:super ros::object
:slots (_student_id ))
(defmethod Aee1220310013::ProcessIDRequest
(:init
(&key
((:student_id __student_id) "")
)
(send-super :init)
(setq _student_id (string __student_id))
self)
(:student_id
(&optional __student_id)
(if __student_id (setq _student_id __student_id)) _student_id)
(:serialization-length
()
(+
;; string _student_id
4 (length _student_id)
))
(:serialize
(&optional strm)
(let ((s (if strm strm
(make-string-output-stream (send self :serialization-length)))))
;; string _student_id
(write-long (length _student_id) s) (princ _student_id s)
;;
(if (null strm) (get-output-stream-string s))))
(:deserialize
(buf &optional (ptr- 0))
;; string _student_id
(let (n) (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4) (setq _student_id (subseq buf ptr- (+ ptr- n))) (incf ptr- n))
;;
self)
)
(defclass Aee1220310013::ProcessIDResponse
:super ros::object
:slots (_x _y _radius _direction ))
(defmethod Aee1220310013::ProcessIDResponse
(:init
(&key
((:x __x) 0.0)
((:y __y) 0.0)
((:radius __radius) 0.0)
((:direction __direction) 0)
)
(send-super :init)
(setq _x (float __x))
(setq _y (float __y))
(setq _radius (float __radius))
(setq _direction (round __direction))
self)
(:x
(&optional __x)
(if __x (setq _x __x)) _x)
(:y
(&optional __y)
(if __y (setq _y __y)) _y)
(:radius
(&optional __radius)
(if __radius (setq _radius __radius)) _radius)
(:direction
(&optional __direction)
(if __direction (setq _direction __direction)) _direction)
(:serialization-length
()
(+
;; float32 _x
4
;; float32 _y
4
;; float32 _radius
4
;; int32 _direction
4
))
(:serialize
(&optional strm)
(let ((s (if strm strm
(make-string-output-stream (send self :serialization-length)))))
;; float32 _x
(sys::poke _x (send s :buffer) (send s :count) :float) (incf (stream-count s) 4)
;; float32 _y
(sys::poke _y (send s :buffer) (send s :count) :float) (incf (stream-count s) 4)
;; float32 _radius
(sys::poke _radius (send s :buffer) (send s :count) :float) (incf (stream-count s) 4)
;; int32 _direction
(write-long _direction s)
;;
(if (null strm) (get-output-stream-string s))))
(:deserialize
(buf &optional (ptr- 0))
;; float32 _x
(setq _x (sys::peek buf ptr- :float)) (incf ptr- 4)
;; float32 _y
(setq _y (sys::peek buf ptr- :float)) (incf ptr- 4)
;; float32 _radius
(setq _radius (sys::peek buf ptr- :float)) (incf ptr- 4)
;; int32 _direction
(setq _direction (sys::peek buf ptr- :integer)) (incf ptr- 4)
;;
self)
)
(defclass Aee1220310013::ProcessID
:super ros::object
:slots ())
(setf (get Aee1220310013::ProcessID :md5sum-) "e7263169494a43b7a316d7ec3753d546")
(setf (get Aee1220310013::ProcessID :datatype-) "Aee1220310013/ProcessID")
(setf (get Aee1220310013::ProcessID :request) Aee1220310013::ProcessIDRequest)
(setf (get Aee1220310013::ProcessID :response) Aee1220310013::ProcessIDResponse)
(defmethod Aee1220310013::ProcessIDRequest
(:response () (instance Aee1220310013::ProcessIDResponse :init)))
(setf (get Aee1220310013::ProcessIDRequest :md5sum-) "e7263169494a43b7a316d7ec3753d546")
(setf (get Aee1220310013::ProcessIDRequest :datatype-) "Aee1220310013/ProcessIDRequest")
(setf (get Aee1220310013::ProcessIDRequest :definition-)
"string student_id
---
float32 x
float32 y
float32 radius
int32 direction
")
(setf (get Aee1220310013::ProcessIDResponse :md5sum-) "e7263169494a43b7a316d7ec3753d546")
(setf (get Aee1220310013::ProcessIDResponse :datatype-) "Aee1220310013/ProcessIDResponse")
(setf (get Aee1220310013::ProcessIDResponse :definition-)
"string student_id
---
float32 x
float32 y
float32 radius
int32 direction
")
(provide :Aee1220310013/ProcessID "e7263169494a43b7a316d7ec3753d546")