webviz安装,docker安装可正常使用与Foxglove Studio

这篇具有很好参考价值的文章主要介绍了webviz安装,docker安装可正常使用与Foxglove Studio。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Foxglove Studio

webviz安装,docker安装可正常使用与Foxglove Studio

Foxglove Studio与webviz使用起来非常类似 去可以直接使用web也可以下载安装包

Foxglove Studio不提供源码

安装包下载地址: https://foxglove.dev/download

webviz安装,docker安装可正常使用与Foxglove Studio

web端访问 https://studio.foxglove.dev/

webviz安装,docker安装可正常使用与Foxglove Studio

点击 open connection

webviz安装,docker安装可正常使用与Foxglove Studio

点rosbrideg 点击 open

不要忘记启动以下

启动 本机 10.6.162.111 仿真环境:

   roslaunch turtlebot3_gazebo turtlebot3_house.launch
   roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
   roslaunch turtlebot3_navigation turtlebot3_navigation.launch   map_file:=/home/sukai/slam/map/map_1.yaml

启动

roslaunch rosbridge_server rosbridge_websocket.launch

好了可以使用了:

webviz安装,docker安装可正常使用与Foxglove Studio

桌面版的界面与web版一致。

或者安装

sudo apt install ros-noetic-foxglove-bridge

启动:

rosrun foxglove_bridge foxglove_bridge

启动后终端还报了个错:

[ERROR] [1673434716.779121307]: Skipped loading plugin with error: XML Document '/opt/ros/noetic/share/tf2_server/tf2_server_test_nodelets.xml' has no Root Element. This likely means the XML is malformed or missing..

但还年能用。

选择 Foxglove Websocket 连接ros了

webviz安装,docker安装可正常使用与Foxglove Studio

webviz安装,docker安装可正常使用

换源加速

更换npm源为淘宝的源

npm config set registry https://registry.npm.taobao.org

在 ~/.bashrc 中添加下列语句

export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node

Webviz项目暂时仅支持 node10 和 node11,高版本的 node 会出现编译错误。

查看可安装的node版本

nvm ls-remote

安装指定版本的node

nvm install 10.19.0

查看当前的node版本

nvm current

查看已安装的node版本

nvm list

选择需要的node版本

nvm use 10.19.0

检查是否配置成功

npm config get registry      

克隆代码

git clone https://github.com/cruise-automation/webviz.git
cd webviz/

手动安装node-sass

npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
npm install node-sass
npm run bootstrap  

执行脚本安装项目依赖

npm run bootstrap 

编译项目

npm run build  

使用Webviz

运行rosbridge_websocket

roslaunch rosbridge_server rosbridge_websocket.launch

在webviz根目录执行启动

npm run docs

npm install node-sass 报错:

TypeError: Object.fromEntries is not a function

at Object.<anonymous> (/home/sukai/workspace/workspace_ros_car_noetic/webviz/node_modules/@npmcli/fs/lib/fs.js:6:23)

at Module._compile (internal/modules/cjs/loader.js:778:30)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

at Module.load (internal/modules/cjs/loader.js:653:32)

at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

at Function.Module._load (internal/modules/cjs/loader.js:585:3)

at Module.require (internal/modules/cjs/loader.js:692:17)

at require (internal/modules/cjs/helpers.js:25:18)

at Object.<anonymous> (/home/sukai/workspace/workspace_ros_car_noetic/webviz/node_modules/@npmcli/fs/lib/index.js:2:6)

at Module._compile (internal/modules/cjs/loader.js:778:30)

解决办法:

先清依赖残留,否则安装不上

npm rebuild node-sass

npm uninstall node-sass

安装 4.14的

npm install node-sass@4.14

参考博客:https://blog.csdn.net/qq_44226094/article/details/117792206

npm run bootstrap 报错:

lerna ERR! npm install --global-style --legacy-peer-deps exited 1 in 'webviz-core'

lerna ERR! npm install --global-style --legacy-peer-deps stderr:

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

npm WARN tar ENOENT: no such file or directory, open '/home/sukai/workspace/workspace_ros_car_noetic/webviz/packages/webviz-core/node_modules/.staging/prettier-e8261b17/parser-angular.js'

