roboware common operations and problems

Blog Reference: https://blog.csdn.net/u013528298/article/details/88052470

1. build error location targeting

Hold down the "CTRL" key and click on the link error to jump to the corresponding position in the source code

2. Construction of the one or more packets workspace

By default, click on the "Build" button to build all packages in the current workspace. If you want to build one of the one or more packages, you can right-click on the package name, set it to active status. It may be one or more packets simultaneously to the active state. At this point, not compiled package is called "non-event package", will be to remove the lines marked in the directory list. Click "Build" button, RoboWare Studio package will only be active in the building.
3. Edit the ~ / .bashrc file

 This function is also very convenient, we know that there .bashrc file in your home directory (~). This file is written inside arbitrary code will run before a new terminal. When we create a new work space of time, every time you open a new window will need to source what if a source devel / setup.bash (only applies to the current terminal) this time we can open this file - directly turn to the last side open, add the following code at the bottom, you can save

source ~/workSpaceName/devel/setup.bash

4.

problem

After 1. clang-formate-3.8 is installed, it is not working

 

Solution, create a shortcut under / usr / bin directory

whereis clang-format-3
clang-format-3: /usr/bin/clang-format-3.8
sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format

2. Add the project note that adding dependencies, there are a lot of problems are caused by dependencies, you can add dependencies right, but be careful to check find_package CMakeLists is not added

3. Create the src folder, add the cpp files in it when you are prompted to be added to the library or an executable file, this time we choose the executable file, added later we found CMakeLists in more than a piece of code, as I added in the src listener.cpp

 

Guess you like

Origin www.cnblogs.com/flyinggod/p/11444367.html