MSL soccer robot code of NuBot team of National University of Defense Technology
- Maintainer status: maintained
- Maintainer: NuBot Team
- Author: NuBot Team
- License: Apache
- Bug / feature tracker: https://github.com/nubot-nudt/nubot_ws/issues
- Source: git https://github.com/nubot-nudt/nubot_ws (branch: master)
The strategy part in nubot_control package has been removed. But you can still compile the package successfully.
$ sudo chmod +x configure
For real robot applications
- All components:
$ roslaunch nubot_common nubot.launch
- Joy stick and hardware controller
$ roslaunch nubot_hwcontroller nubot_hwcontroller.launch
$ rosrun nubot_hwcontroller nubot_teleop_joy
- Show images from the cameras
- Please edit the file: core.hpp and uncomment '#define SIMULATION'; then compile the code again.
- Run the following commands:
$ ./src/cyan_spawn_model.shfor cyan robots,
$ ./src/magenta_spawn_model.shfor magenta robots.
Error & Fix
Problem: nubot_hwcontroller shows an error: 'pid *** died'.
$ sc devel/lib/nubot_hwcontroller/nubot_hwcontroller_nodeThe command 'sc' is an alias of 'sudo setcap cap_net_raw=ep'
Problem: CMake Error at nubot/color_segment/CMakeLists.txt:40 (Qt5_WRAP_CPP): Unknown CMake command "Qt5_WRAP_CPP".
Explanation: using color_segment package to calibrate color-related parameters. This requires Qt since it has a Qt GUI.
Solution 1: You could just delete this package since it does not interfere with other parts. So the compile will go on.
Solution 2: Go to src/nubot/color_segment and edit CMakeLists.txt line 4; change the path to your Qt5Widgets.
Problem: hwcontroller_node.cpp:6:21: fatal error: ncurses.h: No such file or directory
$ sudo apt-get install libncurses5-dev
help files are located in /doc folder; please refer to them