ros

Ros installtion getting stuck during build

∥☆過路亽.° 提交于 2019-12-24 17:46:07
问题 I am trying to installed ROS kinetic on raspberry pi 3 according to this official page. Installation require to have 51 packages build. on "Roscpp" package build, whole pi3 gets hang(even with using -j2 option to reduce number of thread's). i tried 2-3 times but always same result, even i left for 1-2 days in same hang state by assuming that it will come out but build never completes. Is this is correct way to do it or there is any other way to do cross compilation and put package in pi3. Am

Unexpected response code: 426 with PhanthomJS Websocket client/ROSLIB

こ雲淡風輕ζ 提交于 2019-12-24 13:52:01
问题 I'm trying to use PhanthomJS (1.9.7) to setup batch test script to drive our robotics software over our Websocket server (RosBridge which is implemented on top of Tornado). We use ROSLIBJS which is a JS library that uses the standard HTML5 WebSocket API to interact with the server. I would have preferred to use NodeJS instead of PhantomJS, but there are dependencies in the ROSLIBJS that requires browser DOM structures to be available. Someone ported ROSLIBJS for NodeJS. I got it running, but

Error exchanging list of floats in a topic

匆匆过客 提交于 2019-12-24 07:18:52
问题 I think that the issue is silly. I'd like to run the code on two computers and I need to use a list . I followed this Tutorials I used my PC as a talker and computer of the robot as a listener. when running the code on my PC, the output is good as I needed. [INFO] [1574230834.705510]: [3.0, 2.1] [INFO] [1574230834.805443]: [3.0, 2.1] but once running the code on the computer of the robot, the output is: Traceback (most recent call last): File "/home/redhwan/learn.py", line 28, in <module>

ROS catkin_init_workspace not found when spawned as process by PHP

百般思念 提交于 2019-12-24 04:01:19
问题 Let me elaborate: I am trying to spawn the catkin_init_workspace from PHP, using the proc_open like so: touch( "$dir/stderr.txt" ); chmod( "$dir/stderr.txt", 0755 ); $fp = fopen("$dir/stderr.txt", "w"); fclose($fp); $descr = array( 0 => array("pipe", 'r'), // stdin 1 => array("pipe", 'w'), // stdout 2 => array("file", "$dir/stderr.txt", "w")to file ); $pid = proc_open( "catkin_init_workspace", $descr, $pipes, $dir ); if (!is_resource( $pid) ) throw new Exception ( "`catkin_init_workspace`

ROS catkin_init_workspace not found when spawned as process by PHP

天大地大妈咪最大 提交于 2019-12-24 04:01:11
问题 Let me elaborate: I am trying to spawn the catkin_init_workspace from PHP, using the proc_open like so: touch( "$dir/stderr.txt" ); chmod( "$dir/stderr.txt", 0755 ); $fp = fopen("$dir/stderr.txt", "w"); fclose($fp); $descr = array( 0 => array("pipe", 'r'), // stdin 1 => array("pipe", 'w'), // stdout 2 => array("file", "$dir/stderr.txt", "w")to file ); $pid = proc_open( "catkin_init_workspace", $descr, $pipes, $dir ); if (!is_resource( $pid) ) throw new Exception ( "`catkin_init_workspace`

ROS入门 之 基本命令

有些话、适合烂在心里 提交于 2019-12-24 00:14:43
roscore roscore 是运行ROS 主节点的命令,也可以在另一台位于同一个网络内的计算机上运行。 注意:除了支持多roscore的某些特殊情况,roscore 在一个网络中只能运行一个。 运行ROS时,将使用在 ROS_MASTER_URI 变量中列出的URI (统一资源标识符)地址和端口。如果用户没有设置,将使用当前的本机IP地址作为URI地址并使用端口11311。 rosrun rosrun用于在功能包中运行一个节点。节点使用的URI地址将存储在当前运行节点的计算机的ROS_HOSTNAME环境变量作为URI地址,端口被设置为任意的固有值。 roslaunch roslaunch 可用于运行多个确定的节点。还包括一些专为执行具有诸多选项的节点的ROS命令,比如包括更改功能包参数或节点名称、配置节点命名空间、设置ROS_ROOT和ROS_PACKAGE_PATH以及更改环境变量等 roslaunch 使用 *.launch 文件来设置可执行节点,基于可扩展标记语言(XML),并提供 XML 标记形式的多种选项。 rosbag 用户可以保存ROS中发送和接收的消息的数据,用于保存的文件格式成为bag,以 .bag为扩展名。 这个功能包可以用来存储信息并在需要的时候回放以前的情况; 应用:使用传感器执行某些实验时,使用bag将传感器值以消息的形式保存

ros usb_cam select timeout的问题

假装没事ソ 提交于 2019-12-23 21:49:17
ros usb_cam select timeout的问题 问题同上, 当出现 问题可能原因 将长于宽更改时, 如果还试图使用apriltag_ros等,检查长宽更改是否会影响定位的数据,很有可能定位会出现偏差,要把相应camera_info都改掉 问题同上, 当出现 [ERROR] [1577096025.464443267]: select timeout [usb_cam-1] process has died [pid 8073, exit code 1, cmd /home/ape0/catkin_ws_rp/devel/lib/usb_cam/usb_cam_node __name:=usb_cam __log:=/home/ape0/.ros/log/ed6a76aa-256b-11ea-aec4-c400ad3e7ef2/usb_cam-1.log]. log file: /home/ape0/.ros/log/ed6a76aa-256b-11ea-aec4-c400ad3e7ef2/usb_cam-1*.log 问题可能原因 resolution is too high ,尝试将长于宽同比例改的稍微小一点.(与此同时如果有通过calibration 得到的camera info, 要重新calibrate,务必要保持这两个长宽一致) frame rate is

Linking opencv nonfree components (SIFT features and OCL specifically)

巧了我就是萌 提交于 2019-12-23 12:45:20
问题 I am having trouble compiling some code after a OS upgrade (Ubuntu 12.04 to 14.04) and a re-install of opencv. The general issue is with the "nonfree" parts of opencv which I compiled from source using the following procedure: mkdir ~/OpenCV && cd ~/OpenCV wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.10/opencv-2.4.10.zip unzip opencv-2.4.10.zip cd opencv-2.4.10 cmake -D WITH_CUDA=ON -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr . make sudo make

OpenCV Error: Assertion failed (a_size.width == len)

一世执手 提交于 2019-12-23 05:12:19
问题 Background I am currently trying to build an autonomous drone using ROS on my Rapsberry Pi which is running an Ubuntu MATE 16.04 LTS . Solving the Computer Vision problem of recognising red circles as of now. Since by nature, the drone is not stable (as there is an internal PID controller stabilising the drone) and due to lighting conditions, the drone often detects the same circle but in a very unstable way. To tackle this problem, comments on [this][1] question suggested that I try video

ROS创建功能包

喜你入骨 提交于 2019-12-23 00:22:45
打开Home文件夹,在home文件夹下单击右键选择 Open in Terminal 在home目录下创建自己的工作空间,具体命令格式如下: mkdir <工作空间名称> 实例: mkdir ros_project_ws ,于是,home目录下多了一个文件夹。 进入src文件夹, cd <文件夹名称> ,实例: cd ros_project_ws/ 。 创建src文件夹, mkdir src ,并进入到该文件夹下。 初始化创建的工作空间, catkin_init_worksapce 。 具体过程请看运行截图: 如果出现 Creating symlink "/home/<用户名>/ros_oriject_ws/CMakeLists.txt" pointing to "/opt/ros/melodic/share/catkin/cmake/toplevel.cmake" 字样,在src文件夹下查看是否有cmakelist.txt文件。 说明初始化成功。 退到总工作空间 ros_project_ws 下,执行下面代码 catkin_make 。会打印如下内容,并在创建出build和devel两个文件夹。 创建install文件夹,用来存放要执行的文件。代码如下: catkin_make install ,会发现工作空间会多了一个install文件夹。 进入src文件夹下,开始创建功能包