kinect2 rviz初次使用

使用iai_kinect2标定kinectV2相机 实验背景:因为需要制作bundlefusion需要的数据集,所以需要使用kinectV2相机获取rgbd图像,年前的时候在我的笔记本上安装了libfreenect2库和iai_kinect2,标定过一次kinecv2相机,然后使用kinectv2相机实时获取的图像实现elasticfusion稠密重建.但是由于当时时间紧迫,很多东西都没有搞明白,所以趁这次机会将一些问题整理一下,记录一下. 环境搭建: 1. 安装了ROS的kinetic版本 libfreenect2和iai_kinect2的安装参考文 阅读详情

1、source ~/Documents/catkin_ws/devel/setup.sh
2、roslaunch kinnect_bridge kinect2_bridge.launch
3、rosrun tf static_transform_publisher 0 0 0 0 0 0 1 map my_fram10
4、rosrun rviz rviz
左下角add —— image 在Image Topic中选/kinect2/qhd/image_color_rect ,可以看到图像,则kinect2可以正常使用了

Gazebo机器人仿真 —— 通过Rviz显示传感器(camera、kinect、Lidar)采集信息 文章目录一、安装Rviz工具二、搭建gazebo机器人物理仿真环境三、gazebo搭建传感器仿真环境,并通过Rviz数据显示四、参考???? 一、安装Rviz工具 1. 准备工作 如何在虚拟机下打开摄像头,请参考:OpenCV在Ubuntu下的图像编程的第三步。 2. 安装相关功能包 sudo apt-get install ros-melodic-uvc-camera sudo apt-get install ros-melodic-image-* sudo apt-get install ros-mel 阅读详情

相关推荐

[028] Gazebo构建Kinect模型,在RVIZ中显示点云PointCloud2出错:点云位姿错误,浮在空中

一、Bug描述 1、发生错误的.urdf代码(也不是代码错误,是gazebo的bug) <link name="camera_link"> <visual> <origin xyz="0 0 0" rpy="0 0 0" /> <geometry> <sphere radius="0.015" /> </geometry> &

yhxxhy978的博客 3176

Kinect v2 iai_kinect2功能包使用解读(笔记3)

连接:https://github.com/OpenKinect/libfreenect2 kinect2_bridge 1 特色 在非高端硬件上每秒传输30帧 通过千兆以太网每秒传输多达30帧 支持压缩图像传输 利用多个内核,并使用基于OpenCL的深度注册特殊实现 2 首先 这里最好参照之前的步骤,将内参标定的4个yaml文件放到以自己的序列号命名的文件夹下。 Point clouds are only published when the launch file is used. Run roslau

MakeYouClimax的博客 3627

turtlebot2结合Kinect2导航

         由于turtlebot默认的Kinect是第一代产品,而第二代较之第一代性能有了很大的提高,所以我选择了第二代,但是在实验过程中出现了各种各样的问题,也是对ROS中的turtlebot的包没有理解透彻,终于可以实现导航了,其总共分为四个步骤吧,turtlebot包里边缺的就是关于kinect2的驱动和建图,所以我们需要把驱动和建图这两块加入到启动的launch文件中,前提是我们装...

sinat_29754847的博客 2918

读取iai_kinect2数据+处理+rviz显示

1.安装iai_kinect2 2.运行kinect2_bridge roslaunch kinect2_bridge kinect2_bridge.launch publish_tf:=true 3.设定摄像头的姿态 rosrun tf static_transform_publisher 0 0 0 -1.5707963267948966 0 -1.570796326794896...

BetterEthan的博客 2236

Ubuntu18.04下使用ROS运行Kinect V2获取点云数据及在Rviz中显示

安装libfreenect2 #下载源码 git clone https://github.com/OpenKinect/libfreenect2.git #安装依赖,亲测全程不缺依赖报错 sudo apt install build-essential cmake pkg-config libturbojpeg libjpeg-turbo8-dev mesa-common-dev freeglut3-dev libxrandr-dev libxi-dev libglfw3-dev libopenni2

weixin_48395629的博客 2355

UR5、Kinect2手眼标定总结

花了几天的时间,在师兄的帮助下完成了手眼标定的工作。现在就我个人出现的问题做一下总结。 首先引用师兄博文https://blog.youkuaiyun.com/sinat_23853639/article/details/80276848 硬件配置没什么好说的,我个人感觉没什么要求。软件平台是Ubuntu16.04、ROS kinetic、UR5版本3.2。 1、easy_handeye安装 在安装之...

zhang970187013的博客 2万+

基于ROS平台的移动机器人-6-使用Kinect2获取激光数据