npm WARN @cruise-automation/button@0.0.7 requires a peer of react@16.x but none is installed. You must install peer dependencies yourself.

【***】 npm WARN styled-components@3.4.10 requires a peer of react@>= 0.14.0 < 17.0.0-0 but none is installed. You must install peer dependencies yourself.

npm WARN webviz-core@0.0.1 No repository field.

npm ERR! Error while executing:

npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/davidswinegar/react-document-events.git

npm ERR!

npm ERR! git@github.com: Permission denied (publickey).

解决:

  npm install react@16.10.2 --save

npm run bootstrap 其它各种依赖报错:

例子:

npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/davidswinegar/Chart.js.git

npm ERR!

npm ERR! git@github.com: Permission denied (publickey).

npm ERR! fatal: 无法读取远程仓库。

npm ERR!

npm ERR! 请确认您有正确的访问权限并且仓库存在。

npm ERR!

npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:

npm ERR! /home/sukai/.npm/_logs/2023-01-11T02_25_33_601Z-debug.log

解决:

暂时没法解决!

尝试:

webviz/packages/webviz-core

gedit package-lock.json 把

搜索 git+ssh://git@github.com 替换:https://github.com但是还是没能解决问题

npm install 安装或者 npm run bootstrap 卡在某一行时请删除以下后重新执行命令

删除 node_modules package-lock.json

docer安装Webviz

后来我用了docer成功使用:

一.准备Webviz的镜像

docker pull cruise/webviz

运行拉下的容器 8080端口太常用了容易冲突我们用7070映射8080

docker run -p 7070:8080 cruise/webviz

http://127.0.0.1:7070/

我电脑本机的 ipv4地址:10.6.162.111

游览器: http://10.6.162.111:7070

游览器: http://10.9.162.111:7070/?demo 官方例子

启动 本机 10.6.162.111 仿真环境:

   roslaunch turtlebot3_gazebo turtlebot3_house.launch
   roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
   roslaunch turtlebot3_navigation turtlebot3_navigation.launch   map_file:=/home/sukai/slam/map/map_1.yaml

启动 roslaunch rosbridge_server rosbridge_websocket.launch

<launch>

    <!-- sudo apt-get install ros-melodic-rosbridge-suite -->
    <!-- roslaunch rosbridge_server rosbridge_websocket.launch -->

   <include file="$(find rosbridge_server)/launch/rosbridge_websocket.launch" >
    <!--   <arg name="port" value="8080"/>-->
   </include>

    <!-- sudo apt-get install ros-noetic-tf2-web-republisher -->
    <!-- rosrun tf2_web_republisher tf2_web_republisher -->
    <node  pkg="tf2_web_republisher" type="tf2_web_republisher"  name="tf2_web_republisher"   output="screen"  >
    </node>

    <!--  sudo apt-get install ros-noetic-web-video-server -->
    <!-- rosrun web_video_server web_video_server -->

    <node  pkg="web_video_server" type="web_video_server"  name="web_video_server"   output="screen"  >
    </node>


</launch>

能够正常使用,想使用熟练就需要下功夫了

webviz安装,docker安装可正常使用与Foxglove Studio

但是雷达点显示不出来报:

/scan missing transforms to root frame map from frames

webviz安装,docker安装可正常使用与Foxglove Studio

要改源码就不能用docker ,现在docker进不了终端;

Webviz

…详情请参照古月居

原文链接:https://blog.csdn.net/lovely_yoshino/article/details/127617733

https://webviz.io/文章来源地址https://www.toymoban.com/news/detail-452460.html

