ros

Getting value from function with callback parameters

南笙酒味 提交于 2019-12-11 10:21:17
问题 Im trying to append the value I get in console log, to an array, but I keep getting undefined. I think the function is asynchronous thats why when i try to access it's undefined at time of execution. From what I understand from documentation is that its function parameters is a callback parameter, can someone tell me how to use the value I get to append to an array or a dict. var theparam = new ROSLIB.Param({ ros : ros, name : formid.elements[i].name }); theparam.get(function(value) { console

ROS之gazebo仿真

萝らか妹 提交于 2019-12-11 09:00:21
启动gazebo的launch文件 <launch> <arg name="world_file" default="/home/wode/gazebo_world/world12021045.world"/> <include file="$(find gazebo_ros)/launch/empty_world.launch"> <arg name="use_sim_time" value="true"/> <arg name="debug" value="false"/> <arg name="gui" value="true" /> <arg name="world_name" value="$(arg world_file)"/> </include> <arg name="model" default="/home/wode/rosws/src/mbot_description/urdf/xacro/gazebo/mbot_with_laser_gazebo.xacro" /> <param name="robot_description" command="$(find xacro)/xacro.py $(arg model)" /> <node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model"

gstreamer ubuntu gscam How to separate my camra left and right images

末鹿安然 提交于 2019-12-11 06:03:55
问题 This is my camera picture: My camera is special (Not a pure binocular camera), has one usb interface but two device numbersthe. device:/dev/video0 is about left and right camera images, device:/dev/video1 is the depth of the image combined with left and right cameras, I used gscam (gstream) driven out / dev / video0 is this case:The left and right camera images are in a window inside: How to separate them? divided into two windows, let the left and right camera images are displayed separately

RVIZ: Display own point cloud

断了今生、忘了曾经 提交于 2019-12-11 06:01:38
问题 I try to build my own point cloud with a gaussian distribution. The visualization with rviz doesn't work. Here is how I create the pointcloud int sizeOfCloud = 1000; keypoints.points.resize(sizeOfCloud); getRandomPointCloud(keypoints, 100, 100, sizeOfCloud); keypoints.header.frame_id = "base_link"; keypoints.header.stamp = ros::Time::now(); keypoints_publisher.publish(keypoints); and here is the function getRandomPointCloud: void getRandomPointCloud(sensor_msgs::PointCloud& pc, int centerX,

Error in ROS: Controller Spawner couldn't find the expected controller_manager ROS interface

天大地大妈咪最大 提交于 2019-12-11 05:18:31
问题 I am getting this error: [WARN] [1549645986.850056, 54.996000]: Controller Spawner couldn't find the expected controller_manager ROS interface while launching a urdf in gazebo . I am using ROS Kinetic and have looked for a solution for this error everywhere but couldn't find it. A similar question is asked here. I have done everything suggested in that link and the libjoint_state_controller.so file is present at opt/ros/kinetic/lib. I have added the gazebo plugin in my .xacro file. <gazebo>

Ubuntu16.04下的ROS安装和验证

邮差的信 提交于 2019-12-11 03:32:34
Ubuntu16.04下的ROS安装和验证 1.设置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' 2.设置key(公钥已更新) sudo apt - key adv -- keyserver 'hkp://keyserver.ubuntu.com:80' -- recv - key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 3.更新package sudo apt - get update 4.安装ROS kinetic完整版 sudo apt - get install ros - kinetic - desktop - full 5.初始化rosdep sudo rosdep init 6.配置ROS环境 echo "source /opt/ros/kinetic/setup.bash" >> ~ / . bashrc source ~ / . bashrc 7.安装依赖项 sudo apt - get install python - rosinstall python -

CMake Error: The following variables are used in this project, but they are set to NOTFOUND ? in ros

孤街醉人 提交于 2019-12-11 02:47:07
问题 I am trying to install Morse 1.2 Stable version on my Ubuntu and I followed the steps which are mentioned in the manual installation of Morse. Following is the link :- http://www.openrobots.org/morse/doc/1.2/user/installation.html and when i tried to enter cmake .. command i get the following error:' user@user-HP-ProBook-6550b:~/morse/build$ cmake .. -- will install python files in /opt/ros/fuerte/lib/python3/dist-packages CMake Error: The following variables are used in this project, but

How can I access my docker container in Heroku?

时光怂恿深爱的人放手 提交于 2019-12-11 01:08:13
问题 I have followed the instructions on building an image here: https://devcenter.heroku.com/articles/container-registry-and-runtime#getting-started I have successfully released my image to my heroku app and I do not know what to do next, to access my zsh command line and developing some stuff. I am trying to use ROS (Robot Operating System) in docker container on Heroku. This is my Dockerfile: FROM osrf/ros:kinetic-desktop-full RUN apt-get update && apt-get install -y \ locales \ tmux \ zsh \

libtiff4 error with ROS

谁说我不能喝 提交于 2019-12-10 18:43:55
问题 I am trying to compile a ROS-package from a friend with catkin under Ubuntu 14.04 and am getting the following error: /usr/bin/ld: warning: libboost_system.so.1.49.0, needed by //usr/local/MATLAB/R2014a/bin/glnxa64/libut.so, may conflict with libboost_system.so.1.54.0 //usr/local/lib/libcvd.so: undefined reference to `TIFFWriteEncodedStrip@LIBTIFF_4.0' //usr/local/lib/libcvd.so: undefined reference to `TIFFReadRGBAImageOriented@LIBTIFF_4.0' //usr/local/lib/libcvd.so: undefined reference to

How to force c++ compiler use one of different installed package's versions, using CMake?

不打扰是莪最后的温柔 提交于 2019-12-10 13:10:30
问题 ROS Fuerte I installed on my machine uses opencv 2.2. I would like to use 2.4.9 version just installed. Its location is /home/polar/soft/lib/opencv/opencv-2.4.9/build/lib . How to do that with CMake, please? From my search, it seems that find_library would solve the issue, but was not able to make it work. ===== I include opencv in my cpp codes like this #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> #include "opencv2/imgproc/imgproc.hpp"