STL 里出现 warning C4018: “<”: 有符号/无符号不匹配

解决C4018警告

警告信息 warning C4018: “&lt;”: 有符号/无符号不匹配


warning C4018: “<”: 有符号/无符号不匹配


出错代码      for(int j=0;j<detector.size();j++)

出错原因分析:

 detector 是一个Vector容器 ,detecot.size() 在容器说明中 被定义为: unsigned int 类型, 而j是int 类型 所以会出现: 有符号/无符号不匹配  警告


错误改正 : 定义j为unsigned 类型后就可以了

即: for(unsigned int j=0;j<detector.size();j++)


总结, 注意循环变量的类型问题。

#ifndef _INI_DOCUMENT_H_ #define _INI_DOCUMENT_H_ #define ASCIILINESZ 1024 //每行文本能容纳文字的最大长度 #define ASCIISECTIONSZ 256 //每个Section的最大长度 #define ASCIIKEYSZ 256 //每个Key的最大长度 #define ASCIIVALUESZ 256 //每个Value的最大长度 #define ASCIIDESCSZ 512 //每个注释的最大长度 #include "RBTree.h" #include "Section.h" #include "Key.h" #include "Value.h" namespace INI { using KeyMap = RBTREE::RBTree<Key, Value>; using SectionMap = RBTREE::RBTree<Section, KeyMap>; class IniDocument { typedef enum class _line_status_ : unsigned char { LINE_ERROR,//未知行 LINE_DESCRIPTION,//注释行 LINE_SECTION,//节点行 LINE_KEY//键值行 } line_status; public: IniDocument(const char* _szFile); ~IniDocument(); KeyMap& operator[](const char* _szSection); void Clear(); private: void load(); line_status parse(char* _szLine, char* _szSection, char* _szKey, char* _szValue, char* _szDesc); private: char* m_szFile;//文件路径 SectionMap m_sectionMap; //存储section的映射 }; } #include "../inc/IniDocument.h" INI::IniDocument::IniDocument(const char* _szFile) { if (!_szFile || _szFile[0] == '\0') { //错误处理: 文件路径能为空 throw("文件路径能为空."); } size_t nLen = strlen(_szFile); size_t nSize = ((nLen + 1) + 3) & ~3; if (nLen >= _MAX_PATH) { //错误处理: 文件路径过长 throw("文件路径过长."); } m_szFile = new char[nSize]; memcpy(m_szFile, _szFile, nLen + 1); load(); //加载文件内容到内存 } INI::IniDocument::~IniDocument() { Clear(); } INI::KeyMap& INI::IniDocument::operator[](const char* _szSection) { //返回对应Section的映射 return m_sectionMap[Section(_szSection)]; } void INI::IniDocument::Clear() { if (m_szFile) { delete[] m_szFile; m_szFile = nullptr; } for(SectionMap::iterator it=m_sectionMap.begin();it!=m_sectionMap.end();++it) { //清空每个Section的映射 it->second.Clear(); } m_sectionMap.Clear(); //清空Section映射 } void INI::IniDocument::load() { /*特别注意 读出的ini内容一般都是utf-8,而保存在内存中的内容也是utf-8.直接保存到文件没问题 但如果查找就会出问题。要把查找的中文字串 转成utf8再查找才能找到 但每次查找section或者key都转一次utf8就浪费了 解决方案: 从文件解析出来的utf8内容转回普通char字串。再保存到内存中,这样代码直接就能查找到。 而保存回文件的时候,把内存的字串转回utf8再保存即可 如果想频繁转换,直接使用ANSI编码文件即可 */ #pragma warning(disable:4996) FILE* pFile = fopen(m_szFile, "r"); #pragma warning(default:4996) if (!pFile) { printf("<IniDocument::load> 打开Ini文件失败,路径: %s\n", m_szFile); return; } char szLineBuffer[ASCIILINESZ] = { 0 };//把文件中的内容逐行读入此内存中 char szSection[ASCIISECTIONSZ] = { 0 };;//把节点解析完成后放入此内存中 char szKey[ASCIIKEYSZ] = { 0 };;//把Key解析完成后放入此内存中 char szValue[ASCIIVALUESZ] = { 0 };;//把Value解析完成后放入此内存中 char szDesc[ASCIIDESCSZ] = { 0 };;//把注释读入此内存中 size_t nLines = 0; //记录当前的行数 size_t nLen = 0; //记录当前行的长度 KeyMap* pKeyMap = nullptr; //用于存储当前解析的Key映射 Desc desc; //用于存储当前解析的全行注释 while (fgets(szLineBuffer, ASCIILINESZ, pFile))//每次读取一行内容 { ++nLines; //行数自增 if (szLineBuffer[0] == '\n')continue;//如果取出来的内容第一个字符就是换行符,无条件取下一行内容 nLen = strlen(szLineBuffer);//更新行内容的字串长度 if (szLineBuffer[nLen - 1] != '\n' && !feof(pFile)) { //如果此行的结束符 是换行符\n 并且 文件并未结束 -> 如果都满足条件,说明此行肯定是太长了。应当调整行的最大长度。默认:ASCIILINESZ=1024 printf("<IniDocument::load> 行 %zu 内容过长,请检查文件内容.\n", nLines); continue; //跳过此行 } //开始进行字串解析 switch (parse(szLineBuffer, szSection, szKey, szValue, szDesc))//进入解析过程 { case line_status::LINE_ERROR://未知行 break; case line_status::LINE_DESCRIPTION://全行注释 { desc = szLineBuffer; //将注释内容存储到Desc对象中 break; } case line_status::LINE_SECTION://节点 { Section section(szSection); //创建Section对象 if(desc.m_szDesc)section.m_vecDesc[0] = std::move(desc); //将注释内容存储到Section对象中 if (szDesc[0] != '\0')section.m_vecDesc[1] = szDesc; //如果有第二个注释内容,存储到Section对象中 pKeyMap = &m_sectionMap[section]; //获取当前Section映射 break; } case line_status::LINE_KEY://键值 { if (!pKeyMap) { printf("<IniDocument::load> 键值行 %zu 解析失败<没有Section>,请检查文件内容.\n", nLines); continue; //如果没有Section映射,跳过此行 } Key key(szKey); //创建Key对象 Value value(szValue); //创建Value对象 if (desc.m_szDesc) //如果有全行注释内容 { //将注释内容存储到Key对象中 key.m_vecDesc[0] = std::move(desc); } if(szDesc[0] != '\0') //如果有行块注释内容 { key.m_vecDesc[1] = szDesc; //将行块注释内容存储到Key对象中 } (*pKeyMap)[key] = std::move(value); //将Key和Value存储到当前Section映射中 break; } default: break; } szLineBuffer[0] = 0; //清空行内容 szSection[0] = 0; //清空Section内容 szKey[0] = 0; //清空Key内容 szValue[0] = 0; //清空Value内容 szDesc[0] = 0; //清空注释内容 } fclose(pFile); //关闭文件 } INI::IniDocument::line_status INI::IniDocument::parse(char* _szLine, char* _szSection, char* _szKey, char* _szValue, char* _szDesc) { #pragma warning(disable:4996) line_status sta = line_status::LINE_ERROR;//分析结果 size_t nCount = 0; //记录sccanf匹配的数量 if (_szLine[0] == '#' || _szLine[0] == ';')//开头就是单行注释的解析符 {//说明全行都是注释 sta = line_status::LINE_DESCRIPTION; } //开始解析节点 Section //(必须遵守一个规则,从有到无,比如结尾带分号的应该先做匹配。 //然后再到结尾带分号的。因为如果先匹配带分号的,带分号的也会匹配得上。就会莫名多个分号了) //例如: key = value; 如果先匹配无分号的,那么值就是 value; 达到预期效果,结尾多了个分号 else if ( //以下匹配 节点(后面带注释) (nCount = sscanf(_szLine, "[%[^]]]%[^\n]", _szSection, _szDesc)) == 2 ||//例子: [section01]#this is description 01或者[section01];this is description 01 (nCount = sscanf(_szLine, "[%[^]]]%[^\n]", _szSection, _szDesc)) == 1//例子: [section] ) { sta = line_status::LINE_SECTION; } //开始解析键值 key = value else if ( //(必须遵守一个规则,从有到无,比如结尾带分号的应该先做匹配。然后再到结尾带分号的。因为如果先匹配带分号的,带分号的也会匹配得上。就会莫名多个分号了) (nCount = sscanf(_szLine, "%[^=]=%[^;]%[^\n]", _szKey, _szValue, _szDesc)) == 3 || //例子: key1=value1;this is description 01 (nCount = sscanf(_szLine, "%[^=]=%[^#]%[^\n]", _szKey, _szValue, _szDesc)) == 3 ||//例子: key2=value2#this is description 01 (nCount = sscanf(_szLine, "%[^=]=%[^\n]", _szKey, _szValue)) == 2//例子: key1=value1 ) { sta = line_status::LINE_KEY; } #pragma warning(default:4996) return sta; } 总体架构就是这样的,帮我分析一下有没有问题
07-25
y@y-Dell-G15-5511:~$ cd ~/colcon_ws source install/setup.bash --extend y@y-Dell-G15-5511:~/colcon_ws$ export IGN_GAZEBO_RESOURCE_PATH=$IGN_GAZEBO_RESOURCE_PATH:~/colcon_ws/src/franka_description:~/colcon_ws/src/Use_Pkg/learning_gazebo y@y-Dell-G15-5511:~/colcon_ws$ ros2 launch franka_robot_ign_pkg load_car_arm_into_ign.launch.py [INFO] [launch]: All log files can be found below /home/y/.ros/log/2025-10-16-20-13-42-517263-y-Dell-G15-5511-74541 [INFO] [launch]: Default logging verbosity is set to INFO [INFO] [ign gazebo-1]: process started with pid [74553] [INFO] [create-2]: process started with pid [74555] [INFO] [robot_state_publisher-3]: process started with pid [74558] [INFO] [parameter_bridge-4]: process started with pid [74560] [INFO] [ros2_control_node-5]: process started with pid [74562] [INFO] [spawner-6]: process started with pid [74564] [INFO] [spawner-7]: process started with pid [74566] [create-2] [INFO] [1760616823.022695530] [ros_gz_sim]: Requesting list of world names. [ros2_control_node-5] [WARN] [1760616823.022968801] [controller_manager]: 'update_rate' parameter not set, using default value. [ros2_control_node-5] [WARN] [1760616823.023065134] [controller_manager]: [Deprecated] Passing the robot description parameter directly to the control_manager node is deprecated. Use '~/robot_description' topic from 'robot_state_publisher' instead. [ros2_control_node-5] text not specified in the prefix tag [ros2_control_node-5] text not specified in the robot_ip tag [ros2_control_node-5] text not specified in the arm_prefix tag [ros2_control_node-5] [INFO] [1760616823.023693853] [resource_manager]: Loading hardware 'MbotBase' [ros2_control_node-5] terminate called after throwing an instance of 'pluginlib::LibraryLoadException' [ros2_control_node-5] what(): According to the loaded plugin descriptions the class ign_ros2_control/IgnitionSystem with base class type hardware_interface::SystemInterface does not exist. Declared types are fake_components/GenericSystem mock_components/GenericSystem test_hardware_components/TestSystemCommandModes test_hardware_components/TestTwoJointSystem test_system test_unitilizable_system [ros2_control_node-5] Stack trace (most recent call last): [ros2_control_node-5] #21 Object "", at 0xffffffffffffffff, in [ros2_control_node-5] #20 Object "/home/y/colcon_ws/build/controller_manager/ros2_control_node", at 0x58a1df12c7a4, in _start [robot_state_publisher-3] [INFO] [1760616823.036001466] [robot_state_publisher]: got segment back_caster_link [robot_state_publisher-3] [INFO] [1760616823.036123876] [robot_state_publisher]: got segment base [robot_state_publisher-3] [INFO] [1760616823.036134330] [robot_state_publisher]: got segment base_footprint [robot_state_publisher-3] [INFO] [1760616823.036140859] [robot_state_publisher]: got segment base_link [robot_state_publisher-3] [INFO] [1760616823.036146777] [robot_state_publisher]: got segment fr3_hand [robot_state_publisher-3] [INFO] [1760616823.036152513] [robot_state_publisher]: got segment fr3_hand_tcp [robot_state_publisher-3] [INFO] [1760616823.036158868] [robot_state_publisher]: got segment fr3_leftfinger [robot_state_publisher-3] [INFO] [1760616823.036163981] [robot_state_publisher]: got segment fr3_link0 [robot_state_publisher-3] [INFO] [1760616823.036173524] [robot_state_publisher]: got segment fr3_link1 [robot_state_publisher-3] [INFO] [1760616823.036178657] [robot_state_publisher]: got segment fr3_link2 [robot_state_publisher-3] [INFO] [1760616823.036184140] [robot_state_publisher]: got segment fr3_link3 [robot_state_publisher-3] [INFO] [1760616823.036189091] [robot_state_publisher]: got segment fr3_link4 [robot_state_publisher-3] [INFO] [1760616823.036193819] [robot_state_publisher]: got segment fr3_link5 [robot_state_publisher-3] [INFO] [1760616823.036198681] [robot_state_publisher]: got segment fr3_link6 [robot_state_publisher-3] [INFO] [1760616823.036203976] [robot_state_publisher]: got segment fr3_link7 [robot_state_publisher-3] [INFO] [1760616823.036209406] [robot_state_publisher]: got segment fr3_link8 [robot_state_publisher-3] [INFO] [1760616823.036214026] [robot_state_publisher]: got segment fr3_rightfinger [robot_state_publisher-3] [INFO] [1760616823.036218421] [robot_state_publisher]: got segment front_caster_link [robot_state_publisher-3] [INFO] [1760616823.036222604] [robot_state_publisher]: got segment left_wheel_link [robot_state_publisher-3] [INFO] [1760616823.036227093] [robot_state_publisher]: got segment rgbd_camera_frame [robot_state_publisher-3] [INFO] [1760616823.036231928] [robot_state_publisher]: got segment right_wheel_link [parameter_bridge-4] [INFO] [1760616823.043048133] [ros_gz_bridge]: Creating GZ->ROS Bridge: [/d435/depth_camera/points (ignition.msgs.PointCloudPacked) -> /d435/depth_camera/points (sensor_msgs/msg/PointCloud2)] (Lazy 0) [parameter_bridge-4] [INFO] [1760616823.045247676] [ros_gz_bridge]: Creating ROS->GZ Bridge: [/d435/depth_camera/points (sensor_msgs/msg/PointCloud2) -> /d435/depth_camera/points (ignition.msgs.PointCloudPacked)] (Lazy 0) [parameter_bridge-4] [INFO] [1760616823.045889521] [ros_gz_bridge]: Creating GZ->ROS Bridge: [/d435/depth_camera/camera_info (ignition.msgs.CameraInfo) -> /d435/depth_camera/camera_info (sensor_msgs/msg/CameraInfo)] (Lazy 0) [parameter_bridge-4] [INFO] [1760616823.046486108] [ros_gz_bridge]: Creating ROS->GZ Bridge: [/d435/depth_camera/camera_info (sensor_msgs/msg/CameraInfo) -> /d435/depth_camera/camera_info (ignition.msgs.CameraInfo)] (Lazy 0) [parameter_bridge-4] [INFO] [1760616823.046971579] [ros_gz_bridge]: Creating GZ->ROS Bridge: [/d435/depth_camera/image (ignition.msgs.Image) -> /d435/depth_camera/image (sensor_msgs/msg/Image)] (Lazy 0) [parameter_bridge-4] [INFO] [1760616823.047420273] [ros_gz_bridge]: Creating ROS->GZ Bridge: [/d435/depth_camera/image (sensor_msgs/msg/Image) -> /d435/depth_camera/image (ignition.msgs.Image)] (Lazy 0) [parameter_bridge-4] [INFO] [1760616823.047840727] [ros_gz_bridge]: Creating GZ->ROS Bridge: [/d435/depth_camera/depth_image (ignition.msgs.Image) -> /d435/depth_camera/depth_image (sensor_msgs/msg/Image)] (Lazy 0) [parameter_bridge-4] [INFO] [1760616823.048154406] [ros_gz_bridge]: Creating ROS->GZ Bridge: [/d435/depth_camera/depth_image (sensor_msgs/msg/Image) -> /d435/depth_camera/depth_image (ignition.msgs.Image)] (Lazy 0) [parameter_bridge-4] [INFO] [1760616823.048477241] [ros_gz_bridge]: Creating GZ->ROS Bridge: [/ign/joint_states (ignition.msgs.JointState) -> /ign/joint_states (sensor_msgs/msg/JointState)] (Lazy 0) [parameter_bridge-4] [WARN] [1760616823.048564185] [ros_gz_bridge]: Failed to create a bridge for topic [/ign/joint_states] with ROS2 type [sensor_msgs/msg/JointState] to topic [/ign/joint_states] with Gazebo Transport type [ignition.msgs.JointState] [ros2_control_node-5] #19 Source "../csu/libc-start.c", line 392, in __libc_start_main_impl [0x7d77c8a29e3f] [ros2_control_node-5] #18 Source "../sysdeps/nptl/libc_start_call_main.h", line 58, in __libc_start_call_main [0x7d77c8a29d8f] [ros2_control_node-5] #17 Object "/home/y/colcon_ws/build/controller_manager/ros2_control_node", at 0x58a1df12bd8a, in main [ros2_control_node-5] #16 Object "/home/y/colcon_ws/build/controller_manager/ros2_control_node", at 0x58a1df1303b6, in std::__shared_ptr<controller_manager::ControllerManager, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<controller_manager::ControllerManager>, std::shared_ptr<rclcpp::Executor>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::_Sp_alloc_shared_tag<std::allocator<controller_manager::ControllerManager> >, std::shared_ptr<rclcpp::Executor>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) [ros2_control_node-5] #15 Object "/home/y/colcon_ws/build/controller_manager/ros2_control_node", at 0x58a1df12efd5, in void __gnu_cxx::new_allocator<controller_manager::ControllerManager>::construct<controller_manager::ControllerManager, std::shared_ptr<rclcpp::Executor>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(controller_manager::ControllerManager*, std::shared_ptr<rclcpp::Executor>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) [clone .isra.0] [ros2_control_node-5] #14 Object "/home/y/colcon_ws/install/controller_manager/lib/libcontroller_manager.so", at 0x7d77c93a6f30, in controller_manager::ControllerManager::ControllerManager(std::shared_ptr<rclcpp::Executor>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rclcpp::NodeOptions const&) [ros2_control_node-5] #13 Object "/home/y/colcon_ws/install/controller_manager/lib/libcontroller_manager.so", at 0x7d77c93a60ef, in controller_manager::ControllerManager::init_resource_manager(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) [ros2_control_node-5] #12 Object "/home/y/colcon_ws/install/hardware_interface/lib/libhardware_interface.so", at 0x7d77c896c602, in hardware_interface::ResourceManager::load_urdf(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool) [ros2_control_node-5] #11 Object "/home/y/colcon_ws/install/hardware_interface/lib/libhardware_interface.so", at 0x7d77c8976cde, in hardware_interface::ResourceStorage::load_and_initialize_system(hardware_interface::HardwareInfo const&) [ros2_control_node-5] #10 Object "/home/y/colcon_ws/install/hardware_interface/lib/libhardware_interface.so", at 0x7d77c8976aa4, in auto hardware_interface::ResourceStorage::load_and_initialize_system(hardware_interface::HardwareInfo const&)::{lambda(auto:1&)#1}::operator()<std::vector<hardware_interface::System, std::allocator<hardware_interface::System> > >(std::vector<hardware_interface::System, std::allocator<hardware_interface::System> >&) const [ros2_control_node-5] #9 Object "/home/y/colcon_ws/install/hardware_interface/lib/libhardware_interface.so", at 0x7d77c897c5b8, in void hardware_interface::ResourceStorage::load_hardware<hardware_interface::System, hardware_interface::SystemInterface>(hardware_interface::HardwareInfo const&, pluginlib::ClassLoader<hardware_interface::SystemInterface>&, std::vector<hardware_interface::System, std::allocator<hardware_interface::System> >&) [ros2_control_node-5] #8 Object "/home/y/colcon_ws/install/hardware_interface/lib/libhardware_interface.so", at 0x7d77c89856f8, in pluginlib::ClassLoader<hardware_interface::SystemInterface>::createUnmanagedInstance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) [ros2_control_node-5] #7 Object "/home/y/colcon_ws/install/hardware_interface/lib/libhardware_interface.so", at 0x7d77c89932b2, in pluginlib::ClassLoader<hardware_interface::SystemInterface>::loadLibraryForClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) [ros2_control_node-5] #6 Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7d77c8eae4d7, in __cxa_throw [ros2_control_node-5] #5 Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7d77c8eae276, in std::terminate() [ros2_control_node-5] #4 Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7d77c8eae20b, in [ros2_control_node-5] #3 Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7d77c8ea2b9d, in [ros2_control_node-5] #2 Source "./stdlib/abort.c", line 79, in abort [0x7d77c8a287f2] [ros2_control_node-5] #1 Source "../sysdeps/posix/raise.c", line 26, in raise [0x7d77c8a42475] [ros2_control_node-5] #0 | Source "./nptl/pthread_kill.c", line 89, in __pthread_kill_internal [ros2_control_node-5] | Source "./nptl/pthread_kill.c", line 78, in __pthread_kill_implementation [ros2_control_node-5] Source "./nptl/pthread_kill.c", line 44, in __pthread_kill [0x7d77c8a969fc] [ros2_control_node-5] Aborted (Signal sent by tkill() 74562 1000) [ERROR] [ros2_control_node-5]: process has died [pid 74562, exit code -6, cmd '/home/y/colcon_ws/install/controller_manager/lib/controller_manager/ros2_control_node --ros-args --params-file /tmp/launch_params_elhbltkf --params-file /home/y/colcon_ws/install/franka_robot_ign_pkg/share/franka_robot_ign_pkg/config/combined_control.yaml']. [spawner-6] [INFO] [1760616823.215299596] [spawner_diff_drive_controller]: waiting for service /controller_manager/list_controllers to become available... [spawner-7] [INFO] [1760616823.248985341] [spawner_forward_position_controller]: waiting for service /controller_manager/list_controllers to become available... [create-2] [INFO] [1760616823.503035157] [ros_gz_sim]: Waiting messages on topic [robot_description]. [create-2] [INFO] [1760616823.514344976] [ros_gz_sim]: Requested creation of entity. [create-2] [INFO] [1760616823.514389954] [ros_gz_sim]: OK creation of entity. [INFO] [create-2]: process has finished cleanly [pid 74555] [ign gazebo-1] libEGL warning: egl: failed to create dri2 screen [ign gazebo-1] libEGL warning: egl: failed to create dri2 screen [ign gazebo-1] [Err] [SystemPaths.cc:378] Unable to find file with URI [model://franka_description/meshes/robot_ee/franka_hand_white/collision/hand.stl] [ign gazebo-1] [Err] [SystemPaths.cc:473] Could not resolve file [model://franka_description/meshes/robot_ee/franka_hand_white/collision/hand.stl] [ign gazebo-1] [Err] [MeshManager.cc:173] Unable to find file[model://franka_description/meshes/robot_ee/franka_hand_white/collision/hand.stl] [ign gazebo-1] [GUI] [Err] [SystemPaths.cc:378] Unable to find file with URI [model://franka_description/meshes/robot_ee/franka_hand_white/visual/hand.dae] [ign gazebo-1] [GUI] [Err] [SystemPaths.cc:473] Could not resolve file [model://franka_description/meshes/robot_ee/franka_hand_white/visual/hand.dae] [ign gazebo-1] [GUI] [Err] [MeshManager.cc:173] Unable to find file[model://franka_description/meshes/robot_ee/franka_hand_white/visual/hand.dae] [ign gazebo-1] [GUI] [Err] [MeshDescriptor.cc:56] Mesh manager can't find mesh named [model://franka_description/meshes/robot_ee/franka_hand_white/visual/hand.dae] [ign gazebo-1] [GUI] [Err] [Ogre2MeshFactory.cc:562] Cannot load null mesh [model://franka_description/meshes/robot_ee/franka_hand_white/visual/hand.dae] [ign gazebo-1] [GUI] [Err] [Ogre2MeshFactory.cc:125] Failed to get Ogre item for [model://franka_description/meshes/robot_ee/franka_hand_white/visual/hand.dae] [ign gazebo-1] [GUI] [Err] [SceneManager.cc:404] Failed to load geometry for visual: fr3_link7_fixed_joint_lump__fr3_hand_visual_visual_1 [ign gazebo-1] [GUI] [Err] [SystemPaths.cc:378] Unable to find file with URI [model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [SystemPaths.cc:473] Could not resolve file [model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [MeshManager.cc:173] Unable to find file[model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [MeshDescriptor.cc:56] Mesh manager can't find mesh named [model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [Ogre2MeshFactory.cc:562] Cannot load null mesh [model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [Ogre2MeshFactory.cc:125] Failed to get Ogre item for [model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [SceneManager.cc:404] Failed to load geometry for visual: fr3_leftfinger_visual_visual [ign gazebo-1] [GUI] [Err] [SystemPaths.cc:378] Unable to find file with URI [model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [SystemPaths.cc:473] Could not resolve file [model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [MeshManager.cc:173] Unable to find file[model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [MeshDescriptor.cc:56] Mesh manager can't find mesh named [model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [Ogre2MeshFactory.cc:562] Cannot load null mesh [model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [Ogre2MeshFactory.cc:125] Failed to get Ogre item for [model://franka_description/meshes/robot_ee/franka_hand_white/visual/finger.dae] [ign gazebo-1] [GUI] [Err] [SceneManager.cc:404] Failed to load geometry for visual: fr3_rightfinger_visual_visual [spawner-6] [WARN] [1760616833.228535648] [spawner_diff_drive_controller]: Could not contact service /controller_manager/list_controllers [spawner-6] [INFO] [1760616833.228836993] [spawner_diff_drive_controller]: waiting for service /controller_manager/list_controllers to become available... [spawner-7] [WARN] [1760616833.262240122] [spawner_forward_position_controller]: Could not contact service /controller_manager/list_controllers [spawner-7] [INFO] [1760616833.262542793] [spawner_forward_position_controller]: waiting for service /controller_manager/list_controllers to become available... [spawner-6] [WARN] [1760616843.242406080] [spawner_diff_drive_controller]: Could not contact service /controller_manager/list_controllers [spawner-6] [INFO] [1760616843.242765181] [spawner_diff_drive_controller]: waiting for service /controller_manager/list_controllers to become available... [spawner-7] [WARN] [1760616843.275612421] [spawner_forward_position_controller]: Could not contact service /controller_manager/list_controllers [spawner-7] [INFO] [1760616843.275930056] [spawner_forward_position_controller]: waiting for service /controller_manager/list_controllers to become available... [spawner-6] [WARN] [1760616853.255912422] [spawner_diff_drive_controller]: Could not contact service /controller_manager/list_controllers [spawner-6] [INFO] [1760616853.256213679] [spawner_diff_drive_controller]: waiting for service /controller_manager/list_controllers to become available... [spawner-7] [WARN] [1760616853.289257894] [spawner_forward_position_controller]: Could not contact service /controller_manager/list_controllers [spawner-7] [INFO] [1760616853.289569314] [spawner_forward_position_controller]: waiting for service /controller_manager/list_controllers to become available... 我在ubuntu22.04启动时所遇到的错误
最新发布
10-17
||=== Build: Debug in vector (compiler: GNU GCC Compiler) ===| \vector\main.cpp|35|warning: multi-character character constant [-Wmultichar]| \vector\main.cpp||In function 'void tracking(std::string, int)':| \vector\main.cpp|20|warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long long unsigned int'} [-Wsign-compare]| \vector\main.cpp|27|warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long long unsigned int'} [-Wsign-compare]| \vector\main.cpp||In function 'int main()':| \vector\main.cpp|35|error: class template argument deduction failed:| \vector\main.cpp|35|error: no matching function for call to 'vector(int)'| C:\code\CodeBlocks\MinGW\include\c++\14.2.0\bits\stl_vector.h|2033|note: candidate: 'template<class _InputIterator, class _ValT, class _Allocator, class, class> std::vector(_InputIterator, _InputIterator, _Allocator)-> vector<_ValT, _Allocator>'| C:\code\CodeBlocks\MinGW\include\c++\14.2.0\bits\stl_vector.h|2033|note: candidate expects 2 arguments, 1 provided| C:\code\CodeBlocks\MinGW\include\c++\14.2.0\bits\stl_vector.h|428|note: candidate: 'template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>)-> std::vector<_Tp, _Alloc>'| C:\code\CodeBlocks\MinGW\include\c++\14.2.0\bits\stl_vector.h|428|note: template argument deduction/substitution failed:| \vector\main.cpp|35|note: mismatched types 'std::vector<_Tp, _Alloc>' and 'int'| C:\code\CodeBlocks\MinGW\include\c++\14.2.0\bits\stl_vector.h|531|note: candidate: 'template<class _Tp, class _Alloc> vector()-> std::vector<_Tp, _Alloc>'| C:\code\CodeBlocks\MinGW\include\c++\14.2.0\bits\stl_vector.h|531|note: candidate expects 0 arguments, 1 provided| C:\code\CodeBlocks\MinGW\include\c++\14.2.0\bits\stl_vector.h|569|note: candidate: 'template<class _Tp, class _Alloc> vector(std::size_t, const _Tp&, const _Alloc&)-> std::vector<_Tp, _Alloc>
09-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值