nwpu-v5-team / ICRA-Firefly-Emulator

Simulation platform, for ICRA Robomaster AI Challenge 2020, NWPU Firefly team.
35 stars 4 forks source link

The questions about ICRA-Firefly-Emulator #1

Closed scyhz8 closed 2 years ago

scyhz8 commented 2 years ago

Dear Developer, I am sorry to bother you and thank you for reading this issue. I have followed the ROS project developed by your team, and after using the "git clone" to clone your package, I found some small problems.
When I entered the code in your readme file which was "catkin_make", several warnings happened. It showed me that(I am sorry about that, but it is a little long):

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "roborts_msgs" with any of the following names:

roborts_msgsConfig.cmake
roborts_msgs-config.cmake

Add the installation prefix of "roborts_msgs" to CMAKE_PREFIX_PATH or set "roborts_msgs_DIR" to a directory containing one of the above files. If "roborts_msgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): ICRA-Firefly-Emulator/CMakeLists.txt:10 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

It could not found two .cmake files, but I truly cloned all the things in the package into my Ubuntu. It was strange that the code I followed later to generate the map and four cars worked fine, meaning that the warnings of the "catkin _make" didn't affect this step.

Futher more, I tried to run the code in order to control the car to move:

rosrun infantry2020 keyboard_ctrl_node __ns:=/red2

I found that : [rospack] Error: package 'infantry2020' not found The package coud not be found. I don't know whether the warnings of the "catkin_make" influenced this line of the code that caused the package cannot be found. I cannot find your contact information, so I can only ask questions here, I hope you can see it. I would appreciate it if you could give me some suggestions. HAPPY NEW YEAR!

尊敬的开发者: 感谢您能看到我的提问, 同时本人对给您造成的不便表示歉意,敬请谅解。 本人使用了您的团队发表的ROS 项目,在本人使用“git clone”指令将包加载到本人电脑上之后,出现了一些小问题。 当我输入你们给出的“readme”指导文件里面的“catkin_make”代码的时候,一部分可以运行,但是出现了如下警告(很抱歉,这个稍微有点长):

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "roborts_msgs" with any of the following names:

roborts_msgsConfig.cmake
roborts_msgs-config.cmake

Add the installation prefix of "roborts_msgs" to CMAKE_PREFIX_PATH or set "roborts_msgs_DIR" to a directory containing one of the above files. If "roborts_msgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): ICRA-Firefly-Emulator/CMakeLists.txt:10 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

很明显,警告说有两个.cmake文件没有被找到,可是我的确毫无遗漏的将这个项目完整的克隆到了我的乌班图虚拟机上面。 奇怪的是,我运行后面的代码,也就是在gazebo中加载地图以及四辆小车的过程很成功,没受到前面“catkin_make”警告的影响。 另外,我尝试运行通过键盘操控让小车动起来的代码的过程时(也就是如下代码):

rosrun infantry2020 keyboard_ctrl_node __ns:=/red2

我发现报错: [rospack] Error: package 'infantry2020' not found 这个包找不到导致我无法通过键盘控制小车让其动起来。 我不知道之前的警告会不会是这个包找不到的直接原因,我无法找到你们包括邮箱在内的其他联系方式,所以只能在这里开一个issue进行询问,希望你们能看到本人的提问并且回答它。 提前感谢您的回复了。 顺祝新年快乐!

heiheishuang commented 2 years ago

您好,针对第一个缺少roborts_msgs的问题的解决方案,需要clone 官方仓库的https://github.com/RoboMaster/RoboRTS ,这里面有缺少的部分roborts_msgs; 针对第二个问题,需要将infantry2020修改为icra_robomaster_emulator,是readme中包名写错了🤦‍♀️。

heiheishuang commented 2 years ago

Hello, you can try these methods

Could not find a package roborts_msgs

This project is developed for 2020 DJI ICRA Robomaster AI Challenge. Therefore, the missing package can be found in the official repositories: https://github.com/RoboMaster/RoboRTS .

Please put them in a workspace and then compile them.

Error: package 'infantry2020' not found

You need to modify infantry2020 to icra_robomaster_emulator, the package name in Readme is written incorrectly 🤦‍♀️.

The correct command is: rosrun icra_robomaster_emulator keyboard_ctrl_node __ns:=/red2

scyhz8 commented 2 years ago

Thank you for your advice,I will follow your suggestions and try to find whether it works! Many thanks for your kind guidance!

好的,感谢您的建议,我会根据您的建议进行尝试看看程序是否可以运行。 再次感谢您的指导!

P.S.之后可能不可避免还会出现一些疑问,还请您不吝赐教! 敬祝春节快乐!

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Yingshuang Zou @.> Sent: Friday, February 11, 2022 7:57:05 PM To: nwpu-v5-team/ICRA-Firefly-Emulator @.> Cc: Haoyan ZANG (20216895) @.>; Author @.> Subject: Re: [nwpu-v5-team/ICRA-Firefly-Emulator] The questions about ICRA-Firefly-Emulator (Issue #1)

Hello, you can try these methods

Could not find a package roborts_msgs

This project is developed for 2020 DJI ICRA Robomaster AI Challenge. Therefore, the missing package can be found in the official repositories: https://github.com/RoboMaster/RoboRTS .

Please put them in a workspace and then compile them.

Error: package 'infantry2020' not found

You need to modify infantry2020 to icra_robomaster_emulator, the package name in Readme is written incorrectly 🤦‍♀️.

The correct command is: rosrun icra_robomaster_emulator keyboard_ctrl_node __ns:=/red2

— Reply to this email directly, view it on GitHubhttps://github.com/nwpu-v5-team/ICRA-Firefly-Emulator/issues/1#issuecomment-1036140751, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWCBHFFXG4KVTCHX7J74OHLU2T2RDANCNFSM5NXUQ57Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of The University of Nottingham Ningbo China. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with The University of Nottingham Ningbo China may be monitored as permitted by UK and Chinese legislation.