基于ROS平台的移动机器人-6-使用Kinect2获取激光数据ready此教程我们将利用KinectV2在ROS平台上将KinectV2获得的深度图片转化为激光数据,以便我们下面的建图和导航。go1.我们这里需要一个将深度图转为激光数据的包(1)cd ~/catkin_ws/src (2)git clone https://github.com/ros-perception/depthimage_

Forrest's Space 1万+

ROS学习【11】-----基于ubuntu16.04上Gazebo机器人环境搭建的传感器仿真(camera、kinect、Lidar),并通过Rviz进行数据显示

ROS学习-----基于ubuntu16.04上Gazebo机器人环境搭建的传感器仿真目录一、Gazebo环境搭建前的准备1、将搭建模型下载到我们的gazebo环境下2、升级我们的gazebo版本二、创建配置launch文件参数的world文件1、进入工程包mbot_gazebo2、创建文件夹worlds3、进入该文件夹4、创建playground.world文件5、创建room.world文件三...

qq_42451251的博客 3607

RVIZ显示kinect2的点云信息

RVIZ显示kinect2的点云信息1. 之前卸载其他东西把rviz一起卸载后出现的问题2. RVIZ来显示kinect2的点云信息 rviz使用官网教程 1. 之前卸载其他东西把rviz一起卸载后出现的问题 问题 [rospack] Error: package ‘rviz’ not found 解决 sudo apt-get install ros-indigo-rviz 2. RVIZ...

YQ8023family的博客 1708

使用moveit!控制真实机械臂(5)——编写真实机械臂节点中的action服务程序

上一篇文章中,我们简要介绍了ROS中action的基本知识,为了控制真实机械臂,我们已经修改了moveit配置文件,使得moveti启动后具备一个control_msgs::FollowJointTrajectoryAction类型的action客户端,接下来,我们完成该类型action的另一半,编写C++程序来实现action的服务端。由于底层机器人控制程序一般差别都很大,这里展示的只是编程要点...

爱学习的草莓熊 1万+

基于FPGA的PCIe核系列:FPGA root模式生成工程例子分析(1)

一、 PCIE系统架构 1.1 PCIE分层结构 PCIE结构 1.2 TLP包 四种TLP类型。 Memory (内存空间操作) IO (IO空间操作) Configuration (配置操作) Message (信息操作) 四种类型TLP,如果有需要响应,称为Non-Posted TLP,如果没有需要响应,称为Posted TLP。 TLP包类型 1.2.1 TLP结构 TLP数据格式 1.2.2 Header各个字段的含义 Header格式 ...

huangshanhu的博客 3433

使用Rviz查看基于iai_kinect2的kinect2_bridge发布的实时点云和Octomap_server发布的实时octomap数据

第一步:安装Octomap及其在Rviz中的插件 sudo apt-get install ros-kinetic-octomap-ros sudo apt-get install ros-kinetic-octomap-msgs sudo apt-get install ros-kinetic-octomap-server sudo apt-get install ros-kinetic-oc...

小强的机器人工坊 2729

Altium Designer许可证冲突?手把手教你用Windows防火墙彻底禁止AD联网(附详细截图)

本文详细介绍了如何通过Windows防火墙精准管控Altium Designer的网络权限,解决许可证冲突问题。通过配置入站和出站规则,彻底阻断AD的联网行为,提升软件运行效率。适用于需要稳定使用Altium Designer的工程师,附有详细截图和高级验证方法。

weixin_38170137的博客 423

使用kinect2获取点云数据,滤波保存转为octomap

准备 硬件:Kinect v2 系统:Ubuntu 16.04 ROS kinetic 前期准备:安装Kinect相关驱动,参考博客:安装kinect驱动配置 在Rviz中查看Kinect采集到的点云信息 驱动安装完成以后,可以连接上设备,使用以下命令测试一下能否在Rviz中看到点云信息: roslaunch kinect2_bridge kinect2_bridge.laun...

愿万事胜意 4528

从零开始使用CubeMX配置STM32使用lwip实现httpd服务器以及使用vscode编辑阅读keil代码(三)

使用stm32搭载lwip实现HTTPd服务器

qq_30623327的博客 5933

电磁场可视化

电磁场可视化 如题,做了电磁场可视化这么久了,也是颇有些心得了,简单描述一下怎么做这个项目的。 开始时是从最基本的OpenGL开始做的,必不可少的翻了许多的文献,后来是直接在unity中做,发现效果挺好,而且可控性强好多。反复琢磨后,发现可视化的渲染,有几种思路,第一就是用linerender,画线的方法,另一种就是用shader。 第一种我通过unity自带的linewave插件可以做到 详细的就是,linewave插件可以轻松画出曲线等,并且可以添加碰撞,控制频率幅度长度等一切的条件数值,而且令人惊喜

