问题一
add_custom_target cannot create target
“vicon_bridge_generate_messages_nodejs” because another target with the
same name already exists. The existing target is a custom target created
in source directory
“/home/mar/catkin_ws/src/Turtlebot_PID_Controller-master”. See
documentation for policy CMP0002 for more details.
此错误出现原因是CMakelist中和package.xml中build依赖包不一致,如下所示:
CMakelist
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
vicon_bridge
)
package.xml
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
在package.xml补上缺失的那一项即可:
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>vicon_bridge</build_depend>
问题二:
Invalid tag: environment variable ‘TURTLEBOT3_MODEL’ is not set.
解决办法:
export TURTLEBOT3_MODEL=burger