ros

ubuntu16.04编译segmap

被刻印的时光 ゝ 提交于 2020-07-29 11:32:13
环境依赖:PCL1.9 tensorflow1.8.0 ros (pcl1.9 及 ros自行配置 ros配置时推荐用国内源) 2020年最近rosdep不易成功具体方法需要 sudo gedit /etc/resolv.conf 删掉其中所有内容替换为 nameserver 8.8.8.8 #google域名服务 nameserver 8.8.4.4 #google域名服务器 下面开始正题 一、下载源码及虚拟环境 $ sudo apt-get install python-wstool doxygen python3-pip python3-dev python-virtualenv dh-autoreconf $ cd ~/segmap_ws $ catkin init $ catkin config --merge-devel $ catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release $ cd src $ git clone https://github.com/ethz-asl/segmap.git $ wstool init $ wstool merge segmap/dependencies.rosinstall $ wstool update $ virtualenv ~/segmappyenv $ source

SLAM拾萃(1):octomap

♀尐吖头ヾ 提交于 2020-07-24 07:26:18
前言   大家好,时隔多年之后,我又开始了博客旅程。经历了很多事情之后呢,我发现自己的想法真的很简单:好好读书做课题,闲下来时写写博客,服务大家。所以我会继续写SLAM相关的博客。如果你觉得它对你有帮助,那是最好不过的啦!写作过程中得到了许多热心读者的帮助与鼓励,有些读者还成了要好的朋友,在此向大家致谢啦!关于SLAM,读者也会有很多问题。由于我个人精力和学力都有限,无法一一回答,向大家说声抱歉!有些共同的问题,我肯定会在博客里介绍的!   前两天刚从珠海开会回来,与中山大学的同学们聚在一起玩耍,很开心!   《一起做》系列已经结束,事实上它是我以前探索过程中的一些总结。虽然仍然有很多令人不满意的地方,不过相信读了那个系列,读者应该对SLAM的流程有一定的了解了。尤其是通过代码,你能知道许多论文里没讲清楚的细节。在这之后,我现在有两个规划。一是对目前流行的SLAM程序做一个介绍,沿着《视觉SLAM实战》往下写;二是介绍一些好用的开源工具/库,写成一个《SLAM拾萃》。我觉得这两部分内容,对读者了解SLAM会有较大的帮助。当然,如果你对我的博客有任何建议,可以在下方评论或给我发邮件。   本篇是《SLAM拾萃》第一篇,介绍一个建图工具:octomap。和往常一样,我会介绍它的原理、安装与使用方式,并提供例程供读者学习。必要时也会请小萝卜过来吐槽。(小萝卜真是太好用了

error: no > match for call to ‘(boost::_mfi::mf1<void

最后都变了- 提交于 2020-06-29 03:56:06
问题 I have rather a basic knowledge in c++ and there is an issue described in the following which is likely rather simple and a based on a syntax mistake but I haven't figured out a way around it. Basically the error I get says: remote_hw_interface_node.cpp:23:68: required from here /usr/include/boost/function/function_template.hpp:231:11: error: no match for call to ‘(boost::_mfi::mf1<void, ROBOTHardwareInterface, const boost::shared_ptr<sensor_msgs::JointState_<std::allocator<void> > > >&>)

Use data from multiple topics in ROS - Python

落爺英雄遲暮 提交于 2020-06-26 05:56:13
问题 I'm able to display data from two topics but I can't do use and compute data in real time from these two topics in ROS (written in Python code). Have you got any idea to stock this data and compute in real time ? Thanks ;) #!/usr/bin/env python import rospy import string from std_msgs.msg import String from std_msgs.msg import Float64MultiArray from std_msgs.msg import Float64 import numpy as np class ListenerVilma: def __init__(self): self.orientation = rospy.Subscriber('/orientation',

Use data from multiple topics in ROS - Python

混江龙づ霸主 提交于 2020-06-26 05:54:50
问题 I'm able to display data from two topics but I can't do use and compute data in real time from these two topics in ROS (written in Python code). Have you got any idea to stock this data and compute in real time ? Thanks ;) #!/usr/bin/env python import rospy import string from std_msgs.msg import String from std_msgs.msg import Float64MultiArray from std_msgs.msg import Float64 import numpy as np class ListenerVilma: def __init__(self): self.orientation = rospy.Subscriber('/orientation',

Python QT findChildren does not find any children from UI file

半腔热情 提交于 2020-06-20 05:04:06
问题 I have a UI file like this <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>RoverPlanner</class> <widget class="QWidget" name="RoverPlanner"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>752</width> <height>555</height> </rect> </property> <property name="windowTitle"> <string>RoverPlanner</string> </property> <widget class="QWidget" name="horizontalLayoutWidget_6"> <property name="geometry"> <rect> <x>0</x> <y>10</y> <width>641</width> <height>501</height> <

Unable to install ROS Melodic on Ubuntu 20.04

给你一囗甜甜゛ 提交于 2020-06-17 14:15:06
问题 I am trying to install ROS Melodic on Ubuntu 20.04 using these commands sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 sudo apt update sudo apt install ros-melodic-desktop-full But I get this error E: Unable to locate package ros-melodic-desktop-full I have tried to install the different versions and

ROS message_filters::TimeSequencer

杀马特。学长 韩版系。学妹 提交于 2020-06-17 06:59:48
问题 I'm trying to delay processing of some input received via ros topics and as I was reading over the message_filters package information, TimeSequencer seemed to do just this. They even include some example code which I copied, but cannot get it to compile whatsoever. I have pasted the small test program that produces errors here: #include "ros/ros.h" #include <message_filters/subscriber.h> #include <message_filters/time_sequencer.h> #include <std_msgs/String.h> void callback(const std_msgs:

How to source additional environment in pycharm?

南笙酒味 提交于 2020-06-17 02:01:18
问题 I have a ROS application which has a work space with a setup.bash file and another python script with its own virtual environment. So far this is what I do in my terminal: 1_ pipenv shell (to activate my python virtual environment). 2_ source ../ros_workspace/devel/setup.bash 3_ python some_python_script.py This code works as I expect. However, I want to do the same and run this script in pycharm, where my virtual environment is already activated. But how do I source the setup bash

How to source additional environment in pycharm?

主宰稳场 提交于 2020-06-17 01:59:28
问题 I have a ROS application which has a work space with a setup.bash file and another python script with its own virtual environment. So far this is what I do in my terminal: 1_ pipenv shell (to activate my python virtual environment). 2_ source ../ros_workspace/devel/setup.bash 3_ python some_python_script.py This code works as I expect. However, I want to do the same and run this script in pycharm, where my virtual environment is already activated. But how do I source the setup bash