weixin_43979140的博客 1670

读取iai_kinect2的点云数据并且在rviz显示

读取iai_kinect2的点云数据并且在rviz显示 1.安装iai_kinect2 2.创建getcloud功能包并且编写getcloud.cpp文件 2.1在工作空间的src文件目录下创建功能包 catkin_create_pkg getcloud roscpp rospy sensor_msgs std_msgs 注释:libfreenect2功能包是笔者其他用处,不用管,忽略掉,也可以参考另外一篇关于Kinect的博客有介绍。 2.2在创建的功能包的src文件下编写getcloud.cpp文

求知小鸟 916

图像识别火灾检测系统实战:从火焰特征到YOLO部署全解析

计算机视觉技术正深入改变传统消防的感知方式。图像识别火灾检测利用摄像头采集的视频流,通过颜色、动态和形态特征分析,实现早期火情的自动发现与定位。其核心原理在于,火焰在视觉上具有独特的颜色分布、闪烁特性和轮廓变化,借助目标检测模型如YOLO,可在复杂场景中区分真实火焰与干扰物。这项技术广泛应用于仓库、园区、隧道等大空间场所,是智慧消防的重要支撑。本文从火焰视觉特征、数据集构建、模型选型与系统架构设计出发,结合部署实践中的误报与算力优化经验,为开发者提供一套可落地的视频火焰检测方案。

weixin_42533751的博客 245

rviz中添加kinect2的模型

1 编译报错Not enough blocks XacroException('Not enough blocks',) when instantiating macro: kinect2_xacro (/home/cbc/catkin_ws/src/iai_robots/iai_kinect2_description/urdf/kinect2.urdf.xacro) in file: /home/

coldplayplay的博客 3710

5、快速入门

点击启动实例按钮,并设计一个business key,每个实例会有一个business key, 业务主键,也相当于一个流程实例唯一key,一般会与一次业务强相关,比如一个订单号 ,此处取为shopping_1;付款程序完成后会流转到物流发货任务,此时java工程的相应订阅会收到任务,并进入断点,且读到到toWhere变量。单击shopping可以进入实时流程图的执行图,此时流程流转到第一个任务,需要业务系统完成此任务,并通知引擎。添加类,分别订阅流程中的加入购物车任务和物流发货任务。

leyoliu的博客 3501

华为OD机考双机位C卷 - 补种未成活胡杨 (Java & Python& JS & C/C++ & GO )

华为OD机考双机位C卷 - 补种未成活胡杨(OD上机考试双机位C卷)。提供在线OJ刷题。Java、C++、Python、GO语言、C语言、JavaScript题解,并提供完整思路讲解。

算法大师! 2418

Kinect2使用命令

1.运行kinect2节点:roslaunch kinect2_bridge kinect2_bridge.launch2.查看图像: (1)使用image_view,image_view包是用来查看ROS中的image话题的 用法:rosrun image_view image_view image:=<image topic>示例:rosrun image_view image_view i

u013341645的博客 1258

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

【ROS2】URDF、Gazebo与Rviz综合应用

通过 Gazebo 模拟机器人的传感器,然后在 Rviz 中显示这些传感器感知到的数据。主要内容包括:运动控制以及里程计信息显示、雷达信息仿真以及显示、摄像头信息仿真以及显示、kinect 信息仿真以及显示。

guilin 1372

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

ROS rviz 显示 kinect v2 点云数据

roslaunch kinect2_bridge kinect2_bridge.launch publish_tf:=true 启动的时候发布tf

tuilun7729的博客 3364

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

解决RViz中点云‘漂移’问题:Kinect与Gazebo仿真坐标系的终极对齐指南

本文深入解析RViz中点云漂移问题的根源,提供Kinect与Gazebo仿真坐标系对齐的终极解决方案。通过六步调试法、坐标系三重奏原理及实战技巧,帮助开发者精准映射点云数据,解决常见的TF坐标系不一致、URDF配置错误等问题,提升机器人仿真与现实的坐标一致性。

weixin_30954265的博客 463

ROS Melodic Kinect2_tracker包配置

ROS Melodic Kinect2_tracker包配置 language:中文 参考链接: Baxter实战 实现kinect v2实现动作跟随: 解决./UserViewer不可行的情况以及提供了相关资源 Baxter实战:Ubuntu16.04+Kinect2实现动作跟随 以上两个链接均有在配置成功后如何利用数据的例子,特别是第一个是应用了BIRL实验室的功能包。 ros+kinetic16.04配置kinect2_tracker详解 :流程最清晰, 因它成功的教程 资源链接 提取码:46pg

nkc555的博客 658
下一篇: ros_小海龟
Tim375
博客等级 码龄10年 7粉丝 6原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值