我正在尝试使用此处的说明设置ROS安装:
http://developer.dji.com/onboard-sdk/documentation/sample-doc/sample-setup.html#ros-oes
具体来说,我很高兴,事情安装成功,直到我到达第4步:
Building the ROS Nodes
4. If you don't have a catkin workspace, create one as follows:
mkdir catkin_ws
cd catkin_ws
mkdir src
cd src
catkin_init_workspace
这个catkin_ws去哪儿了?在上一步中,我们在~MyUser / Onboard-SDK / build /中,但这似乎不是安装catkin_ws的正确位置? 截至目前,我已尝试在~MyUser / Onboard-SDK / build / catkin_ws的build文件夹中安装catkin_ws,这在步骤6之后出错:
6. Build the dji_sdk ROS package and the dji_sdk_demo ROS package.
cd ..
catkin_make
错误:
"/home/sixarms/Onboard-SDK/build/catkin_ws/src/Onboard-SDK-
ROS/dji_sdk/include/dji_sdk/dji_sdk_node.h:17:19: fatal error: tf/tf.h:
No such file or directory”
然后我删除了MyUser /文件夹中的所有内容并重新启动,这次我在与OnBoard-SDK相同的文件夹中创建了一个catkin_ws(即同一个文件夹中的MyUser / OnBoard-SDK的〜MyUser / catkin_with)在第6步得到致命错误,完全一样。找不到tf / tf.h。嗯:/
答案 0 :(得分:0)
catkin_ws
或您提供给它的任何其他名称可以转到任何地方,不同的ros包或dji_sdks或任何其他sdks然后进入catkin_ws/src/
。
在第4步之后(创建工作区并初始化它),您应该在catkin_ws
内catkin_ws/src/
克隆dj_sdk包,从$ . devel/setup.bash
中获取setup.bash脚本catkin_ws/
。然后从$ catkin_make
内再次运行catkin_ws/
。
答案 1 :(得分:0)
我有这个问题,我的解决方案是安装完整版本的ROS而不是基本版本:
<html><head></head><body>
<p>Please wait while we redirect you to Your APP NAME...</p>
<p><a href="javascript:redirectToApp()">Open appname</a></p>
<script>
var redirectToApp = function() {
var scheme = "appnameapp";
var openURL = "appname" + window.location.pathname + window.location.search + window.location.hash;
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
var Android = /Android/.test(navigator.userAgent);
var newLocation;
if (iOS) {
newLocation = scheme + ":" + openURL;
} else if (Android) {
newLocation = "intent://" + openURL + "#Intent;scheme=" + scheme + ";package=com.appnameapp;end";
} else {
newLocation = scheme + "://" + openURL;
}
console.log(newLocation)
window.location.replace(newLocation);
}
window.onload = redirectToApp;
</script>
</body></html>