到了这里,关于webviz安装,docker安装可正常使用与Foxglove Studio的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 【Charles安装后不能正常使用场景故障排查】

    1、打开Charles抓包工具后网页不能正常打开 2、使用抓包工具能抓到http,但是https都抓不到提示unkown 3、连上代理后,手机客户端无法下载安装证书 4、安卓设备证书下载后无法安装 5、连上代理后,网络正常,手机没法抓包 6、手机突然抓不到包,之前都能正常使用 6.1 确认电

    2024年02月02日
    浏览(28)
  • Mac机RVM安装,手动下载安装,经过验证可以正常使用

    1、正常方法(不容易成功),我自己就卡了两周(因为墙的问题一直搞不定) 中国境内访问 虽然可以访问,但是下载使用会被强,可能有一些翻越的方法,但是不容易搞 (1)下载资源,我博客里找吧,正在审核 (2)、把资源存放到一个位置上 例:我存放的位置是 (3)、

    2024年01月19日
    浏览(34)
  • Android Studio 无法正常导入项目

    Android Studio 无法正常导入 model,运行按钮边出现“Add Configuration”,可进行以下方法处理: 解决办法: 1、点击Run三角按钮左边紧挨的下拉按钮,选择Edit Configuration,选择 Default 新建一个Android Application,命名为 app (我自己的工程名称),点击确定 2、点击File--Sync Project With Gra

    2024年02月12日
    浏览(38)
  • 小米手机使用FlutterDownloader下载安卓apk文件不能正常安装

    在Flutter项目中使用 flutter_downloader: ^1.9.1 下载apk文件,小米手机提示下载成功但是通知栏进度条卡住并且未跳出安装apk的窗口。 当前Android项目包名:com.app.update.demo 下载更新app提示“下载成功!”,但是执行语句 时报错: ResultType.fileNotFound 。下载保存地址为: /storage/emulated

    2024年02月13日
    浏览(48)
  • 源码编译运行webviz

    建议全程在代理环境下进行! 加代理都麻烦的要死, 无代理建议换个方式, linux就用rviz, windows考虑用foxglove吧 此外, 我尝试在arm架构使用webviz, 但是尽管编译成功, 但是出不了图, 看不到相关消息, 如果有大佬知道为什么还请不吝赐教! 报错 /usr/bin/git ls-remote -h -t + 仓库名 解决: 使

    2024年01月25日
    浏览(27)
  • pycharm 安装github copilot copilot 不能联网 不能正常使用

    选中后重启 我的pycharm版本是2022.1.4社区版 出现不能初始化 安装最新版copilot插件,然后用1.20替换core jar 首先,pycharm最新版本(我的是2022.1),copilot安装最新版本,关闭pycharm 然后,下载copilot 1.1.20.1417版本文件( 地址 ),并解压,找到github-copilot-intellij-1.1.20.1417github-copil

    2024年02月09日
    浏览(43)
  • 电脑装了pytorch没有安装cuda,nvcc -V没反应,但能正常使用gpu

    Windows 10 教育版64位 WSL Ubuntu 20.04 LTS Pytorch 1.7.0 CUDA 11.0 因为深度学习的原因,相信很多人都是在一块硬盘上面装双系统,如 Windows 10 + Ubuntu 20.04 。 最近懒得重启切换系统,所以装了一个 WSL(Windows Subsystem for Linux) 。具体装的是 WSL 2 ,关于 WSL 1 和 WSL 2 之间的主要区别在于,在托

    2023年04月11日
    浏览(27)
  • Ubuntu20.04成功安装google浏览器,并正常使用Bing等其他搜索引擎

    方式一:下载地址(64位) 谷歌浏览器源文件地址 https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 方式二:命令行下载安装Chrome 报错用: sudo apt-get -f install 安装完后,打开google浏览器缺不能打开网页不能查询,换了搜索引擎也不能用 解决办法:打开终端运行 : 问

    2023年04月14日
    浏览(47)
  • uni-app离线打包高德地图导入android studio不能正常显示

    本人使用的uni-app SDK版本:Android-SDK@3.8.7.81902_20230704 1.导入以上文件,依赖已经自动添加了 2.确保这个正常引入 3.修改AndroidMainifest.xml,添加自己的密钥

    2024年02月13日
    浏览(42)
  • 使用 Visual Studio Code Docker 工具调试 .NET 容器

    作者:Chet Husk 排版:Alan Wang Visual Studio Code Docker 工具已发布1.26.0版本,这个版本为使用 .NET SDK 构建和调试容器映像提供了内置支持。 Visual Studio Code Docker 工具使开发人员可以轻松入门容器。它提供了 Dockerfile 模板,用于构建、运行和调试从 Dockerfile 生成的容器的集成,并提

    2024年02月12日
    浏览(35)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包