ros

uEye camera not detected with VideoCapture

a 夏天 提交于 2019-12-09 23:15:14
问题 I'm pretty stuck on a problem with my uEye camera. Using my laptop camera (id 0) or internet camera on usb (id 1) this line works perfectly: TheVideoCapturer.open(1); (TheVideoCapturer is of VideoCapture class, OpenCV). Unfortunately, when I try to do the same with my uEye camera, it can't find it. I checked the camera ID in the ueyecameramanager, and it's 1. Or 35, in some expert mode. I'd like to use it the same way I used mentioned above cameras. I've got the drivers, because, well, the

ROS问题:#error This file requires compiler and library support for the ISO C++ 2011 standard.

佐手、 提交于 2019-12-09 21:57:39
在解决了上面这篇博客 ROS问题:Could not find a package configuration file provided by ...... 的问题之后,进行编译,结果出现了如下问题: 即: In file included from /usr/include/c++/5/type_traits:35:0, from /usr/include/gtest/gtest.h:59, from /home/zydz/catkin_ws/src/navigation-melodic-devel/map_server/test/rtest.cpp:32: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^ 分析 :从所报的错误来看,是和map

ROS 发布及订阅消息

痴心易碎 提交于 2019-12-09 17:52:12
ROS 之 发布及订阅消息理论知识 大目标:学会使用ROS发布及订阅消息。 小目标: (1)CMakeLists.txt的建立 (2)package.xml的建立 原因:在理解、实现 ROS中发布及订阅消息程序时,发现头文件单纯包含#include<ros/ros.h>是不可行的,通过查阅资料发现需要首先包含CMakeLists.txt及package.xml。 1. 安装和配置ROS环境 按照官网教程一步一步安装即可。 针对Linux16.04 Kinetic版本 2. ROS环境管理 2.1 确保环境变量被配置 在Linux终端输入: $ printenv | grep ROS 此时显示: ROS_ROOT=/opt/ros/kinetic/share/ros ROS_PACKAGE_PATH=/opt/ros/kinetic/share ROS_MASTER_URI=http://localhost:11311 ROS_VERSION=1 ROSLISP_PACKAGE_DIRECTORIES= ROS_DISTRO=kinetic ROS_ETC_DIR=/opt/ros/kinetic/etc/ros 通过该命令查看是否配置了ROS_ROOT和ROS_PACKAGE_PATH这样的环境变量。 2.2 创建一个catkin 工作空间: 在终端依次输入: $ mkdir -p

Ubuntu16.04安装ROS kinetic

冷暖自知 提交于 2019-12-09 17:50:58
ROS kinetic官网:http://wiki.ros.org/kinetic/Installation/Ubuntu 1. 配置Ubuntu的资源库:"restricted","universe"和"multiverse"。一般情况是不用配置的,参考下图红色框部分。 如果没有配置,可以参考Ubuntu官网:点击打开链接 2. 设置Ubuntu的sources.list sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 3. 设置key sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 如果无法连接上述服务器,可以尝试hkp://pgp.mit.edu:80或者hkp://keyserver.ubuntu.com:80 4. 更新package sudo apt-get update 5. 安装ROS kinetic完整版 sudo apt-get install ros-kinetic

ROS-Jade版在UbuntuKylin15.04上的源码安装

◇◆丶佛笑我妖孽 提交于 2019-12-09 17:45:14
ROS-Installing from source Install from source requires that you download and compile the source code on your own. ROS Jade supports Trusty, Utopic, and Vivid. Other platforms are possible to use but are not expected to work out of the box. Target platforms are defined in REP 3 目录 Installing from source Update the workspace Rebuild your workspace Building the catkin Packages Installing bootstrap dependencies Initializing rosdep Prerequisites Installation Maintaining a Source Checkout Prerequisites Installing bootstrap dependencies Install bootstrap dependencies (Ubuntu): These tools are used

Kinetic

雨燕双飞 提交于 2019-12-09 11:35:04
1 添加ROS软件源 sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 2 添加密钥 sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 3 安装ROS sudo apt-get update sudo apt-get install ros-kinetic-desktop-full 4 初始化ROS dep sudo rosdep init rosdep update 5 设置环境变量 echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc source ~/.bashrc 6 安装rosinstall(可选) sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential 来源: oschina 链接: https://my

Drone's motion is unstable with ROS topics

我的梦境 提交于 2019-12-09 08:34:26
Drone's motion is not stable with rostopics...what can I do ? import rospy import time #import library untuk mengirim command dan menerima data navigasi dari quadcopter from geometry_msgs.msg import Twist from std_msgs.msg import String from std_msgs.msg import Empty from ardrone_autonomy.msg import Navdata #import class status untuk menentukan status ddari quadcopter from drone_status import DroneStatus COMMAND_PERIOD = 1000 class AutonomousFlight(): def __init__(self): self.status = "" rospy.init_node('forward', anonymous=False) self.rate = rospy.Rate(10) self.pubTakeoff = rospy.Publisher(

Kinetic - 安装

混江龙づ霸主 提交于 2019-12-08 17:01:24
1 添加ROS软件源 sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 2 添加密钥 sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 3 安装ROS sudo apt-get update sudo apt-get install ros-kinetic-desktop-full 4 初始化ROS dep sudo rosdep init rosdep update 5 设置环境变量 echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc source ~/.bashrc 6 安装rosinstall(可选) sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential 来源: https://my.oschina.net/u

Python script won't exec from php when specific library is used

*爱你&永不变心* 提交于 2019-12-08 13:18:34
问题 Im trying to execute a Python script to get and set the parameter server in ROS. When I run any other simple python script that for example prints "Hello", I get back the value in PHP. But when I run this code: #!/usr/bin/env python import roslib import rospy import sys import re import string get = rospy.get_param("param") print get I get an empty echo. However this code works fine in the terminal! All I'm doing in PHP is: $output = exec("python path/script.py") echo $output; I tried shell

Ubuntu16.04安装ROS操作系统

帅比萌擦擦* 提交于 2019-12-08 11:37:31
目前Ubuntu16.04只能安装ros的kinetic版本 参考官方文档:http://wiki.ros.org/kinetic/Installation/Ubuntu 第一步: 软件源配置 1、 增加下载源(增加ubuntu版的ros数据仓库,即下载源)(通用指令适合任何版本的ros) [cpp] view plain copy sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 2、 设置key,实现安全从数据仓库下载未被修改版,故设置key增加可信度 [cpp] view plain copy sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116 也有用下面这条指令的 [python] view plain copy wget http://packages.ros.org/ros.key -O - | sudo apt-key add - 以上两步为安全配置下载源 可以增加本地本国的源,例如再sourcelist里增加163和sohu,这样没必要从外网下载