instruction
stringlengths
40
28.9k
I am using ros fuerte on ubuntu 12.04 what is the easiest way to use dataset provided here: http://vision.in.tum.de/data/datasets/rgbd-dataset I am doing as described here: http://answers.ros.org/question/9785/rgb-6d-slam-performance-on-a-robot/ but I cant see anything Is it possible to create local map, not only global? Originally posted by Wilk on ROS Answers with karma: 67 on 2014-01-28 Post score: 0
Currently I am publishing frames from a ROS bag file, using recorded timestamps. When I try a publish a pointcloud using from a current node. Frames do not exist to publish the topic, this is because the frames are being broadcast from a bagfile and hence have old time stamps. One solution was the re-write the timestamps in the bag files and then play them. However by the time you parse and re-write the bag files and play them the time stamps will be too old again. I am wondering if there was a way to force the ROS system time to equal the earliest time in the bagfile, once the bag file play command is given? My current idea, to publish a time stamp message from the ROS bag file. Then all nodes will subscribe to this, therefore when something is published from my nodes, it can refer to the bagfile time stamp. This method would fall apart when you are rely on third party nodes to publish certain things eg pcd2pointcloud node. Another method, would be to figure out the offset in time between the current time and the bagfile time, therefore you could publish a pointcloud to the correct time. This method would mean you cannot play the bagfile at half speed. Originally posted by Sentinal_Bias on ROS Answers with karma: 418 on 2014-01-28 Post score: 7
Hi there, I am trying to understand how to publish and subscribe to a PointCloud2 data from Kinect. Here is a sample program that publishes a PointCloud data. #include <ros/ros.h> #include <pcl_ros/point_cloud.h> #include <pcl/point_types.h> typedef pcl::PointCloud<pcl::PointXYZ> PointCloud; int main(int argc, char** argv) { ros::init (argc, argv, "pub_pcl"); ros::NodeHandle nh; ros::Publisher pub = nh.advertise<PointCloud> ("points2", 1); PointCloud::Ptr msg (new PointCloud); msg->header.frame_id = "some_tf_frame"; msg->height = msg->width = 1; msg->points.push_back (pcl::PointXYZ(1.0, 2.0, 3.0)); ros::Rate loop_rate(4); while (nh.ok()) { msg->header.stamp = ros::Time::now (); pub.publish (msg); ros::spinOnce (); loop_rate.sleep (); } } However, there are errors. My system cannot find files #include <pcl_ros/point_cloud.h> and #include <pcl/point_types.h>. I tried to search for the files, and got them under /pcl-1.5/pcl/point_types.h. I tried to #include the above path. Now the error changed to fatal error: Eigen/StdVector: No such file or directory, compilation terminated. Here are my Questions: Why I have files under /pcl-1.5/pcl/point_types.h rather than general pcl/point_types.h? Does it make a difference. Same question for pcl_ros/point_cloud.h What am I doing wrong? why an already given code is not running properly? I have no folder called pcl_ros. Why? Any answer will be appreciated. Originally posted by Latif Anjum on ROS Answers with karma: 79 on 2014-01-28 Post score: 2 Original comments Comment by lfelipesv on 2014-01-28: I think you will get errors trying to compile this file. But let's try to solve your first problem. When you look for roscd pcl_ros you find nothing, right? And what is your ROS distribution and Ubuntu Release? Comment by Latif Anjum on 2014-01-28: Interestingly roscd pcl_ros gives the following path. /opt/ros/fuerte/stacks/perception_pcl/pcl_ros I have ros-fuerte and ubuntu 12.04. Am I using two copies of pcl? one under /pcl-1.5/pcl and another under /stacks/perception_pcl? Comment by lfelipesv on 2014-01-28: Try to add manually the source: source /opt/ros/fuerte/setup.bash , or something like that and run again. Let me know if the same error occur. Comment by Latif Anjum on 2014-01-28: sorry for my dumbness but I didnt get it. Where should I add source /opt/ros/fuerte/setup.bash?
In some tutorials is mentioned the existence of tf2_echo. I'm using Ubuntu and ROS Hydro but I don't find it anymore in any package installed. The same issue is about turtle_tf2? They do exist? How can I install both of them? Regards Originally posted by formica on ROS Answers with karma: 61 on 2014-01-28 Post score: 5 Original comments Comment by destogl on 2015-10-06: The tutorials are now finished, so maybe you can close the question...
hello professors, when I try to use roslaunch command to run the robot, I found some problems that I can't solve it. The error shows that as followed : Traceback (most recent call last): File "/home/user/ros_workspace/arbotix/arbotix_python/nodes/driver.py", line 39, in <module> from arbotix_python.follow_controller import FollowController File "/home/user/ros_workspace/arbotix/arbotix_python/src/arbotix_python/follow_controller.py", line 32, in <module> from control_msgs.msg import FollowJointTrajectoryAction ImportError: No module named control_msgs.msg [arbotix-1] process has died [pid 12272, exit code 1, cmd /home/user/ros_workspace/arbotix/arbotix_python/nodes/driver.py __name:=arbotix __log:=/home/user/.ros/log/dc7aa468-8815-11e3-98ad-ac72896c0c64/arbotix-1.log]. log file: /home/user/.ros/log/dc7aa468-8815-11e3-98ad-ac72896c0c64/arbotix-1*.log I try to find control_msgs.msg on the internet, but I can't find it, if you have some information about this, please help me. Thanks again for your time. And my launch file is as followed: <launch> <param name="/use_sim_time" value="false" /> <!-- Load the URDF/Xacro model of our robot --> <arg name="urdf_file" default="$(find xacro)/xacro.py '$(find smartcar_description)/urdf/smartcar.urdf.xacro'" /> <arg name="gui" default="false" /> <param name="robot_description" command="$(arg urdf_file)" /> <param name="use_gui" value="$(arg gui)"/> <node name="arbotix" pkg="arbotix_python" type="driver.py" output="screen"> <rosparam file="$(find smartcar_description)/config/smartcar_arbotix.yaml" command="load" /> <param name="sim" value="true"/> </node> <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" > </node> <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher"> <param name="publish_frequency" type="double" value="20.0" /> </node> <!-- We need a static transforms for the wheels --> <node pkg="tf" type="static_transform_publisher" name="odom_left_wheel_broadcaster" args="0 0 0 0 0 0 /base_link /left_front_link 100" /> <node pkg="tf" type="static_transform_publisher" name="odom_right_wheel_broadcaster" args="0 0 0 0 0 0 /base_link /right_front_link 100" /> <node name="rviz" pkg="rviz" type="rviz" args="-d $(find smartcar_description)/urdf.vcg" /> </launch> Originally posted by saina110 on ROS Answers with karma: 107 on 2014-01-28 Post score: 0 Original comments Comment by saina110 on 2014-01-28: now, I don't quite understand the error information like this : File "/home/user/ros_workspace/arbotix/arbotix_python/src/arbotix_python/follow_controller.py", line 32, in from control_msgs.msg import FollowJointTrajectoryAction ImportError: No module named control_msgs.msg how can I find the control_msgs.msg? I don't find it on the website....that's my question..thanks again
All, I want to add some debug statements to fake_localization for some tests. I can't get the build system to build it. This is very aggravating: Adjust $ROS_PACKAGE_PATH to hold my packages first roscd fake_localization moves me to my local sources rosmake complains about ROS_NOBUILD find /opt/ros -iname '*ROS_NOBUILD*' returns nothing find /home/me/workspace/navigation -iname '*ROS_NOBUILD*' returns nothing There is no ROS_NOBUILD in my directory. There is no documentation explaining where this ROS_NOBUILD is coming. I am having trouble finding documentation on how to remove supplied packages from the original installation due to the this strange organization of ../share and ../include and ../bin folders in ros root. I managed to build it, it was a catkin issue. However, to setup an entire workspace for catkin builds and move all my projects into a src folder is redundant to me. My solution: roscd fake_localization mkdir build cd build cmake .. make Finally you need to move the executable out of the build directory otherwise rosrun will not find it... cp devel/lib/fake_localization/fake_localization .. or cmake -DCMAKE_INSTALL_PREFIX=../bin .. make install But the second option adds all these bloated scripts in the bin directory. (But rosrun will find it). Originally posted by Constantin S on ROS Answers with karma: 296 on 2014-01-28 Post score: 0 Original comments Comment by joq on 2014-01-28: What version of ROS are you using? Comment by Constantin S on 2014-01-28: Hydro - I managed to build it - this was a catkin issue.
Problem/Scenario I am trying implement a way to automatically bootstrap/start a complex system that uses diverse ros and non-ros components. My web-search lead me to roslaunch, which seems to be most suitable for this task (is it?). However, I encountered several problems during the creation of a preliminary launchfile and general system setup. My goal is to compare the capabilities of ROS with those of a new framework created within the scope of my current research. My question: Is there a best practice or recommended approach to realise such a system startup when using mixed ros and non-ros components? Or does this scenario not really fit well with the ROS framework and should be implemented independently? Exemplary encountered issues: Some components require to access log files of other components during run time (e.g. live plotting of non-ros components). I found out that there is a run_id in the log folder but there seems to be no way to find out what the current roslaunch run_id is (e.g. via env variables). Organisation/Orchestration of components (some need to run after others have finished or only under certain circumstances) seems to be impossible with using just roslaunch. Further, using the if tag also seems impossible as there is no way to assess if and when a component is running. From what I gathered, heavy shell/script hacks need to be done. Please refer to: wiki.ros.org/roslaunch Proposed Features problem "Dependencies: "launch prog X once Y is running"" "Allow binaries that are not in ros packages to be roslaunched" wiki.ros.org/roslaunch/XML Evaluation Order problem: "Tags are evaluated serially and the last setting wins." Thus, re-use seems to be unfeasible, because scripts and hacks will lead into a "black hole" and never allow me to reuse any of the scripts without manually adjusting component specific sleeps or waits. Originally posted by qsalber on ROS Answers with karma: 21 on 2014-01-28 Post score: 2
I am trying to use ROS Hydro to launch a Kinect in Ubuntu 12.04 LTS. I installed the proper packages using: sudo apt-get-install ros-hydro-openni-camera ros-hydro-openni-launch However, when I run $roslaunch openni_launch openni.launch I get this error with ROS Hydro: /opt/ros/hydro/lib/nodelet/nodelet: symbol lookup error: /opt/ros/hydro/lib//libopenni_nodelet.so: undefined symbol: _ZN3ros7console5printEPNS0_10FilterBaseEPvNS0_6levels5LevelEPKciS7_S7_z It seems to me that the path is wrong because it contains two //'s in a row before libopenni_nodelet.so but I have no idea where I should fix the problem. Thanks for your time in advance. --Mike Originally posted by gt-mike on ROS Answers with karma: 21 on 2014-01-28 Post score: 2
Hello, I'm working with Groovy on Turtlebot (create base). How could I add the dependency turtlebot_node to my package? I have done the following: CMakeLists.txt of my package: cmake_minimum_required(VERSION 2.8.3) project(beginner_tutorials) ## Find catkin macros and libraries ## if COMPONENTS list like find_package (catkin REQUIRED COMPONENTS xyz) ## is used, also find other catkin packages find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs turtlebot_node) Package.xml of my package : <build_depend>turtlebot_node</build_depend> <run_depend>turtlebot_node</run_depend> However when I execute catkin_make in my catkin_ws,I have the following error: turtlebot@turtlebot:~$ cd ~/catkin_ws/ turtlebot@turtlebot:~/catkin_ws$ catkin_make Base path: /home/turtlebot/catkin_ws Source space: /home/turtlebot/catkin_ws/src Build space: /home/turtlebot/catkin_ws/build Devel space: /home/turtlebot/catkin_ws/devel Install space: /home/turtlebot/catkin_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/turtlebot/catkin_ws /build" #### -- Using CATKIN_DEVEL_PREFIX: /home/turtlebot/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/groovy -- This workspace overlays: /opt/ros/groovy -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using CATKIN_TEST_RESULTS_DIR: /home/turtlebot/catkin_ws/build/test_results -- catkin 0.5.65 -- BUILD_SHARED_LIBS is on -- ~~ traversing 1 packages in topological order: -- ~~ - beginner_tutorials -- +++ processing catkin package: 'beginner_tutorials' -- ==> add_subdirectory(beginner_tutorials) CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package turtlebot_node. Set turtlebot_node_DIR to the directory containing a CMake configuration file for turtlebot_node. The file will have one of the following names: turtlebot_nodeConfig.cmake turtlebot_node-config.cmake Call Stack (most recent call first): prueba/CMakeLists.txt:7 (find_package) -- Configuring incomplete, errors occurred! make: * [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed Can anyone help me please? I have no idea what is wrong with it. I would appreciate any feedback. Thanks in advance. Originally posted by albarranco on ROS Answers with karma: 11 on 2014-01-28 Post score: 0 Original comments Comment by bchr on 2014-01-28: What are you trying to do exactly? I think that turtlebot_node is no longer used with groovy. Comment by albarranco on 2014-01-28: okk,thanks. I only want to probe a file that makes that turtlebot turn on groovy but I don't know it (the file is for electric and subcribes to turtlebot_node) Comment by bchr on 2014-01-28: Try to check this: http://wiki.ros.org/Robots/TurtleBot (choose groovy). Comment by albarranco on 2014-01-28: ok,thank you very much for everything
I have a wet package called velodyne, which provides a roscpp node called conversion. It builds alright, I can see it in the devel space ([WS]/devel/lib/velodyne/conversion), it has the executable bit set, but rosrun cannot find because it looks for it in the source folder. I've had this problem a lot recently. Usually, after resourcing my setup several times, rebuilding several times, and other random fiddling, I finally can launch the node. I would like to know what's the issue and how to get rid of it... my catkin workspace is located in /data/driving_repos/catkin_ws in my bashrc I source /data/driving_repos/catkin_ws/devel/setup.bash $ rosrun velodyne conversion [rosrun] Couldn't find executable named conversion below /data/driving_repos/catkin_ws/src/rdr_v2/packages/perception/velodyne [rosrun] Found the following, but they're either not files, [rosrun] or not executable: [rosrun] /data/driving_repos/catkin_ws/src/rdr_v2/packages/perception/velodyne/src/conversion Indeed, /data/driving_repos/catkin_ws/src/rdr_v2/packages/perception/velodyne/src/conversion is a folder! Interestingly, after typing 'rosrun velodyne ' and using tab completion, it lists all the executables in my velodyne package alright... Also, uninstalling ros-hydro-velodyne solves my problem. I checked the source code of rosrun and it calls catkin_find --without-underlays --libexec --share velodyne which returns /opt/ros/hydro/share/velodyne ! It's strange however that it returns that path... shouldn't the packages in my workspace have priority? Originally posted by brice rebsamen on ROS Answers with karma: 1001 on 2014-01-28 Post score: 2 Original comments Comment by ahendrix on 2014-01-28: What is /data/driving_repos/catkin_ws/src/rdr_v2/packages/perception/velodyne/src/conversion ? Is a file, directory, etc? Is it a python script without the execute bit set? Comment by brice rebsamen on 2014-01-28: aha, good point. It's actually a directory. Why is rosrun even considering a directory as a possible executable? is that a bug? Comment by joq on 2014-01-28: Perhaps, but crawling the source tree is an inherently messy and error-prone task. Comment by Constantin S on 2014-01-29: Brice, do you always source the setup.bash in devel? What happens if you have old "dry" packages that you also need to run from a launch file - how do you keep them in your ROS_PACKAGE_PATH? Comment by Dirk Thomas on 2014-01-29: Simply extend your ROS_PACKAGE_PATH after sourcing the setup file. Comment by Constantin S on 2014-01-29: Dirk, Thank you, I will "simply" do that, everytime. Brice - next time it happens take a look at your CMAKE_PREFIX_PATH. That is what catkin_find uses to find packages. Comment by joq on 2014-01-29: Seems lilkely. I have seen that happen also, but never figured out why. I sometimes end up recreating the workspace to untangle the mess.
Update: Tried to deleting ros_lib and recompiling getting same results. Note: I am using a MacPro running ubuntu 13.04 the USB is 3.0. Trying to send to hello world over arduino serial get the following error: Running Hydro rosrun rosserial_python serial_node.py /dev/ttyACM0 [INFO] [WallTime: 1390939261.052431] ROS Serial Python Node [INFO] [WallTime: 1390939261.059605] Connecting to /dev/ttyACM0 at 57600 baud [ERROR] [WallTime: 1390939353.203464] Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino Originally posted by rnunziata on ROS Answers with karma: 713 on 2014-01-28 Post score: 1
You know: www.unity3d.com, runs Mono. Prefer Windows, but understand that Mac might be closer to supportable. Originally posted by daveayyyy on ROS Answers with karma: 51 on 2014-01-28 Post score: 5 Original comments Comment by bchr on 2014-01-28: What kind of integration are you talking about? Comment by daveayyyy on 2014-01-28: Using C# to talk to native, DLL, or websocket, for example. Want to be able to interact with the 3D model of my building to tell robot where to go, have robot tell me where it is and reflect that in the model. Comment by Wolf on 2014-01-28: I integrated untiy via DLL + socket conection to player/stage 3 years ago . Was quite a bit of work. Haven't heard any thing about ROS+Unity, would be awesome, though. Comment by Kadir Firat Uyanik on 2015-04-06: Is there anyone who has got his/her hands dirty on that (viz. ROS+Unity3D) ? Comment by pavan on 2016-06-17: http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=7392488 These guys have done quite a bit in making unity and ROS speak. But sadly, they say nothing about their code.
packages that use PCL need to add those 2 lines in the CMakeLists: add_definitions(${PCL_DEFINITIONS}) link_directories(${PCL_LIBRARY_DIRS}) Is there an option to pass those flags and apply them automatically to all packages that use PCL indirectly, by depending on a package that uses PCL? e.g. let's a package A that uses PCL and so it has the 2 lines above in its CMakeLists, and a package B that uses package A, but does not use PCL directly. It's CMakeLists thus does not include those 2 lines. I does not seem practical to request a package developer to check all the packages depended upon and check what flags they require... So I bet there is a solution... Originally posted by brice rebsamen on ROS Answers with karma: 1001 on 2014-01-28 Post score: 1
I'm working with groovy and a universal robots ur5 robot that mounted on shoulder mount in a custom work cell. I've been trying to configure it with the solidworks urdf exporter and I've been coming close but there are still some issues I am facing. I am able to get the robot exported and working properly in simulation with moveit / rviz and the collision model however when I connect it to the real robot the joints are miss-aligned with the model. The closest I've come is to setup the model so that the ur5 has all its joints at 0 degrees in the model then when I start the robot the model joints match the position of the real robot except I seem to have several joints that rotate the wrong direction. I think I must be missing something. Is there a way to calibrate the joints of the model to the physical robot? I've tried everything I could think of as far as aligning the origins in the model but to no avail. Hopefully someone here has similar experience and can give me some pointers. Thanks! Originally posted by Rob Farrell on ROS Answers with karma: 26 on 2014-01-28 Post score: 0 Original comments Comment by gvdhoorn on 2014-01-30: @Rob Farrell: have you considered using the ROS Industrial driver(s) and models for the UR5? See http://wiki.ros.org/universal_robot, be sure to check-out the hydro-devel branch as well. Comment by Rob Farrell on 2014-01-31: I did start out using the groovy ROS-Industrial UR5 model but I had interest in making some changes to the model to include other components I have on my arm and in my work space so I turned to using the SW exporter. I was unaware that ROS-Industrial was now supporting hydro. Thanks I'll change to that branch.
Hi, I have installed Hydro on Ubuntu 12.04 . I have also installed rosbash. I still do not have command roscd is not PATH env variable. Other ROS related environment variables are correctly set. Do anyother person facing similar problem? rgds Nitin Originally posted by prince on ROS Answers with karma: 660 on 2014-01-28 Post score: 1 Original comments Comment by gustavo.velascoh on 2014-01-28: Have you execute 'source /opt/ros/hydro/setup.bash' ?
Hi I am setting up gazebo on Ubuntu 12.04 with ROS Hydro. Installation is done using debs. I have following output on lauching willowgarage world. /opt/ros/hydro/share/gazebo_ros/launch$ roslaunch willowgarage_world.launch ... logging to /home/nitin/.ros/log/0bc030d2-8882-11e3-81c2-00216a476f4e/roslaunch-nitin-laptop-13134.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. started roslaunch server http://nitin-laptop:36958/ SUMMARY ======== PARAMETERS * /rosdistro * /rosversion * /use_sim_time NODES / gazebo (gazebo_ros/gzserver) gazebo_gui (gazebo_ros/gzclient) auto-starting new master process[master]: started with pid [13148] ROS_MASTER_URI=http://localhost:11311 setting /run_id to 0bc030d2-8882-11e3-81c2-00216a476f4e process[rosout-1]: started with pid [13161] started core service [/rosout] process[gazebo-2]: started with pid [13175] process[gazebo_gui-3]: started with pid [13180] Gazebo multi-robot simulator, version 1.9.3 Copyright (C) 2013 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org Gazebo multi-robot simulator, version 1.9.3 Copyright (C) 2013 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org Msg Waiting for master.gzserver: symbol lookup error: /opt/ros/hydro/lib/libgazebo_ros_api_plugin.so: undefined symbol: _ZN3ros7console5printEPNS0_10FilterBaseEPvNS0_6levels5LevelEPKciS7_S7_z [gazebo-2] process has died [pid 13175, exit code 127, cmd /opt/ros/hydro/lib/gazebo_ros/gzserver worlds/willowgarage.world __name:=gazebo __log:=/home/nitin/.ros/log/0bc030d2-8882-11e3-81c2-00216a476f4e/gazebo-2.log]. log file: /home/nitin/.ros/log/0bc030d2-8882-11e3-81c2-00216a476f4e/gazebo-2*.log ............ If I start gzserver independently, then gazebo client GUI do popup but with empty world. No models are shown. Any idea how this can be sorted out? rgds nitin Originally posted by prince on ROS Answers with karma: 660 on 2014-01-28 Post score: 0
Has anybody succeeded in mounting a Kinect (or any piece of equipment using USB 2.0) as the end-effector of the Kuka LWR, and gotten the USB signal out through the cables that the arm provides? I am running into problems (USB handshake failing) doing that, and was wondering if somebody has successfully done it and, if so, if they could please describe their setup. I am trying to avoid routing a cable through the outside of the arm. (I know, it's not strictly a ROS question, but was hoping that the ever-expanding and enterprising ROS community might have some thoughts... :) Originally posted by cmatei on ROS Answers with karma: 1 on 2014-01-28 Post score: 0
I want to modify the slam_gmapping node on my Turtlebot (Kobuki) (Ubuntu 12.04). I have a working catkin workspace and have built my own nodes that work with slam_gmapping, but now I want to modify it. I downloaded the slam_gmapping source to my workspace and tried to build it, but get this error... -- ==> add_subdirectory(slam_gmapping/gmapping) CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package openslam_gmapping. Set openslam_gmapping_DIR to the directory containing a CMake configuration file for openslam_gmapping. The file will have one of the following names: openslam_gmappingConfig.cmake openslam_gmapping-config.cmake How does one "set openslam_gmapping_DIR"? is that a line in some file? But even if it were, neither of those suggested files exist on this system. this is the failing line: find_package(catkin REQUIRED nav_msgs openslam_gmapping roscpp rostest tf) It seems openslam_gmapping package does not exist on this machine (at least not with that name) in any workspace. Maybe it was built special for the Turtlebot under a different name? I don't have any need to build the openslam_gmapping package, just to reference the built one. I know it exists somewhere because I can successfully build maps and "rosrun gmapping slam_gmapping". Any suggestions? Originally posted by gershon on ROS Answers with karma: 73 on 2014-01-28 Post score: 1 Original comments Comment by gershon on 2014-01-28: I thought this might be an issue of needing a proper "overlay". I followed the instructions on http://wiki.ros.org/catkin/Tutorials/workspace_overlaying (substituting slam_gmapping for the tutorials) but got the same error. Comment by bvbdort on 2014-01-29: @gershon hi, gmapping pacakge uses libraries built from openslam_gmapping. clone openslam_gmapping and overlay if you want to edit files of openslam_gmapping. Comment by gershon on 2014-01-29: Hi bvb. I'm quite new at this. By "clone openslam_gmappnig" I think I need to use subversion (svn) to get it on my machine, right? Or is there another location? Also I thought "overlay" was a ROS/Catkin concept... how does it work with other projects? Comment by bvbdort on 2014-01-30: i mean "git clone https://github.com/ros-perception/openslam_gmapping.git" or if you are not using git, just download source as zip , extract and use.
Hello all, I am currently doing the ROS tutorial (I am on the 'writing a simple publisher and subscriber in C++). When I enter the 'catkin_make' command into the terminal, I first got the add_message_files() directory not found error. To fix this I went into the CMakeLists.txt file and commented out the add_message_file(), add_service_file() and so on. This got rid of that error, however, I am now getting this error when running 'catkin_make': "Cmake Error at /opt/ros/groovy/share/catkin/cmake/catkin_package.cmake:92(message): catkin_package() 'catkin' must be listed as a buildtool dependency in the package.xml" However, catkin is specified as a buildtool dependency in my package.xml. How can I fix this? I am running ROS Groovy on top of Ubuntu 12.04 in a VirtualBox instance. Thank you! EDIT: Here is my package.xml file: <package> <name>beginner_tutorials</name> <version>0.0.0</version> <description>The beginner_tutorials package</description> <maintainer email="[email protected]">viki</maintainer> <license>TODO</license> <buildtool_depend>catkin</buildtool_depend> <build_depend>roscpp</build_depend> <build_depend>rospy</build_depend> <build_depend>std_msgs</build_depend> <run_depend>roscpp</run_depend> <run_depend>rospy</run_depend> <run_depend>std_msgs</run_depend> <export> </export> </package> Originally posted by Dapake on ROS Answers with karma: 1 on 2014-01-28 Post score: 0 Original comments Comment by Djajus on 2020-04-26: hello there. then how you fix that error? i got same problem that "Cmake Error 'catkin' must be listed as a buildtool dependency in package.xml" sorry for my question.
Hi, I use a laser Hokuyo UTM-30LX. I use hector_slam in ROS hydro. When I use my laser in a hallway with windows, hector_mapping create a false wall some meters behind to the windows. In this video, I think that they removes this problem. Video in youtube (I can´t publish links): Handheld Mapping System: Schloss Dagstuhl New Building Dataset Someone have a solution for this problem? Thanks you very much. Originally posted by alex.filgueira on ROS Answers with karma: 62 on 2014-01-29 Post score: 1
I suddenly started getting a lot of messages like these Saw a negative time change of -0.000165 seconds, clearing the tf buffer. and am not surprisingly having a lot of trouble with code that relies on tf now. I can't think of anything that changed, and am at a bit of a loss. There's a ros-users message about this from a while ago, but no real solution. EDIT: tf_monitor is also showing that all my static_transform_publishers have negative average delays. Also, all nodes are running on the same machine, so there are no issues with clocks not being synced. This is all with live data, no bags. Originally posted by Dan Lazewatsky on ROS Answers with karma: 9115 on 2014-01-29 Post score: 1 Original comments Comment by dornhege on 2014-01-29: Are you using bag files or live data? For live data: One single computer or multiple ones? Comment by Dan Lazewatsky on 2014-01-29: Updated the question. Comment by tfoote on 2014-01-29: Are you using a haswell machine? I've heard a report that this is a problem on haswell machines. Comment by Dan Lazewatsky on 2014-01-29: Nope, Ivy Bridge (i7-3820QM). Comment by bchr on 2014-01-30: I have a similar issue (i7-3740QM) on hydro as well.
I have no prior experience in writing a YAML file. I want to know something related to it's capability. Suppose in move_base.launch file, I have written something which launch mux.yaml (http://wiki.ros.org/yocs_cmd_vel_mux). Which look like below: START subscribers: - name: "Teleoperation" topic: "input/teleop" timeout: 1.0 priority: 7 - name: "Autonomouse Navigation" topic: "input/move_base" timeout: 2.0 priority: 4 END Scenario:1 Suppose,** I don't want explicit number in the priority field i.e 7/4** instead I need to load this value from a text file. So, I want priority to be a variable. Scenario 2 Let's hope that above scenario is possible. Now suddenly the text file changes; which in turn changes the yaml file as well. Will ROS is able to catch the dynamic behavior of the yaml file and reflect the same? Can you just tell me how to achieve above situations and any good reference for writing YAML files? Thanks in advances for your valuable suggestions... Originally posted by RB on ROS Answers with karma: 229 on 2014-01-29 Post score: 0
Hi all, I am trying to instal ROS hydro on a Debian system following the guide on the wiki. When I executed: ./src/catkin/bin/catkin_make_isolated --install --install-space /opt/ros/hydro I got this error: ==> Processing catkin package: 'catkin' Makefile exists, skipping explicit cmake invocation... ==> make cmake_check_build_system in '/root/ros_catkin_ws/build_isolated/catkin' ==> make -j4 -l4 in '/root/ros_catkin_ws/build_isolated/catkin' Unhandled exception of type 'UnicodeEncodeError': Traceback (most recent call last): File "./src/catkin/bin/../python/catkin/builder.py", line 832, in build_workspace_isolated number=index + 1, of=len(ordered_packages) File "./src/catkin/bin/../python/catkin/builder.py", line 585, in build_package destdir=destdir File "./src/catkin/bin/../python/catkin/builder.py", line 378, in build_catkin_package if has_make_target(build_dir, 'install'): File "./src/catkin/bin/../python/catkin/builder.py", line 389, in has_make_target output = run_command(['make', '-pn'], path, quiet=True) File "./src/catkin/bin/../python/catkin/builder.py", line 208, in run_command out.write(line) UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position 3: ordinal not in range(128) <== Failed to process package 'catkin': 'ascii' codec can't encode character u'\xc9' in position 3: ordinal not in range(128) Command failed, exiting. Does anybody know what to do here? Originally posted by josegaert on ROS Answers with karma: 56 on 2014-01-29 Post score: 1
I hava a subscriber which accepts a string from the pocketsphinx node. I added external jars to my subscriber and I am processing that string. I now need to send the processed string to another node from this node. So I want to subscribe to a string, process it and then publish it. How do I do this in rosjava? I tried to add the import statements for the Cancellable loop and Publisher from the publisher code and also tried to squeeze in the connectedNode.executeCancellableLoop(new CancellableLoop() { }) part of the publisher code. I dont get any build errors but I also dont see the message being published. This is my modified code for the subscriber with the external jars. Where and how do i add the publisher to this node? package org.ros.rosjava_tutorial_pubsub; import org.apache.commons.logging.Log; import org.ros.message.MessageListener; import org.ros.namespace.GraphName; import org.ros.node.AbstractNodeMain; import org.ros.node.ConnectedNode; import org.ros.node.NodeMain; import org.ros.node.topic.Subscriber; import edu.uic.cs.nlp.ros.da.DaClassifier; import java.io.IOException; public class Listener extends AbstractNodeMain { @Override public GraphName getDefaultNodeName() { return GraphName.of("rosjava_tutorial_pubsub/listener"); } @Override public void onStart(ConnectedNode connectedNode) { final Log log = connectedNode.getLog(); try { final edu.uic.cs.nlp.ros.da.DaClassifier daClassifer =DaClassifier.getInstance(); Subscriber<std_msgs.String> subscriber = connectedNode.newSubscriber("recognizer/output", std_msgs.String._TYPE); subscriber.addMessageListener(new MessageListener<std_msgs.String>() { @Override public void onNewMessage(std_msgs.String message) { java.lang.String da = daClassifer.classify(message.getData()); log.info("Classifier's input : \"" + message.getData() + "\""); log.info("Classifier's output: \"" + da + "\""); } }); } catch (IOException e) { } } } Originally posted by uzair on ROS Answers with karma: 87 on 2014-01-29 Post score: 0 Original comments Comment by uzair on 2014-01-29: i dont know why these </std_msgs.string></std_msgs.string> tags appear. They are not there in the code.
When I tried to find the rospack, get the following error. [rospack] Error: stack/package set_Goals not found I have pasted the ~/.bashrc file below. source /opt/ros/hydro/setup.bash source /opt/ros/hydro/setup.bash source ~/ros_ws/devel/setup.bash source ~/ros_ws/devel/setup.bash source /opt/ros/hydro/setup.bash source ~/catkin_ws/devel/setup.bash source /opt/ros/hydro/setup.bash source /opt/ros/hydro/setup.bash source /opt/ros/hydro/setup.bash source /opt/ros/hydro/setup.bash source ~/catkin_ws/devel/setup.bash source /opt/ros/hydro/setup.bash source ~/catkin_ws/devel/setup.bash export ROS_PACKAGE_PATH=/home/madhu/rosPractice:$ROS_PACKAGE_PATH I seriously dont know where I have been going wrong. Originally posted by maddy_nish on ROS Answers with karma: 1 on 2014-01-29 Post score: 0
Hello professors, I am so confused about the tutorial of catkin which told us that we should type the command: source /opt/ros/groovy/setup.bash every time.... I have no idea. because before I type this command, my workspace is under home directory which is /home/username/workspace, but when I type this command and then I type the 'roscd', the path turned to /opt/ros/groovy/.. so my question is where should I create my package? Does that mean every time when I want to create package I should source first? I' so confused about this.. cause when I try to create package and run it, there always be showing some error which told me that command not found....I just follow the tutorials.... Thanks so much for your instruction. Originally posted by saina110 on ROS Answers with karma: 107 on 2014-01-29 Post score: 0
hello professors, when I successfully run the package and there is no error showing on the terminal, but the rviz shows nothing and there is no model at all...So I'm so confused about this problem and I can't find where the problem is... Thanks for your information. Originally posted by saina110 on ROS Answers with karma: 107 on 2014-01-29 Post score: 0
Hi Guys, I am currently on a mission to recreate 3d navigation functionality described in the paper "Real-Time Navigation in 3D Environments Based on Depth Camera Data" by Armin Hornung et. el. I have gone through the process of installing and validating the ROS install (Hydro), and am now trying to just get the following command to work: roslaunch nao_bringup nao_sim.launch When I launch the command I get the following error: > NODES / > base_footprint (nao_description/base_footprint) > nao_behaviors (nao_driver/nao_behaviors.py) > nao_controller (nao_driver/nao_controller.py) > nao_leds (nao_driver/nao_leds.py) > nao_sensors (nao_driver/nao_sensors.py) > nao_speech (nao_driver/nao_speech.py) > nao_tactile (nao_driver/nao_tactile.py) > nao_walker (nao_driver/nao_walker.py) > pose_manager (nao_pose/pose_manager.py) > robot_state_publisher (robot_state_publisher/state_publisher) > > ROS_MASTER_URI=XXX > > core service [/rosout] found > process[robot_state_publisher-1]: > started with pid [6401] > process[base_footprint-2]: started > with pid [6402] > process[nao_sensors-3]: started with > pid [6443] process[nao_walker-4]: > started with pid [6444] No handlers > could be found for logger "rosout" > process[nao_controller-5]: started > with pid [6449] No handlers could be > found for logger "rosout" > process[nao_behaviors-6]: started with > pid [6450] > ================================================================================REQUIRED process [nao_sensors-3] has died! > process has died [pid 6443, exit code > 1, cmd > /home/vagrant/workspce/src/nao_robot/nao_driver/nodes/nao_sensors.py --pip=127.0.0.1 --pport=9559 __name:=nao_sensors __log:=/home/vagrant/.ros/log/cab0b7cc-88c4-11e3-9375-080027880ca6/nao_sensors-3.log]. log file: > /home/vagrant/.ros/log/cab0b7cc-88c4-11e3-9375-080027880ca6/nao_sensors-3*.log > Initiating shutdown! > ================================================================================ cannot add process [nao_leds-7] after > process monitor has been shut down > [nao_behaviors-6] killing on exit > [nao_controller-5] killing on exit > [nao_walker-4] killing on exit > Traceback (most recent call last): > File > "/home/vagrant/workspce/src/nao_robot/nao_driver/nodes/nao_controller.py", > line 39, in <module> > import nao_msgs.msg [nao_sensors-3] killing on exit File > "/home/vagrant/workspce/devel/lib/python2.7/dist-packages/nao_msgs/msg/__init__.py", > line 39, in <module> Traceback (most > recent call last): File > "/home/vagrant/workspce/src/nao_robot/nao_driver/nodes/nao_behaviors.py", > line 36, in <module> > import rospy File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/__init__.py", > line 49, in <module> > from ._JointAngleTrajectory import * File "/home/vagrant/workspce/devel/lib/python2.7/dist-packages/nao_msgs/msg/_JointAngleTrajectory.py", > line 1, in <module> > """autogenerated by genpy from nao_msgs/JointAngleTrajectory.msg. Do > not edit.""" KeyboardInterrupt > from .client import spin, myargv, init_node, \ File > "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/client.py", > line 48, in <module> > [base_footprint-2] killing on exit > import rosgraph File "/opt/ros/hydro/lib/python2.7/dist-packages/rosgraph/__init__.py", > line 36, in <module> > from . masterapi import Master, MasterFailure, MasterError, > MasterException File > "/opt/ros/hydro/lib/python2.7/dist-packages/rosgraph/masterapi.py", > line 45, in <module> > from . names import make_caller_id File > "/opt/ros/hydro/lib/python2.7/dist-packages/rosgraph/names.py", > line 39, in <module> > import os KeyboardInterrupt [robot_state_publisher-1] killing on > exit I have validated that the required packages are installed using rosdeps and roscd. I am on ubuntu precise64, ROS hydro and pynaoqi-python-2.7-naoqi-1.14-linux64. Any help would be appreciated! Originally posted by Quinton Anderson on ROS Answers with karma: 11 on 2014-01-29 Post score: 1 Original comments Comment by AHornung on 2014-02-17: What happens if you just start a single node, e.g. "rosrun nao_driver nao_sensors.py"? (start a roscore in a separate terminal before, as well as NaoQI) Comment by Quinton Anderson on 2014-02-18: I have only tried for 30 minutes, but at this stage that command simply exits without any real output, besides: No handlers could be found for logger "rosout" I have checked the logs, they are also empty. I will continue some more tomorrow. Comment by dnth on 2014-02-20: have you sourced your workspace? Like the command below source /devel/setup.bash Comment by Quinton Anderson on 2014-02-20: yes, I have sourced ./devel/setup.bash Comment by PabloM on 2014-03-13: Hi! I have the same poblems, No handlers could be found for logger rosout. My configuration system is similar (ubuntu 12.04 64, ROS hydro and pynaoqi 1.14.5) for the Installation of ROS for NAO I followed the Armin's tutorials "ROS on a remote PC" but I installed just the precompiled binaries. should I uninstall them and install the github ones? including the extras_nao? Quinton Anderson, did you solve the problem? thank you! Comment by Quinton Anderson on 2014-03-13: Hi, I didn't get it working, but I haven't tried very hard yet. I have been distracted at work. I will get back to focussing on it shortly. Comment by PabloM on 2014-03-21: Quinton, our problem is the linking with the pynaoqi (export PYTHONPATH="$PYTHONPATH:$HOME/path/to/pynaoqi/") in my case i have an error in the path to pynaoqi. now I have other problem when i launch the NAOnodes (ERROR: cannot launch node of type [nao_driver/nao_sensors_cpp]: can't locate node [nao_sensors_cpp] in package [nao_driver]) . Comment by AHornung on 2014-03-21: See http://answers.ros.org/question/120806/cannot-launch-nao_driver/?answer=120821#post-id-120821 Comment by PabloM on 2014-03-21: Armin, thank you for your advice, right now I'm able to launch the python nodes with the same instruction that you suggested in the above question ( roslaunch nao_driver nao_driver.launch force_python:=true nao_ip:=192.168.1.206) without any error and i tested a simple forward motion of the Nao. Comment by ROSwithNao on 2014-06-05: I am having the same problem. I get the "No handlers could be found for logger "rosout" " error message when I try "roslaunch nao_bringup nao_sim.launch" as well as when I tried "rosrun nao_driver nao_sensors.py". Was this problem ever resolved?
I've been examining a strange issue with multiple robots in stage and move_base. Move_base and costmap2D use tf::resolve with tf_prefix to resolve global frames. However fake_localization does not - this leads to the message: Waiting on transform from robot_0/base_link to robot_0/map to become available before running costmap, tf error: A few people have had trouble with this. I have examined fake_localization and I believe the following lines (as done in costmap_2d_ros.cpp) need to be added: // get our tf prefix ros::NodeHandle prefix_nh; std::string tf_prefix = tf::getPrefixParam(prefix_nh); global_frame_id_ = tf::resolve(tf_prefix, global_frame_id_); base_frame_id_ = tf::resolve(tf_prefix, base_frame_id_); odom_frame_id_ = tf::resolve(tf_prefix, odom_frame_id_); Furthermore I had another problem in move_base. tf_prefix is resolved too many times in the Costmap2D and NavFN. Here is the exact situation in navfn_ros.cpp::makePlan() ros::NodeHandle n; costmap_2d::Costmap2D* costmap = costmap_ros_->getCostmap(); std::string global_frame = costmap_ros_->getGlobalFrameID(); //until tf can handle transforming things that are way in the past... we'll require the goal to be in our global frame if(tf::resolve(tf_prefix_, goal.header.frame_id) != tf::resolve(tf_prefix_, global_frame)){ ROS_ERROR("The goal pose passed to this planner must be in the %s frame. It is instead in the %s frame.", tf::resolve(tf_prefix_, global_frame).c_str(), tf::resolve(tf_prefix_, goal.header.frame_id).c_str()); return false; } if(tf::resolve(tf_prefix_, start.header.frame_id) != tf::resolve(tf_prefix_, global_frame)){ ROS_ERROR("The start pose passed to this planner must be in the %s frame. It is instead in the %s frame.", tf::resolve(tf_prefix_, global_frame).c_str(), tf::resolve(tf_prefix_, start.header.frame_id).c_str()); return false; } What happens is that global_frame has already been resolved (removed preceding slash) inside the Costmap2D class. Now we resolve again, and since the slash is gone it appends the prefix. Thus we get /robot_0/robot_0/map I do not have a solution for this as I expect that this might be done on purpose? Are there any thoughts on the problems presented here and a possible solution to the over resolving? Thanks! Here's an example launch file for one robot of a multi robot stage sim. Note that under fake_localization I can adjust the global_frame_id via parameter. However, this is a hacky fix. <launch> <!-- BEGIN ROBOT 0 --> <group ns="robot_0"> <param name="tf_prefix" value="robot_0"/> <arg name="map_file" default="$(find some_path)/launch/move_base_config/cost_map.yaml"/> <node pkg="map_server" type="map_server" name="map_server" args="$(arg map_file)"> <param name="frame_id" value="map"/> </node> <node pkg="fake_localization" type="fake_localization" name="fake_localization" respawn="false" output="screen"> Uncomment here for success - without making above changes <!--param name="global_frame_id" value="/robot_0/map"/--> <param name="global_frame_id" value="map" /> Need this to be in a relative frame </node> <node pkg="move_base" type="move_base" respawn="false" name="move_base_node" output="screen"> <param name="controller_frequency" value="10.0"/> <param name="recovery_behavior_enabled" value="true"/> <param name="oscillation_timeout" value="5.0"/> <param name="oscillation_distance" value="1.0"/> <rosparam file="$(find some_path)/launch/move_base_config/costmap_common_params.yaml" command="load" ns="global_costmap" /> <rosparam file="$(find some_path)/launch/move_base_config/costmap_common_params.yaml" command="load" ns="local_costmap" /> <rosparam file="$(find some_path)/launch/move_base_config/global_costmap_params.yaml" command="load" /> <rosparam file="$(find some_path)/launch/move_base_config/local_costmap_params.yaml" command="load" /> <rosparam file="$(find some_path)/launch/move_base_config/base_global_planner_params.yaml" command="load" ns="NavfnROS" /> </node> </group> </launch> Originally posted by Constantin S on ROS Answers with karma: 296 on 2014-01-29 Post score: 1
Hi all, When an interactive marker's pose is changed using a control (for instance the 6-DoF control provided in basic_controls), why does the field int_marker.pose is not filled why the new value automatically? I spent a long time debugging my node when I realized that I had to update it myself with such a callback function for instance: void processFeedback(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) { switch (feedback->event_type) { case visualization_msgs::InteractiveMarkerFeedback::POSE_UPDATE: int_marker.pose = feedback->pose; // MANDATORY?? server->insert(int_marker, &processFeedback); server->applyChanges(); break; } Even if the pose is not updated, the display is correct and my object moves when I control it with the interactive marker, so where are stored its coordinates? Many thanks Originally posted by courrier on ROS Answers with karma: 454 on 2014-01-29 Post score: 1
I created a node using catkin work space after creating package the process of build is successful with following code .... but the problem is when I am running it using rosrun cvtest image_converter.cpp the run is successful but i am not getting the output. The image_converter.cpp which suppose to subscribe sensor_msgs topic and convert the image to opencv::mat process the image and then display it back in ROS. To publish the message on sensor_msgs topic as the frame captured from kinect I am using roslaunch openni_launch openni.launch. However I can see the image using rosrun image_view image_view image:=/camera/rgb/image_color which also subscribes the same topic sensor_msgs. Tried it with eclipse also but it is not working at all and unable to find the problem even in eclipse. its running there but no output. I am including the roswtf result also. (pls see after the code) #include <ros/ros.h> #include <image_transport/image_transport.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/image_encodings.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> namespace enc = sensor_msgs::image_encodings; static const char WINDOW[] = "Image window"; class ImageConverter { ros::NodeHandle nh_; image_transport::ImageTransport it_; image_transport::Subscriber image_sub_; image_transport::Publisher image_pub_; public: ImageConverter() : it_(nh_) { image_pub_ = it_.advertise("out", 1); image_sub_ = it_.subscribe("in", 1, &ImageConverter::imageCb, this); cv::namedWindow(WINDOW); } ~ImageConverter() { cv::destroyWindow(WINDOW); } void imageCb(const sensor_msgs::ImageConstPtr& msg) { cv_bridge::CvImagePtr cv_ptr; try { cv_ptr = cv_bridge::toCvCopy(msg, enc::BGR8); } catch (cv_bridge::Exception& e) { ROS_ERROR("cv_bridge exception: %s", e.what()); return; } if (cv_ptr->image.rows > 60 && cv_ptr->image.cols > 60) cv::circle(cv_ptr->image, cv::Point(50, 50), 10, CV_RGB(255,0,0)); cv::imshow(WINDOW, cv_ptr->image); cv::waitKey(3); image_pub_.publish(cv_ptr->toImageMsg()); } }; int main(int argc, char** argv) { ros::init(argc, argv, "image_converter"); ImageConverter ic; ros::spin(); return 0; } Here is roswtf result admin-pc@admin-pc:~/mywork$ roswtf No package or stack in context ================================================================================ Static checks summary: Found 2 warning(s). Warnings are things that may be just fine, but are sometimes at fault WARNING You are missing core ROS Python modules: bloom -- rosrelease -- WARNING You are missing Debian packages for core ROS Python modules: bloom (python-bloom) -- rosrelease (python-rosrelease) -- ================================================================================ Beginning tests of your ROS graph. These may take awhile... analyzing graph... ... done analyzing graph running graph rules... ... done running graph rules Online checks summary: Found 1 warning(s). Warnings are things that may be just fine, but are sometimes at fault WARNING The following node subscriptions are unconnected: * /image_converter: * /in Originally posted by lifelonglearner on ROS Answers with karma: 205 on 2014-01-29 Post score: 0
I'm currently migrating from fuerte to hydro (on an Ubuntu 12.04). In a first step, I kept all my old packages dry and managed to build them in hydro. Running the system on the other hand seems to be more complicated. I'm using my own, slightly altered versions of some popular packages such as move_base. To tell whether to use the original move_base or my version I used to change the include order in ROS_PACKAGE_PATH, which worked fine. The hydro version of rosrun, however, reports an ambiguity: [rosrun] You have chosen a non-unique executable, please pick one of the following: 1) /opt/ros/hydro/lib/move_base/move_base 2) /path/to/my/version/of/move_base/bin/move_base #? If I try to call move_base from roslaunch, it will choose option 1 per default. I've got the same problem with move_base plugins. Once I tell rosrun to load my version of move_base, it will still load move_base plugins from hydro. Is there a way to tell hydro to load packages from ROS_PACKAGE_PATH per default? echo $ROS_PACKAGE_PATH returns: /home/incubed/robotics/incubed-ros-pkg:/opt/ros/hydro/share:/opt/ros/hydro/stacks Originally posted by madmax on ROS Answers with karma: 496 on 2014-01-29 Post score: 2 Original comments Comment by ahendrix on 2014-01-29: What is your ROS_PACKAGE_PATH set to? Comment by madmax on 2014-01-29: /home/incubed/robotics/incubed-ros-pkg:/opt/ros/hydro/share:/opt/ros/hydro/stacks
Is it possible to check on a device if it is still in sync with the the host pc which is connected via rosserial_python serial_node.py? The problem is that the device keeps on doing what it was told to last before loosing sync. Is it possible to check on device if it is in sync or is setting up my own watch dog the strait forward solution? Originally posted by Wolf on ROS Answers with karma: 7555 on 2014-01-29 Post score: 0
Hi, I use a laser Hokuyo UTM-30LX with hector-slam in ROS hydro. I create a .bag used rosbag record -O name -a When run hokuyo_node and hector_slam. The problem is that when I play this .bag in hector_slam, the map created by hector_mapping in rviz blinks, the LaserScan and the Path are ok. And when the reproduction goes to the end, the map disappears. Someone knows why is this? Thank you very much. EDIT: If I play my file .bag when I used rosrun rviz rviz. The map is OK but is not ok when I executed hector_slam. I want execute hector_slam and play my file .bag because I search rebuild a map and follow scan the room. This is the launch file that I use for launch hector_slam: <launch> <param name="/use_sim_time" value="false"/>ros <node pkg="rviz" type="rviz" name="rviz" args="-d $(find hector_slam_launch)/rviz_cfg/mapping_demo.rviz"/> <include file="$(find slam_launch)/launch/hector_mapping.launch"/> <include file="$(find slam_launch)/launch/geotiff_mapper.launch"> <arg name="trajectory_source_frame_name" value="scanmatcher_frame"/> </include> </launch> This is the hector_mapping: <launch> <node pkg="hector_mapping" type="hector_mapping" name="hector_mapping" output="screen"> <param name="pub_map_odom_transform" value="true"/> <param name="map_frame" value="map" /> <param name="base_frame" value="base_link" /> <param name="odom_frame" value="base_link" /> <param name="map_resolution" value="0.025"/> <param name="map_start_x" value="0.5"/> <param name="map_start_y" value="0.5" /> <param name="laser_z_min_value" value="-2.5" /> <param name="laser_z_max_value" value="7.5" /> <param name="laser_max_dist" value="10" /> <param name="map_size" value="5000"/> <param name="map_pub_period" value="1.0"/> <param name="output_timing" value="false"/> <param name="update_factor_free" value="0.4"/> <param name="update_factor_occupied" value="0.7" /> <param name="map_update_distance_thresh" value="0.2"/> <param name="map_update_angle_thresh" value="0.06" /> </node> <node pkg="tf" type="static_transform_publisher" name="base_to_laser_broadcaster" args="0 0 0 0 0 0 /base_link /laser 100" /> </launch> I can´t put links with my .bag but this is the output of rosbag info probatopics-7.bag : path: probatopics-7.bag version: 2.0 duration: 13.2s start: Jan 30 2014 14:56:21.36 (1391090181.36) end: Jan 30 2014 14:56:34.54 (1391090194.54) size: 317.4 MB messages: 3236 compression: none [14/14 chunks] types: diagnostic_msgs/DiagnosticArray [3cfbeff055e708a24c3d946a5c8139cd] dynamic_reconfigure/Config [958f16a05573709014982821e6822580] dynamic_reconfigure/ConfigDescription [757ce9d44ba8ddd801bb30bc456f946f] geometry_msgs/PoseStamped [d3812c3cbc69362b77dc0b19b345f8f5] geometry_msgs/PoseWithCovarianceStamped [953b798c0f514ff060a53a3498ce6246] nav_msgs/MapMetaData [10cfc8a2818024d3248802c00c95f11b] nav_msgs/OccupancyGrid [3381f2d731d4076ec5c71b0759edbe4e] nav_msgs/Path [6227e2b7e9cce15051f669a5e197bbf7] rosgraph_msgs/Log [acffd30cd6b6de30f120938c17c593fb] sensor_msgs/LaserScan [90c7ef2dc6895d81024acba2ac42f369] sensor_msgs/PointCloud [d8e9c3f5afbdd8a130fd1d2763945fca] tf2_msgs/TFMessage [94810edda583a504dfda3829e70d7eec] topics: /diagnostics 13 msgs : diagnostic_msgs/DiagnosticArray /hokuyo_node/parameter_descriptions 1 msg : dynamic_reconfigure/ConfigDescription /hokuyo_node/parameter_updates 1 msg : dynamic_reconfigure/Config /map 13 msgs : nav_msgs/OccupancyGrid /map_metadata 1 msg : nav_msgs/MapMetaData /poseupdate 483 msgs : geometry_msgs/PoseWithCovarianceStamped /rosout 37 msgs : rosgraph_msgs/Log (6 connections) /rosout_agg 25 msgs : rosgraph_msgs/Log /scan 522 msgs : sensor_msgs/LaserScan /slam_cloud 486 msgs : sensor_msgs/PointCloud /slam_out_pose 481 msgs : geometry_msgs/PoseStamped /tf 1169 msgs : tf2_msgs/TFMessage (2 connections) /trajectory 4 msgs : nav_msgs/Path EDIT2: This photo is when I make my field .bag: And this is when I execute my .bag and I run hector_slam: Originally posted by alex.filgueira on ROS Answers with karma: 62 on 2014-01-30 Post score: 1 Original comments Comment by dornhege on 2014-01-30: Did you run SLAM while recording the bag file and run it again while playing the bag file? Comment by alex.filgueira on 2014-01-30: No, I only run SLAM while recording the bag file. When I playing the bag file I turn off the hokuyo_node.
Hello, we are using the Velodyne HDL-64E S2 with ROS Hydro for indoor mapping. During this we saw, that the ROS.driver for the Velodyne creates Pointclouds where the Laser-beams are in an ellipse instead of a cicle. In the following archive are 3 Scans taken at the same possition: archive "shelf.pcap": recorded with the original DSR-driver (Version 2.0.0) "2014-01-30-12-49-45_0.bag": recorded with the ROS-driver "2014-01-30-15-17-49_0.bag": recorded with the PCL-HDL-grabber (the pointcloud is turned by 90° for some reason) There you can see the same room (and out of the window). Where the scans taken with the original- and pcl-driver are showing straight walls, the ros-driver does not. The following archive shows the same drivers at a different possition, where the laser-beams hitting mostly the ground: archive "floor.pcap": recorded with the original DSR-driver (Version 2.0.0) "2014-01-30-16-49-10_0.bag": recorded with the ROS-driver "2014-01-30-16-50-23_0.bag": recorded with the PCL-HDL-grabber There you can see that the original- and pcl-driver are displaying one beam as a circle, where the ros-driver is creating an ellipse. This is the launch-file that was used for the ros-driver: file Does anybody has the same experience and/or a solution, or do we have an error in our launch-file? Originally posted by Tobias Neumann on ROS Answers with karma: 179 on 2014-01-30 Post score: 0 Original comments Comment by joq on 2014-01-30: I am away this week, and cannot see your examples. An ellipse is normal if the device is not exactly perpendicular to the floor. Comment by Tobias Neumann on 2014-01-30: Thank you for your fast reply. That is correct, but just the ros-driver is showing this. With the ros-driver also the walls are not straight and the velodyne might not be 100% perpendicular to the floor, but not as far as you would see this results. Comment by Tobias Neumann on 2014-01-30: I took two screenshots for you. I didn't touch the robot/velodyne during the scans. They were taken right after each other at the exact same position. If you save both pictures and switch between them, you can see the difference. ros-driver: http://robotics.fh-aachen.de/pictures/Screenshot%202014-01-30%2023.29.24.png pcl-hdl-grabber: http://robotics.fh-aachen.de/pictures/Screenshot%202014-01-30%2023.31.05.png Comment by joq on 2014-02-03: What calibration file are you using? Comment by Tobias Neumann on 2014-02-04: For the DSR- and PCL-driver we are using this config file: http://robotics.fh-aachen.de/pictures/db.xml For the ROS-driver we are using this: http://robotics.fh-aachen.de/pictures/HDL62S2db.yaml But the config file saves a config for a laser-beam. If there would be an error, each laser-beam still would create one cycle on a ground. Or am I wrong here? Comment by joq on 2014-02-04: I agree that configuration is unlikely to cause this error. But, I would prefer to eliminate as many differences as possible. Would you mind running gencalibration.py on your db.xml to take that out of the comparison? See http://wiki.ros.org/velodyne_pointcloud?distro=hydro#gen_calibration.py docs. Comment by Tobias Neumann on 2014-02-12: Sorry for my late reply. I run the calibration on the db.xml. The result you can find here: http://robotics.fh-aachen.de/pictures/db.yaml (it seems to be similar to the HDL62S2db.yaml-file I uploaded in the last post).
Hi, I have a node written by someone else that I do not want to modify. The node publish a pcl::PointCloud<PointXYZRGB> I just want to take the cloud, process it and publish a new cloud of the same type. I tried the simplest code possible, but it does not compile. Here there is the code (note that I commented out many things to make the example as simple as possible): #include <ros/ros.h> // PCL specific includes #include <pcl_conversions/pcl_conversions.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <std_msgs/String.h> #include <sstream> #include <iostream> using namespace std; ros::Publisher pub; //bool firstone = true; //int banana = 0; //pcl::PointCloud<pcl::PointXYZRGB> firstCloud; //pcl::PointCloud<pcl::PointXYZRGB> secondCloud; void cloud_cb(const pcl::PointCloud<pcl::PointXYZRGB>::ConstPtr& input) { // if (firstone) { // firstCloud = (*input); // firstone = false; // } else { // secondCloud = (*input); // firstone = true; // } // // std_msgs::String msg; // std::stringstream ss; // // ss << banana << " " << "Width: " << (*input).width << "Height: " << (*input).height << endl; // banana++; // // msg.data = ss.str(); // // pub.publish(msg); } int main(int argc, char** argv) { ros::Rate rate(10); // Initialize ROS ros::init(argc, argv, "hyq_registration"); ros::NodeHandle nh; // Create a ROS subscriber for the input point cloud ros::Subscriber sub = nh.subscribe("triclops/point_cloud_topic", 1, cloud_cb); // Create a ROS publisher for the output point cloud pub = nh.advertise <std_msgs::String> ("output", 1); ros::spin(); } catkin_make shoots this: In file included from /opt/ros/hydro/include/ros/serialization.h:37:0, from /opt/ros/hydro/include/ros/publisher.h:34, from /opt/ros/hydro/include/ros/node_handle.h:32, from /opt/ros/hydro/include/ros/ros.h:45, from /home/mcamurri/hyq-ws/src/hyq_registration/src/hyq_registration.cpp:1: /opt/ros/hydro/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::MD5Sum<M>::value() [with M = pcl::PointCloud<pcl::PointXYZRGB>]’: /opt/ros/hydro/include/ros/message_traits.h:228:103: instantiated from ‘const char* ros::message_traits::md5sum() [with M = pcl::PointCloud<pcl::PointXYZRGB>]’ /opt/ros/hydro/include/ros/subscribe_options.h:110:5: instantiated from ‘void ros::SubscribeOptions::init(const string&, uint32_t, const boost::function<void(const boost::shared_ptr<const M>&)>&, const boost::function<boost::shared_ptr<T>()>&) [with M = pcl::PointCloud<pcl::PointXYZRGB>, std::string = std::basic_string<char>, uint32_t = unsigned int]’ /opt/ros/hydro/include/ros/node_handle.h:666:5: instantiated from ‘ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (*)(const boost::shared_ptr<const M>&), const ros::TransportHints&) [with M = pcl::PointCloud<pcl::PointXYZRGB>, std::string = std::basic_string<char>, uint32_t = unsigned int]’ /home/mcamurri/hyq-ws/src/hyq_registration/src/hyq_registration.cpp:49:81: instantiated from here /opt/ros/hydro/include/ros/message_traits.h:121:37: error: ‘__s_getMD5Sum’ is not a member of ‘pcl::PointCloud<pcl::PointXYZRGB>’ /opt/ros/hydro/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::DataType<M>::value() [with M = pcl::PointCloud<pcl::PointXYZRGB>]’: /opt/ros/hydro/include/ros/message_traits.h:237:105: instantiated from ‘const char* ros::message_traits::datatype() [with M = pcl::PointCloud<pcl::PointXYZRGB>]’ /opt/ros/hydro/include/ros/subscribe_options.h:111:5: instantiated from ‘void ros::SubscribeOptions::init(const string&, uint32_t, const boost::function<void(const boost::shared_ptr<const M>&)>&, const boost::function<boost::shared_ptr<T>()>&) [with M = pcl::PointCloud<pcl::PointXYZRGB>, std::string = std::basic_string<char>, uint32_t = unsigned int]’ /opt/ros/hydro/include/ros/node_handle.h:666:5: instantiated from ‘ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (*)(const boost::shared_ptr<const M>&), const ros::TransportHints&) [with M = pcl::PointCloud<pcl::PointXYZRGB>, std::string = std::basic_string<char>, uint32_t = unsigned int]’ /home/mcamurri/hyq-ws/src/hyq_registration/src/hyq_registration.cpp:49:81: instantiated from here /opt/ros/hydro/include/ros/message_traits.h:138:39: error: ‘__s_getDataType’ is not a member of ‘pcl::PointCloud<pcl::PointXYZRGB>’ In file included from /opt/ros/hydro/include/ros/publisher.h:34:0, from /opt/ros/hydro/include/ros/node_handle.h:32, from /opt/ros/hydro/include/ros/ros.h:45, from /home/mcamurri/hyq-ws/src/hyq_registration/src/hyq_registration.cpp:1: /opt/ros/hydro/include/ros/serialization.h: In static member function ‘static void ros::serialization::Serializer<T>::read(Stream&, typename boost::call_traits<T>::reference) [with Stream = ros::serialization::IStream, T = pcl::PointCloud<pcl::PointXYZRGB>, typename boost::call_traits<T>::reference = pcl::PointCloud<pcl::PointXYZRGB>&]’: /opt/ros/hydro/include/ros/serialization.h:163:3: instantiated from ‘void ros::serialization::deserialize(Stream&, T&) [with T = pcl::PointCloud<pcl::PointXYZRGB>, Stream = ros::serialization::IStream]’ /opt/ros/hydro/include/ros/subscription_callback_helper.h:132:5: instantiated from ‘ros::VoidConstPtr ros::SubscriptionCallbackHelperT<P, Enabled>::deserialize(const ros::SubscriptionCallbackHelperDeserializeParams&) [with P = const boost::shared_ptr<const pcl::PointCloud<pcl::PointXYZRGB> >&, Enabled = void, ros::VoidConstPtr = boost::shared_ptr<const void>]’ /home/mcamurri/hyq-ws/src/hyq_registration/src/hyq_registration.cpp:54:1: instantiated from here /opt/ros/hydro/include/ros/serialization.h:136:5: error: ‘class pcl::PointCloud<pcl::PointXYZRGB>’ has no member named ‘deserialize’ make[2]: *** [hyq_registration/CMakeFiles/hyq_registration_node.dir/src/hyq_registration.cpp.o] Error 1 make[1]: *** [hyq_registration/CMakeFiles/hyq_registration_node.dir/all] Error 2 make: *** [all] Error 2 Invoking "make" failed I have Hydro on Ubuntu 12.04. Originally posted by mark_vision on ROS Answers with karma: 275 on 2014-01-30 Post score: 0
I am trying to create an plugin for rqt. So far I have followed the tutorial "rqt/Tutorials/Create your new rqt plugin" on the ROS wiki exactly, but when I type "rosrun rqt_mypkg rqt_mypkg" I get the following message: Couldn't find executable named rqt_mypkg below /home/alan/catkin_ws/src/rqt_mypkg Found the following, but they're either not files, or not executables: /home/alan/catkin_ws/src/rqt_mypkg /home/alan/catkin_ws/src/rqt_mypkg/src/rqt_mypkg I have no idea what is wrong. Please help. Originally posted by aland_t on ROS Answers with karma: 107 on 2014-01-30 Post score: 1 Original comments Comment by aland_t on 2014-01-30: I'm running groovy on Ubuntu 12.04 if that helps. Comment by ahendrix on 2014-01-30: Have you set your script as executable? Try chmod +x /home/alan/catkin_ws/src/rqt_mypkg/src/rqt_mypkg Comment by aland_t on 2014-01-31: I tried this, but I received the message "chmod could not access" ...."No such file or directory". However, I did not notice this before, but if I run "rqt" the default rqt gui comes up. My plugin is listed under the Plugins tab. It throws a lot of errors when I click it though. Comment by aland_t on 2014-01-31: Ok, I have the plugin working if I just run "rqt" and open it from the plugins menu. "rosrun rqt_mypkg rqt_mypkg" still does not work. Comment by 130s on 2014-02-02: @atland_t you can modify your post to paste the error you got. Comment by Dorian Scholz on 2014-09-12: Can you change the title of this question to "how to run a newly created rqt plugin". The Answer of "Wolf" is correct, so you can close this afterwards. I also updated the tutorial to avoid this issue.
Hello everyone, I have a problem incorporating Point Grey Research's Triclops SDK into ROS. I've created a simple test ROS package that illustrates this problem based on the simple C++ publisher shown in the following tutorial: http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber(c%2B%2B). Here is the code: #include "ros/ros.h" #include "std_msgs/String.h" #include "triclops.h" #include <sstream> /** * Function to handle error checking for the Triclops SDK */ void triclopsErrorHandler(const char* function_name, TriclopsError te) { if(te != TriclopsErrorOk) { std::cout << "TRICLOPS_ERROR: " << function_name << " reported " << triclopsErrorToString(te) << "." << std::endl; exit(1); } } /** * This tutorial demonstrates simple sending of messages over the ROS system. */ int main(int argc, char **argv) { ros::init(argc, argv, "talker"); ros::NodeHandle n; ros::Publisher chatter_pub = n.advertise<std_msgs::String>("chatter", 1000); ros::Rate loop_rate(10); int count = 0; TriclopsContext shortContext; TriclopsError te; // THE FOLLOWING LINE BREAKS ROS UNLESS IT'S COMMENTED OUT te = triclopsGetDefaultContextFromFile(&shortContext, "../short.cal"); triclopsErrorHandler("triclopsGetDefaultContextFromFile", te); while (ros::ok()) { std_msgs::String msg; std::stringstream ss; ss << "hello world " << count; msg.data = ss.str(); ROS_INFO("%s", msg.data.c_str()); chatter_pub.publish(msg); ros::spinOnce(); loop_rate.sleep(); ++count; } return 0; } Whenever the following line: te = triclopsGetDefaultContextFromFile(&shortContext, "../short.cal"); is NOT commented, I get the following segfault in gdb: $ gdb ./bin/testTriclops GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". For bug reporting instructions, please see: <http://bugs.launchpad.net/gdb-linaro/>... Reading symbols from /home/andrew-am3p/fuerte_workspace/sandbox/testTriclops/bin/testTriclops...done. (gdb) run Starting program: /home/andrew-am3p/fuerte_workspace/sandbox/testTriclops/bin/testTriclops [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". testTriclops: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long) ((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed. Program received signal SIGABRT, Aborted. 0xb7fdd424 in __kernel_vsyscall () (gdb) bt #0 0xb7fdd424 in __kernel_vsyscall () #1 0xb7b5f1df in raise () from /lib/i386-linux-gnu/libc.so.6 #2 0xb7b62825 in abort () from /lib/i386-linux-gnu/libc.so.6 #3 0xb7ba6469 in ?? () from /lib/i386-linux-gnu/libc.so.6 #4 0xb7ba9293 in ?? () from /lib/i386-linux-gnu/libc.so.6 #5 0xb7baadec in malloc () from /lib/i386-linux-gnu/libc.so.6 #6 0xb7deb627 in operator new(unsigned int) () from /usr/lib/i386-linux-gnu/libstdc++.so.6 #7 0xb7f92124 in ros::initInternalTimerManager() () from /opt/ros/fuerte/lib/libroscpp.so #8 0xb7f74e65 in ros::start() () from /opt/ros/fuerte/lib/libroscpp.so #9 0xb7f4a707 in ros::NodeHandle::construct(std::string const&, bool) () from /opt/ros/fuerte/lib/libroscpp.so #10 0xb7f4b893 in ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&) () from /opt/ros/fuerte/lib/libroscpp.so #11 0x0806bc40 in main (argc=28, argv=0x0) at /home/andrew- am3p/fuerte_workspace/sandbox/testTriclops/src/testTriclops.cpp:39 When that line is commented out, the software runs perfectly fine. Any ideas on how to eliminate this problem? Thanks in advance for any help! Below is the CMakeLists.txt I use to build this package with rosmake: cmake_minimum_required(VERSION 2.4.6) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) # Set the build type. Options are: # Coverage : w/ debug symbols, w/o optimization, w/ code-coverage # Debug : w/ debug symbols, w/o optimization # Release : w/o debug symbols, w/ optimization # RelWithDebInfo : w/ debug symbols, w/ optimization # MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries #set(ROS_BUILD_TYPE RelWithDebInfo) rosbuild_init() #set the default path for built executables to the "bin" directory set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) #set the default path for built libraries to the "lib" directory set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) link_libraries(triclops pnmutils) rosbuild_add_executable(testTriclops src/testTriclops.cpp) Please note, for some reason the "<<" operator is being replaced with & l t ; & l t ; in the code. Originally posted by Andrew Capodieci on ROS Answers with karma: 16 on 2014-01-30 Post score: 0 Original comments Comment by mjcarroll on 2014-01-30: I seem to recall this is because PointGrey statically links in some libraries that ROS also uses, and you get all sorts of bizarre symbol conflicts. It's been a while since I have looked at this, though. Comment by Andrew Capodieci on 2014-01-30: the point grey triclops library is a static library (triclops.a) so this makes sense...in the cmake I had to put link_libraries(triclops) so that the triclops libraries were linked first and so ROS didn't depend on it. Would this have prevented the issue you're talking about?
Hello! I've created a roslaunch that does all the work and finished cleanly. The problem is that it stays alive and to fully terminate the program I need to ctrl-c. I've read in an old ticket that it's because the core keeps running (for non-specified reasons). Is it possible to force the launch to exit after all processes end? Originally posted by JohnMdz on ROS Answers with karma: 21 on 2014-01-30 Post score: 2
Dear ROS Supporters, Why is a ROS UDP Datagram support limited to a block size under 2K? TCP/IP v4 supports a Datagram up to 65535, while IPv6 supports TCPIP, and UDP Jumbogram up to 4GB. It seems that the video latency due to increased CPU processing, and network message bandwidth decrement justifies larger UDP block sizes? Any constructive input will be appreciated. Thanks, Aaron Originally posted by unknown_entity1 on ROS Answers with karma: 104 on 2014-01-30 Post score: 2
How is that distribution of ROS have?, This because when installing the lightweight simulator tutorial Understanding ROS nodes, I could not change my distro for alleged distribution is hydro, but it says there is no package or file I'm working with ubuntu 12.04 thanks for your help and attention given Error message: $ sudo apt-get install ros-<hydro>-ros-tutorials Error bash: hydro: No such file or directory Originally posted by felipe on ROS Answers with karma: 1 on 2014-01-30 Post score: -2 Original comments Comment by ahendrix on 2014-01-30: Can you update your question with the exact command and error message that you're seeing? Comment by felipe on 2014-01-30: command sudo apt-get install ros--ros-tutorials Error bash: hydro: No such file or directory Comment by gustavo.velascoh on 2014-01-30: Did you install ROS following the instructions in http://wiki.ros.org/hydro/Installation/Ubuntu? Comment by gustavo.velascoh on 2014-01-30: The command should be `$ sudo apt-get install ros-hydro-ros-tutorials´ Comment by felipe on 2014-01-30: gustavo.velascoh thank you very much for your great help and I could really solve my problem with the help of gustavo.velascoh you are all very friendly. good evening
I have rviz crash [rviz-5] process has died [pid 26833, exit code -11, cmd /opt/ros/groovy/lib/rviz/rviz -d /home/user/catkin_ws/src/semantic_navigation/rviz_config_test.rviz __name:=rviz __log:=/home/user/.ros/log/b2dfc712-8a10-11e3-b737-3c970e43a294/rviz-5.log]. when I try to add GridCells: topic: move_base_node/local_costmap/anything from here eg. obstacles my parameters: local_costmap: publish_voxel_map: true global_frame: /odom robot_base_frame: /base_link update_frequency: 5.0 publish_frequency: 5.0 static_map: false rolling_window: true width: 15.0 height: 15.0 resolution: 0.05 origin_x: 0.0 origin_y: 0.0 edit 1: LaserScan also crashes rviz edit 2: I run rviz with optirun and the error does not occure when adding LaserScan, but error from local_costmap remains. Originally posted by BP on ROS Answers with karma: 176 on 2014-01-30 Post score: 0 Original comments Comment by Ander on 2014-01-30: Same problem started to happen to me this week. While visualizing the navigation in Rviz, it crashes and sometimes (not always) says "malloc(): memory corruption". More Info: ubuntu 12.04, ros groovy, rviz version 1.9.34 , OGRE version 1.7.4, OpenGl version: 4.2. Nvidia driver 304.116 (Quadro 600) Comment by Angus on 2014-01-31: I'm getting new segfaults from trying to display LaserScan messages in Rviz too. Was working well last week. rviz version 1.9.34. OGRE version 1.7.4 (Cthugha). OpenGl version: 3 (GLSL 1.3). Intel Hashwell Video driver. Works well in Hydro still! Just not Groovy. Comment by Ander on 2014-02-02: Today I made another test. Instead of using the rviz binary installed with groovy distro, I downloaded the source code of rviz groovy-devel branch from github, built it and, after running, same problem happens: Segmentation fault (core dumped). Comment by BP on 2014-02-03: I'm also getting errors while trying to display LaserScan Comment by oleo80 on 2014-02-03: I also have the same problem on my new PC with Intel i7 Haswell. Rviz crashes after showing the laserscan message. PS: I have the same configuration of Angus (RVIZ 1.9.34. OGRE 1.7.4 OpenGl 3 (GLSL 1.3). Intel Hashwell Video driver. Comment by BP on 2014-02-03: https://github.com/ros-visualization/rviz/issues/713 Comment by BP on 2014-02-05: i've updated question and added how i got rviz to work with LaserScan Comment by Ander on 2014-02-05: I downloaded previous rviz versions in order to figure out which is the last version that works. With rviz 1.9.32 I have no problems at all. After this version, both 1.9.33 and 1.9.34 crash. Comment by BP on 2014-02-06: how did u make it? when i try to catkin_make rviz 1.9.32 it says /home/wildbaker/catkin_ws/src/rviz-1.9.32/src/rviz/yaml_config_reader.cpp: In member function ‘void rviz::YamlConfigReader::readStream(rviz::Config&, std::istream&, const QString&)’: /home/wildbaker/catkin_ws/src/rviz-1.9.32/src/rviz/yaml_config_reader.cpp:63:12: error: ‘class YAML::Parser’ has no member named ‘GetNextDocumen
The location of the package I am working in is /host/Users/Mark\ Won/Documents/School\ Work/College/Junior/Junior\ 2nd\ Semester/CSE\ 468/workspace/tutorials I have added the following to my ~/.bashrc export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/host/Users/Mark\ Won/Documents/School\ Work/College/Junior/Junior\ 2nd\ Semester/CSE\ 468/workspace/ However, when I try to run roscd tutorials, I get the following error: bash: cd: /host/Users/MarkWon/Documents/SchoolWork/College/Junior/Junior: No such file or directory Does anyone know how to get package paths with spaces in the name to comply with the rosbash suite? ---------UPDATE: I've tried adding the following to my ~/.bashrc, but to no avail:------- export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:"/host/Users/Mark\ Won/Documents/School\ Work/College/Junior/Junior\ 2nd\ Semester/CSE\ 468/workspace/" and export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:"/host/Users/Mark Won/Documents/School Work/College/Junior/Junior 2nd Semester/CSE 468/workspace/" and export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:"\"/host/Users/Mark Won/Documents/School Work/College/Junior/Junior 2nd Semester/CSE 468/workspace/\"" and export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:"/host/Users/Mark\\ Won/Documents/School Work/College/Junior/Junior\\ 2nd\\ Semester/CSE\\ 468/workspace/" and export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/host/Users/Mark\\ Won/Documents/School Work/College/Junior/Junior\\ 2nd\\ Semester/CSE\\ 468/workspace/ Originally posted by mackorone on ROS Answers with karma: 1 on 2014-01-30 Post score: 0
Hello everyone, I have written some code for publisher and subscriber and I am currently using SVN for versioning. I committed the entire workspace, now when I took the checkout on other machine, I am not able to compile the source code. I get the source-directory not found error. I know that obviously its not the same workspace but is there a workaround to update the relative path, so that the next time anyone takes any checkout, the source code compiles on their machine ? Originally posted by rosAS on ROS Answers with karma: 21 on 2014-01-30 Post score: 0
- I already had materials about it with the help of Google Search . - I need helpful materials about its URDF model & its Gazebo simulation because there are no materials about it in roswiki like the other famous robots that support ROS . - So, I asked my question because there are a lot of experienced developers in this forum who may know helpful materials ( links,books,tutorials) , sites or teams that work on this robot or similar robots to it . any help ,please Originally posted by Eman on ROS Answers with karma: 164 on 2014-01-31 Post score: 1
Hi, I have an issue running the gazebo server. It always crashes with a segfault. Here is the debug log: http://pastebin.com/c51fvTz9 This is how I launch gazebo: <include file="$(find gazebo_ros)/launch/empty_world.launch"> <arg name="debug" value="true"/> </include> I've looked around, more users seem to have this problem but there does not appear to be a definitive solution. I run Ubuntu 12.04 with nvidia drivers (GT650M) installed by bumblebee. OpenGL appears to work (glxgears) and rviz works fine. Any ideas? Edit: this was using gazebo 1.9.3 and ROS Hydro Originally posted by Alpha on ROS Answers with karma: 18 on 2014-01-31 Post score: 0 Original comments Comment by bchr on 2014-01-31: Which version of gazebo are you using? Have you tried with the latest version compiled from source? Comment by Alpha on 2014-01-31: Thanks for the advice, I'll try the latest version of Gazebo (currently the default that comes with hydro) and post the result here.
We have a set up where there is a single robot running ROS and we connect laptops to it. We need to use foreign relays to connect ROS running on the laptops to the robot. If the laptops both try to spawn foreign relay nodes on the robot which have the same name, the nodes die and respawn due to name conflicts. After continuously respawning nodes for somewhere between 20 minutes and 2 hours, nodes stop respawning and rosmaster appears to lock up. It takes 100% of a cpu core and commands that query rosmaster, such as "rostopic list", just hang. Additionally, rosmaster stops printing log statements. When we try to control-C the code, the nodes have to escalate to SIGTERM in order to be killed. The following launch file is a simplified test case of the issues we are seeing: <launch> <node name="pose_ekf" pkg="robot_pose_ekf" type="robot_pose_ekf" respawn="true"/> </launch> It just launches an ekf node. I have a similar test case that launches a foreign relay node, but it seems to work with any roscpp node . If you launch this file twice on the same computer, it will result in nodes continuously respawning, and after 5 - 30 minutes (nodes respawn much more quickly in this test than in our system with the robot), rosmaster will lock up. We are using ROS Fuerte on Ubuntu 12.04. We can get around this issue on our robot by ensuring that we do not have node name conflicts, but I was wondering what actually is causing rosmaster to lock up, and if it is fixed in a newer version of ROS. Originally posted by grieneis on ROS Answers with karma: 16 on 2014-01-31 Post score: 0 Original comments Comment by ahendrix on 2014-01-31: Also, you shouldn't need foreign relays for simple network communication.
When I try set sensor_msgs/JointState and publish it ros::Publisher joint_msg_pub = node.advertise<sensor_msgs::JointState>("leg_joints_states", 1); sensor_msgs::JointState joint_msg; joint_msg.name[0] = "coxa_joint_r1"; joint_msg.position[0] = q_out(0); joint_msg_pub.publish(joint_msg); But when I launch node I get segmentation fault. I incorrectly set the value in the message? Originally posted by tuuzdu on ROS Answers with karma: 85 on 2014-01-31 Post score: 0
I have updated my release repo running bloom-release but now I want to update that release over-writing previous commits and tags. One way is to do it manually, using git, resetting each branch/tag to previous state and then running bloom-release again, but I am searching for a more elegant way. EDIT: I have cancelled the pull request to rosdistro at the end of bloom-release script, so the release is only in my release repo. Originally posted by czalidis on ROS Answers with karma: 25 on 2014-01-31 Post score: 1
Hello, I'm trying to install Ros Groovy on Ubuntu 13.10. (Yes Groovy because the last project I used uses it) I'm following this tutorial: wiki.ros.org/groovy/Installation/Source But I'm stuck when I try to run this command: ./src/catkin/bin/catkin_make_isolated --install-space /opt/ROS/groovy/ make[2]: *** [common/CMakeFiles/pcl_common.dir/src/common.cpp.o] Error 1 make[2]: *** [common/CMakeFiles/pcl_common.dir/src/distances.cpp.o] Error 1 make[2]: *** [common/CMakeFiles/pcl_common.dir/src/io.cpp.o] Error 1 make[2]: *** [common/CMakeFiles/pcl_common.dir/src/intersections.cpp.o] Error 1 make[1]: *** [common/CMakeFiles/pcl_common.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make[2]: *** [octree/CMakeFiles/pcl_octree.dir/src/octree_impl.cpp.o] Error 1 make[1]: *** [octree/CMakeFiles/pcl_octree.dir/all] Error 2 Linking CXX shared library ../lib/libpcl_io_ply.so [ 4%] Built target pcl_io_ply make: *** [all] Error 2 <== Failed to process package 'pcl': Command '/opt/ROS/ros_catkin_ws/devel_isolated/nodelet_topic_tools/env.sh make -j8 -l8' returned non-zero exit status 2 Reproduce this error by running: ==> cd /opt/ROS/ros_catkin_ws/build_isolated/pcl && /opt/ROS/ros_catkin_ws/devel_isolated/nodelet_topic_tools/env.sh make -j8 -l8 Command failed, exiting. I have already checked the pcl_find_ros.cmake and it's seems up to date. (h ttps://github.com/ros-gbp/pcl-release/commits/bf43ffc0eebca4042c6765319c4dd211409d7ace/cmake/pcl_find_ros.cmake) Any ideas? :\ EDIT: Command: ./src/catkin/bin/catkin_make_isolated -j1 --install-space /opt/ROS/groovy/ make[2]: *** [common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o] Error 1 make[1]: *** [common/CMakeFiles/pcl_common.dir/all] Error 2 make: *** [all] Error 2 <== Failed to process package 'pcl': Command '/opt/ROS/ros_catkin_ws/devel_isolated/nodelet_topic_tools/env.sh make -j1' returned non-zero exit status 2 Reproduce this error by running: ==> cd /opt/ROS/ros_catkin_ws/build_isolated/pcl && /opt/ROS/ros_catkin_ws/devel_isolated/nodelet_topic_tools/env.sh make -j1 Command failed, exiting. Originally posted by bapclenet on ROS Answers with karma: 1 on 2014-01-31 Post score: 0 Original comments Comment by ahendrix on 2014-01-31: I feel like the actual error message is missing here. Do you get any more information by running ./src/catkin/bin/catkin_make_isolated -j1 --install-space /opt/ros/groovy/ ? Comment by bapclenet on 2014-02-01: I edited my post, it's not exactly the same error but quite similar. What do you think? Comment by ahendrix on 2014-02-01: Can you include more of the error output? I don't see anything that actually looks like an error from the compiler. Ideally, everything from the first error message onward is useful. Comment by demmeln on 2014-02-11: Does "VERBOSE=1 ./src/catkin/bin/catkin_make_isolated -j1 --install-space /opt/ros/groovy/" output more info? If not, run make clean for pcl first (or remove the pcl build dir) and try again with VERBOSE=1 and -j1 Comment by TSC on 2014-02-11: Having the same problem here. Any luck with this? Comment by ahendrix on 2014-02-11: Related question: http://answers.ros.org/question/126846/error-installing-ros-groovy-from-source-on-ubuntu-1310/ Comment by TSC on 2014-02-11: Exactly! Thanks ahendrix! Comment by demmeln on 2014-02-11: @TSC, what about that full error log with VERBOSE=1 and -j1? Comment by TSC on 2014-02-16: @ahendrix, already added -j1. Please, check related question: http://answers.ros.org/question/126846/error-installing-ros-groovy-from-source-on-ubuntu-1310/
Hello all, I've been working on Stage(3.2.2)/Player(3.0.2) for a while. I need to integrate it with ROS in order to get to next step in my project. So, in Player/Stage you have a .cfg and a .world file. You run the .cfg and then run an executable on the background in order to control your robot. What I want is to publish Player as a ROS(Groovy preffered) node (I guess it is essentially the same thing as connecting to the drivers that are defined in .cfg file using ROS) rather than connecting to Stage directly through ROS. I think the hierarchy between them should be like this: ROS->Player->Exe->Stage. The http://wiki.ros.org/player page doesn't seem to have anything useful for a beginner like me. An example configuration would be great for example. Would appreciate any help. Thanks. Update: I've found the following tutorial->brice-rebsamen.blogspot.com.tr/2011/05/first-exercise-with-ros-node-to.html So, as far as i can understand the whole player package becomes a node to ROS and then i can subcribe to the proxies i defined in my code through it. Originally posted by SpiderRico on ROS Answers with karma: 35 on 2014-01-31 Post score: 0
I am using this code topic is: /camera/depth/image type: /sensor_msgs/Image According to the code, (msg->data[0]) is providing the value of Top-Left Corner. I wanted to ask: How can I get the value of the Top-Right Corner, Centre, etc. How can I get the normal depth value that can tell me the distance from the object? Do I need to do some mathematical work or is there a method? Originally posted by Safeer on ROS Answers with karma: 66 on 2014-02-01 Post score: 1 Original comments Comment by askkvn on 2021-06-24: Your reference code helped, thanks
Hi, I am trying to run ROS Hydro on an Intel Galileo running Debian. I've installed ROS, the i386 version, and it's giving me an Illegal Instruction error when running the listener cpp tutorial. It appears the offending code is in librostime: $ gdb devel/lib/beginner_tutorials/talker ... Program received signal SIGILL, Illegal instruction. 0xb7931195 in ros::DurationBase<ros::WallDuration>::fromSec(double) () from /opt/ros/hydro/lib/librostime.so (gdb) backtrace #0 0xb7931195 in ros::DurationBase<ros::WallDuration>::fromSec(double) () from /opt/ros/hydro/lib/librostime.so #1 0xb7e64d1a in ros::WallDuration::WallDuration(double) () from /opt/ros/hydro/lib/libroscpp.so #2 0xb7ea1ee0 in ?? () from /opt/ros/hydro/lib/libroscpp.so #3 0xb7ea1f82 in ?? () from /opt/ros/hydro/lib/libroscpp.so #4 0xb7ff0202 in ?? () from /lib/ld-linux.so.2 #5 0xb7ff02d9 in ?? () from /lib/ld-linux.so.2 #6 0xb7fe287f in ?? () from /lib/ld-linux.so.2 (gdb) display/i $pc 1: x/i $pc => 0xb7931195 <_ZN3ros12DurationBaseINS_12WallDurationEE7fromSecEd+37>: fucomip %st(1),%st It looks like it's using the fucomip instruction, which was added with the Pentium Pro. I'll try to figure out how to build this from source... but is this a configuration error in the build farm? Originally posted by Jon Stephan on ROS Answers with karma: 837 on 2014-02-01 Post score: 0
I have installed ros hydro and have been using it correctly. BUt after some days, I got a problem. Now whenever I open a terminal, it says: bash: /home/mudassar/ros/setup.sh: No such file or directory bash: /opt/ros/electric/setup.bash: No such file or directory bash: /opt/ros/electric/setup.bash: No such file or directory bash: /opt/ros/electric/setup.bash: No such file or directory bash: /opt/ros/electric/setup.bash: No such file or directory Could anyone help to resolve my issue? Is there some problem in my .bashrc file? Please be detailed as I am very new to ubuntu and ros. Thanks! Originally posted by mudassar on ROS Answers with karma: 22 on 2014-02-01 Post score: 0
In the tutorial: wiki.ros.org/urdf/Tutorials/Create your own urdf file In which directory do I have to create my_robot.urdf file? I created in my home directory (mudassar) and it did not successfully execute following commands: rosmake urdfdom_model check_urdf my_robot.urdf # hydro Could you please guide the possible reason? MY ros is hydro and I am using ubuntu 12.04LTS. Originally posted by mudassar on ROS Answers with karma: 22 on 2014-02-01 Post score: 0 Original comments Comment by bvbdort on 2014-02-01: execute check_urdf in the directory where you had my_robot.urdf file. Comment by mudassar on 2014-02-01: Actually I did the same but did not work for me! Comment by mudassar on 2014-02-03: Thankyou! Issue resolved!
How do I publish this test data to the /map topic. I would like to use this routine to test other things I'm working on. I think I'm doing it right but when I type 'rostopic echo /map' I see nothing. If I run the script at the command prompt after typing 'roscore' in another terminal I see the test OccupancyGrid on the screen. I don't know what I'm doing wrong. #!/usr/bin/env python import rospy import sys from nav_msgs.msg import * from std_msgs.msg import * def map_stuff(): rospy.init_node('turtlebot_map', anonymous=True) if not rospy.is_shutdown(): create_map() rospy.spin() def create_map( ): test_map = OccupancyGrid() test_map.info.resolution = 1.0 test_map.info.width = 10 test_map.info.height = 10 test_map.info.origin.position.x = 0.0 test_map.info.origin.position.y = 1.0 test_map.info.origin.position.z = 2.0 test_map.info.origin.orientation.x = 3.0 test_map.info.origin.orientation.y = 4.0 test_map.info.origin.orientation.z = 5.0 test_map.info.origin.orientation.w = 6.0 test_map.data = [] for i in range(0, 100): test_map.data.append(i) print test_map map_pub = rospy.Publisher('/map', OccupancyGrid) map_pub.publish(test_map); return if __name__ == '__main__': try: map_stuff() except rospy.ROSInterruptException: pass I followed online tutorials as closely as I could. Any help would be appreciated. Originally posted by david.c.liebman on ROS Answers with karma: 125 on 2014-02-01 Post score: 0 Original comments Comment by Higor on 2020-04-24: You can help me build my map, it is not working?
Hi, I'm new at ROS and I'm trying to install p2os so I can just move my Pioneer. While following the setup tutorial (htt.p://wiki.ros.org/p2os-vanderbilt/Tutorials/Setup), at this step "cd src && git clone htt.p://www.hmt-git.com/p2os.git" i got this message "error: Failed connect to www.hmt-git.com:80; Connection refused while accessing htt.p://www.hmt-git.com/p2os.git/info/refs". Any suggestions? Thanks for reading. Originally posted by NullX4 on ROS Answers with karma: 25 on 2014-02-02 Post score: 0
Dear all, I amtrying to publish a msgs with large data size on Arduino. I have tried both Float32MultiArray and Laserscan msgs. However, when i increase the data_length more than 7, it shows an error in the terminal [INFO] [WallTime: 1391356801.758318] Failed Packet Flags after the command "rosrun rosserial_python serial_node.py /dev/ttyACM0" (the code as attached). If I keep the size below 7, the msgs can be published normally. Could you help me and give me some suggestion, please? thank you!! #include <ros.h> #include <ros/time.h> #include <std_msgs/Float32MultiArray.h> ros::NodeHandle nh; std_msgs::Float32MultiArray range_msg; ros::Publisher pub_range("/test", &range_msg); void setup() { nh.initNode(); range_msg.data_length=100; nh.advertise(pub_range); } long range_time; void loop() { //publish the adc value every 50 milliseconds //since it takes that long for the sensor to stabilize if ( millis() >= range_time ) { for(int i=0;i<100;i++) { range_msg.data[i]=0.01222331221; } pub_range.publish(&range_msg); range_time = millis() + 50; } nh.spinOnce(); } Originally posted by bisimai111 on ROS Answers with karma: 23 on 2014-02-02 Post score: 2
Hi guys! I've followed the ROS tutorial: "Quadrotor indoor SLAM demo", step by step, (I think) and at the end, when I write the last command,(roslaunch hector_quadrotor_demo indoor_slam_gazebo.launch), I get this: [indoor_slam_gazebo.launch] is neither a launch file in package [hector_quadrotor_demo] nor is [hector_quadrotor_demo] a launch file name Somebody knows why? Thanks Originally posted by Irene.M on ROS Answers with karma: 1 on 2014-02-02 Post score: 0
... Now that 13.04 is not provided with updates anymore. Or should one go back to 12.04LTS? Originally posted by karlelch on ROS Answers with karma: 11 on 2014-02-02 Post score: 1 Original comments Comment by gustavo.velascoh on 2014-02-02: This is a previous question related: http://answers.ros.org/question/117906/how-to-install-ros-on-unbuntu-1310
It might be a silly question, but I would like to know for the sake of curiosity. I would like to see real sensor data for 2D case. I can't afford the cost of Laser sensors so far, but I'm sure that there is some recorded real data that allows me to understand and interpret this data. I know that data that is acquired by robot is represented in the robot's frame. For 2D, I should get the range and bearing to an obstacle. I've simulated the procedure in Matlab, but now I want see the real data. Thanks in advance. Originally posted by CroCo on ROS Answers with karma: 155 on 2014-02-02 Post score: 0
My Hydro package includes both a launch file and a pair of yaml files. The launch file gets installed by Catkin to ~/workspace/install/share/pkg-name/file.launch (CATKIN_PACKAGE_SHARE_DESTINATION) and the parameter files to ~/workspace/install/etc/pkg-name/files.yaml (CATKIN_PACKAGE_ETC_DESTINATION). The trouble is that roslaunch doesn't seem to know to look for the parameter files there ($(find pkg-name) resolves to ~/workspace/install/share/pkg-name). I have two fixes, but both feel like hacks and workarounds: Install the yaml files to CATKIN_PACKAGE_SHARE_DESTINATION with the launch file. Use < rosparam file="$(find pkg-name)/../../etc/pkg-name/file.yaml command="load" /> in the launch file The first option has me wondering why there is a CATKIN_PACKAGE_ETC_DESTINATION if it isn't for param files. The second is ugly and potentially brittle. How can I make roslaunch find my parameter files more cleanly? What is the ROS/catkin standard method/location for installing parameter files? Originally posted by Nathan Powel on ROS Answers with karma: 3 on 2014-02-02 Post score: 0
I am using depthimage_to_laserscan package. I use the command "rosrun depthimage_to_laserscan depthimage_to_laserscan" to run the node. But It isn't printing anything to the /scan topic. Using rosnode command I see that it isn't subscribing to /camera/depth/image_raw topic. How do I make it do that? Originally posted by AnuZam on ROS Answers with karma: 3 on 2014-02-02 Post score: 0
I just installed gazebo. Everything went fine but when I went to test it using the commands roscore & rosrun gazebo_ros gazebo I got the error [rosrun] Couldn't find executable named gazebo below /opt/ros/hydro/share/gazebo_ros It's strange because tab completion still works and everything appears to be in the correct directories. Thank you for any help Originally posted by qazmonk on ROS Answers with karma: 11 on 2014-02-02 Post score: 1
I've installed and tested megatree (http://wiki.ros.org/megatree/Tutorials/GettingStarted) on my system using my old fuerte installation and it works quite impressive. I'd like to develop some application on top of it. My entire ros related work is in hydro, though, i. e. I'd need a hydro release of megatree in order for embedding it. The mentioned link still is at fuerte. I considered porting the src myself to hydro but the source link in the wiki still links me to kforge.ros.org, i. e. is no longer available. Does anyone know whether there is a github repo to which megatree has moved? Edit Mar, 14: Anyone? Originally posted by Wolf on ROS Answers with karma: 7555 on 2014-02-03 Post score: 2
If i load up a nodelet, from a reguler c++ program, call it's init function, and then call ros::spin(), will it function as a regular node? Originally posted by Woodrow Douglass on ROS Answers with karma: 1 on 2014-02-03 Post score: 0
Hi, I'm using the ROS package ueye_cam (fuerte branch) and I would like to know how update the camera_info. I do the calibration with camera_calibration ROS package, I convert the calibration info in .yaml file and I put these files in /home/../.ros/camera_info. If I run roslaunch ueye_cam master_slaves_rgb8.launch and I do rostopic echo /master/camera_info, I don't see the new value. How can I update these values? Thank you Originally posted by Vero on ROS Answers with karma: 16 on 2014-02-03 Post score: 0
I'm trying to make a single app that controls a turtlebot robot. I would like to be able to run the gmapping software that makes a map at one point and then switch to the software that navigates the map, all from the interface of my program. I am under the impression that these elements don't work well together, so I want to be able to start one node that does the gmapping and then stop that node and start the node that does the navigating -- all from my program. I was searching on line and I found that there used to be software called rosspawn. (I'm not even sure if this would do what I want) anyway I don't think it's part of hydro??? So what I'm looking for is a master node that allows me to configure several other nodes at startup and then allows me to start and stop these other nodes either by service or through some topic publishing scheme. Any help would be appreciated. Originally posted by david.c.liebman on ROS Answers with karma: 125 on 2014-02-03 Post score: 1
Having added a roslaunch_add_file_check(..) to my CMakeLists.txt, I notice that if the tests are invoked as: catkin_make run_tests_my_package in a clean workspace (ie: no build or devel directories present), all tests that include launchfiles that start compiled nodes fail. catkin immediately tries to execute the tests, without first compiling the package, or any of its dependencies. Example console output: #### #### Running command: "make run_tests_my_package -j1" in "/home/user/ros/catkin_ws/build" #### -- run_tests.py: execute commands /usr/bin/cmake -E make_directory /home/user/ros/catkin_ws/build/test_results/my_package /opt/ros/hydro/share/roslaunch/cmake/../scripts/roslaunch-check -o /home/user/ros/catkin_ws/build/test_results/my_package/roslaunch-check_tests_roslaunch_test.xml.xml /home/user/ros/catkin_ws/src/my_repo/my_package/tests/roslaunch_test.xml checking /home/user/ros/catkin_ws/src/my_repo/my_package/tests/roslaunch_test.xml ...writing test results to /home/user/ros/catkin_ws/build/test_results/my_package/roslaunch-check_tests_roslaunch_test.xml.xml FAILURE: [/home/user/ros/catkin_ws/src/my_repo/my_package/tests/roslaunch_test.xml]: cannot find node [compiled_node_a] in package [some_other_package] cannot find node [compiled_node_b] in package [my_package] cannot find node [compiled_node_c] in package [my_package] wrote test file to [/home/user/ros/catkin_ws/build/test_results/my_package/roslaunch-check_tests_roslaunch_test.xml.xml] -- run_tests.py: verify result "/home/user/ros/catkin_ws/build/test_results/my_package/roslaunch-check_tests_roslaunch_test.xml.xml" Built target run_tests_my_package_roslaunch-check_tests_roslaunch_test.xml Built target run_tests_my_package_roslaunch-check Built target run_tests_my_package my_package has both run and build depends on some_other_package in its package.xml. And roslaunch is a build_depend of my_package. I've tried using add_dependencies(..), but couldn't find a working target. It would also mean I'd have to manually make all targets dependencies of my roslaunch test. Is there a way to make the roslaunch tests only run after all other targets have been built? Originally posted by gvdhoorn on ROS Answers with karma: 86574 on 2014-02-03 Post score: 1
Hi everybody, I am new to ROS and currently I am using turtlebot for my experiment. My aim is to rotate the turtlebot to face my target coordinate and move towards it. However, the turtlebot is not behaving as I expected. The turtlebot is keep rotating or keep moving forward. Here is my source code and kindly give me some advices. for example destination is (1,-0.5) curr_loc = msg->pose.pose; double x=msg->pose.pose.position.x; double y=msg->pose.pose.position.y; double z=msg->pose.pose.orientation.z; double w=msg->pose.pose.orientation.w; curr_head=atan2(2*(x*y+w*z), w*w + x*x - y*y - z*z); DestX=1; DestY=-0.5; left_X=DestX-x; left_Y=DestY-y; left_dist=sqrt((left_X * left_X) + (left_Y*left_Y)); if(left_dist <= 0.05) { reached=true; } if(!reached) { heading=atan2(left_locY,left_locX); } n_head=curr_head-heading; if (n_head<0.2 && n_head>-0.2) facing=true; else facing=false; if (!facing) cmdvel.linear.x=0.0; if (n_head>-3.14) cmdvel.angular.z=-0.25; else if (n_head>-1.6) cmdvel.angular.z=-0.10; else if (n_head<3.14) cmdvel.angular.z=0.25; else if (n_head>1.6) cmdvel.angular.z=0.10; else if (n_head>3.14) cmdvel.angular.z=-0.10; else if (n_head<-3.14) cmdvel.angular.z=0.10; if (facing && !reached) { cmdvel.angular.z=0.0; if (left_dist>0.5) { cmdvel.linear.x=-0.2; usleep(1000000); } else if (left_dist>0.2) { cmdvel.linear.x=-0.15; usleep(1000000); } else if (left_dist>0.08) { cmdvel.linear.x=-0.05; usleep(1000000); } } else if (reached) { cmdvel.linear.x=0.0; n_head=0.0; ROS_INFO("Turtlebot has reached the destination"); } Hope anybody can help me out. Thank you! Originally posted by nadal11 on ROS Answers with karma: 23 on 2014-02-03 Post score: 0
In tutorial : http://wiki.ros.org/urdf/Tutorials/Parse%20a%20urdf%20file When I run: ~/catkin_ws$ ./devel/lib/testbot_description/parser /src/testbot_description/urdf/my_robot.urdf I get: [ERROR] [1391452425.205963339]: Could not open file [/src/testbot_description/urdf/my_robot.urdf] for parsing. [ERROR] [1391452425.206094879]: Failed to parse urdf file I checked in the directories, both files are already present but still error! Kindly help! My Ros: Hydro My OS: Ubuntu 12.04 LTS Originally posted by mudassar on ROS Answers with karma: 22 on 2014-02-03 Post score: 0 Original comments Comment by hsu on 2014-02-03: what do you see when you run "ls /src/testbot_description/urdf/my_robot.urdf"?
Hi, could use some help to make rosserial_arduino work and have an arduino work with ROS for me. Have followed all the instructions, tested it on 2 different Arduino's but got the error below and I am out of ideas what I might be doing wrong. I am working on Fuerte, did get Fuerte branch from github (kforce giving errors), was able to rosbuild without errors, have copied ros_lib to sketchbook as instructed. But when compiling the helloword sketch I keep getting error below. Any clues? Thanks In file included from HelloWorld.pde:6: /home/turtelbot/sketchbook/libraries/ros_lib/ros.h:38:29: error: ros/node_handle.h: No such file or directory In file included from /home/turtelbot/sketchbook/libraries/ros_lib/ros.h:39, from HelloWorld.pde:6: /home/turtelbot/sketchbook/libraries/ros_lib/ArduinoHardware.h:38:22: error: WProgram.h: No such file or directory In file included from /home/turtelbot/sketchbook/libraries/ros_lib/ros.h:39, from HelloWorld.pde:6: /home/turtelbot/sketchbook/libraries/ros_lib/ArduinoHardware.h: In member function ‘long unsigned int ArduinoHardware::time()’: /home/turtelbot/sketchbook/libraries/ros_lib/ArduinoHardware.h:73: error: ‘millis’ was not declared in this scope In file included from HelloWorld.pde:6: /home/turtelbot/sketchbook/libraries/ros_lib/ros.h: At global scope: /home/turtelbot/sketchbook/libraries/ros_lib/ros.h:49: error: expected initializer before ‘<’ token HelloWorld:9: error: ‘NodeHandle’ in namespace ‘ros’ does not name a type HelloWorld:11: error: ‘std_msgs’ has not been declared HelloWorld:11: error: expected constructor, destructor, or type conversion before ‘str_msg’ HelloWorld:12: error: ‘Publisher’ in namespace ‘ros’ does not name a type HelloWorld.pde: In function ‘void setup()’: HelloWorld:18: error: ‘nh’ was not declared in this scope HelloWorld:19: error: ‘chatter’ was not declared in this scope HelloWorld.pde: In function ‘void loop()’: HelloWorld:24: error: ‘str_msg’ was not declared in this scope HelloWorld:25: error: ‘chatter’ was not declared in this scope HelloWorld:26: error: ‘nh’ was not declared in this scope Originally posted by Charel on ROS Answers with karma: 81 on 2014-02-03 Post score: 0
Hey, I m trying to create a script that sends a service message to the server. Everything is good on the server side but I'm trying to build the client side using Python, just to get familiar with Python. However, with my limited knowledge of Python, building complex msgs is proving rather difficult. I have HighLevelGoals.srv under nuric_sytem which is an array of HighLevelGoal.msg. HighLevelGoals.srv *HighLevelGoal[] goals bool result* HighLevelGoal.msg geometry_msgs/PoseStamped goal_pose string goal_source My basic code is: #!/usr/bin/env python import roslib; roslib.load_manifest('nuric_system') import sys import rospy from nuric_system.srv import HighLevelGoals from nuric_system.msg import HighLevelGoal def send_goal(): rospy.wait_for_service('send_goals') send_goal_proxy = rospy.ServiceProxy('send_goals', HighLevelGoals) srv_goals=HighLevelGoals() goal_1=HighLevelGoal() goal_1.goal_source = "goal_sender" goal_1.goal_pose.header.frame_id = "/sender" goal_1.goal_pose.pose.position.x =-5.17850098489 goal_1.goal_pose.pose.position.y =-3.45 goal_1.goal_pose.pose.position.z =0.0 goal_1.goal_pose.pose.orientation.x= 0.0 goal_1.goal_pose.pose.orientation.y= 0.0 goal_1.goal_pose.pose.orientation.z= 0.192 goal_1.goal_pose.pose.orientation.w=1.0 srv_goals.goals.append(goal_1) resp1 = send_goal_proxy(srv_goals) return if __name__ == "__main__": send_goal() print("goal sent") when I run it, I get the following error : **Traceback (most recent call last): File "test_goal.py", line 40, in <module> send_goal() File "test_goal.py", line 33, in send_goal srv_goals.goals.append(goal_1) AttributeError: 'HighLevelGoals' object has no attribute 'goals'** But HighLevelGoals.srv does have a goals array which should be the same as goal_1 type. Clearly, Im not creating the message correctly. If anyone has any link for appropriate filling of msg arrays, please let me know. Regards Originally posted by Vijeth on ROS Answers with karma: 3 on 2014-02-03 Post score: 0
I'd like to take advantage of the ROS_ETC_DIR in some packages, but I have a few points of confusion about it: My reading of REP-123 suggests that ROS_ETC_DIR should be /etc/ros (or /etc/ros/hydro), but it's actually /opt/ros/hydro/etc/ros. When I have an overlay workspace, and I source the workspace's devel/setup.bash, ROS_ETC_DIR still just points to /opt/ros/hydro/etc/ros When I make the install space, I see install/etc get generated. However, when I source install/setup.bash, I still get ROS_ETC_DIR pointing to /opt/ros/hydro/etc/ros. In the install space, if I create a directory for my package, it is findable using catkin_find mypackage --etc Is the theory that in develspace, anything I would be putting in the etc folder will just be in my source and thus findable that way? What about files which are templated or otherwise generated? Should they hang out in devel or is a generated configuration file a sign that I am doing something wrong? Originally posted by mikepurvis on ROS Answers with karma: 1153 on 2014-02-03 Post score: 1
Hello, I want to driver my Laserscanner under Android system (a smartphone or a tab). I am using Hokoyo Laserscanner UTM-30LX. Does anyone have experience? How to supply the Laserscanner from smartphone or tab? Do I need an adapter to give the scanner appropriate Voltage? Normally the USB in smartphone or tab has a mini USB. How can I use a Y cable to connect the Laserscanner and the smartphone or tab? For your answer my heartfelt appreciation! Originally posted by Yuliang Sun on ROS Answers with karma: 5 on 2014-02-03 Post score: 0
Hello, is there possibility to run RViZ remotely on headless machine using X forwarding (ssh -X)? The problem is that remote machine (server) doesn't have graphic card with OpenGL support so, there is MESA installed. For instance, glxgears runs, but RViZ crashes (Segmentation fault) as well as Gazebo (GLXBadDrawable). Of course that I can overcome this by running RViZ locally but I would like to avoid ROS installation on client's machine. Thanks for any hint. gdb output: 0x00007fffed1cacc0 in xcb_glx_get_string_string_length () from /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 Not sure if it's useful but this is OGRE log: user@server:~$ rosrun rviz rviz -l [ INFO] [1391509162.077619455]: rviz version 1.10.11 [ INFO] [1391509162.077696555]: compiled against OGRE version 1.7.4 (Cthugha) [ INFO] [1391509162.252864686]: Creating resource group General [ INFO] [1391509162.253011606]: Creating resource group Internal [ INFO] [1391509162.253083959]: Creating resource group Autodetect [ INFO] [1391509162.253261229]: SceneManagerFactory for type 'DefaultSceneManager' registered. [ INFO] [1391509162.253635593]: Registering ResourceManager for type Material [ INFO] [1391509162.253741639]: Registering ResourceManager for type Mesh [ INFO] [1391509162.253842063]: Registering ResourceManager for type Skeleton [ INFO] [1391509162.253959093]: MovableObjectFactory for type 'ParticleSystem' registered. [ INFO] [1391509162.254067107]: OverlayElementFactory for type Panel registered. [ INFO] [1391509162.254141490]: OverlayElementFactory for type BorderPanel registered. [ INFO] [1391509162.254212287]: OverlayElementFactory for type TextArea registered. [ INFO] [1391509162.254286650]: Registering ResourceManager for type Font [ INFO] [1391509162.254383290]: ArchiveFactory for archive type FileSystem registered. [ INFO] [1391509162.254463624]: ArchiveFactory for archive type Zip registered. [ INFO] [1391509162.254534294]: DDS codec registering [ INFO] [1391509162.254627777]: FreeImage version: 3.15.1 [ INFO] [1391509162.254700004]: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details [ INFO] [1391509162.255010967]: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,sti [ INFO] [1391509162.255109654]: Registering ResourceManager for type HighLevelGpuProgram [ INFO] [1391509162.255292757]: Registering ResourceManager for type Compositor [ INFO] [1391509162.255784287]: MovableObjectFactory for type 'Entity' registered. [ INFO] [1391509162.255873534]: MovableObjectFactory for type 'Light' registered. [ INFO] [1391509162.255957217]: MovableObjectFactory for type 'BillboardSet' registered. [ INFO] [1391509162.256032137]: MovableObjectFactory for type 'ManualObject' registered. [ INFO] [1391509162.256106037]: MovableObjectFactory for type 'BillboardChain' registered. [ INFO] [1391509162.256178920]: MovableObjectFactory for type 'RibbonTrail' registered. [ INFO] [1391509162.256392527]: *-*-* OGRE Initialising [ INFO] [1391509162.256471531]: *-*-* Version 1.7.4 (Cthugha) [ INFO] [1391509162.256558108]: Loading library /usr/lib/x86_64-linux-gnu/OGRE-1.7.4/RenderSystem_GL [ INFO] [1391509162.260000802]: Installing plugin: GL RenderSystem [ INFO] [1391509162.260118772]: OpenGL Rendering Subsystem created. [ INFO] [1391509162.370099950]: Plugin successfully installed [ INFO] [1391509162.370207907]: Loading library /usr/lib/x86_64-linux-gnu/OGRE-1.7.4/Plugin_OctreeSceneManager [ INFO] [1391509162.372636195]: Installing plugin: Octree & Terrain Scene Manager [ INFO] [1391509162.372726792]: Plugin successfully installed [ INFO] [1391509162.372792058]: Loading library /usr/lib/x86_64-linux-gnu/OGRE-1.7.4/Plugin_ParticleFX [ INFO] [1391509162.375148443]: Installing plugin: ParticleFX [ INFO] [1391509162.375246163]: Particle Emitter Type 'Point' registered [ INFO] [1391509162.375330569]: Particle Emitter Type 'Box' registered [ INFO] [1391509162.375422779]: Particle Emitter Type 'Ellipsoid' registered [ INFO] [1391509162.375501989]: Particle Emitter Type 'Cylinder' registered [ INFO] [1391509162.375565759]: Particle Emitter Type 'Ring' registered [ INFO] [1391509162.375643676]: Particle Emitter Type 'HollowEllipsoid' registered [ INFO] [1391509162.375720116]: Particle Affector Type 'LinearForce' registered [ INFO] [1391509162.375789133]: Particle Affector Type 'ColourFader' registered [ INFO] [1391509162.375857933]: Particle Affector Type 'ColourFader2' registered [ INFO] [1391509162.375929633]: Particle Affector Type 'ColourImage' registered [ INFO] [1391509162.376001369]: Particle Affector Type 'ColourInterpolator' registered [ INFO] [1391509162.376072513]: Particle Affector Type 'Scaler' registered [ INFO] [1391509162.376146796]: Particle Affector Type 'Rotator' registered [ INFO] [1391509162.376219213]: Particle Affector Type 'DirectionRandomiser' registered [ INFO] [1391509162.376339725]: Particle Affector Type 'DeflectorPlane' registered [ INFO] [1391509162.376376121]: Plugin successfully installed [ INFO] [1391509162.376436528]: CPU Identifier & Features [ INFO] [1391509162.376471852]: ------------------------- [ INFO] [1391509162.376502120]: * CPU ID: GenuineIntel: Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz [ INFO] [1391509162.376534838]: * SSE: yes [ INFO] [1391509162.376561875]: * SSE2: yes [ INFO] [1391509162.376591423]: * SSE3: yes [ INFO] [1391509162.376620405]: * MMX: yes [ INFO] [1391509162.376648209]: * MMXEXT: yes [ INFO] [1391509162.376676722]: * 3DNOW: no [ INFO] [1391509162.376706588]: * 3DNOWEXT: no [ INFO] [1391509162.376734837]: * CMOV: yes [ INFO] [1391509162.376764088]: * TSC: yes [ INFO] [1391509162.376792375]: * FPU: yes [ INFO] [1391509162.376822452]: * PRO: yes [ INFO] [1391509162.376852476]: * HT: no [ INFO] [1391509162.376880532]: ------------------------- [ INFO] [1391509162.376911617]: ****************************** *** Starting GLX Subsystem *** ****************************** [ INFO] [1391509162.377003551]: GLRenderSystem::_createRenderWindow "OgreWindow(0)", 1x1 windowed miscParams: externalGLControl= macAPI=carbon parentWindowHandle=96468993 [ INFO] [1391509162.380447480]: GLXWindow::create used FBConfigID = 261 Segmentation fault (core dumped) UPDATE: It works somehow! I just replaced libgl1-mesa-dri with libgl1-mesa-swx11 and now it's possible to run RViz remotely - ssh compression is really necessary :) FPS on local machine is around 10 which is better than nothing. Originally posted by ZdenekM on ROS Answers with karma: 704 on 2014-02-03 Post score: 2 Original comments Comment by mikepurvis on 2014-02-04: If this is just for a demo, consider using a remote desktop solution— eg, VNC, TeamViewer, etc. If necessary, run a secondary non-headless machine alongside the robot to host the rviz desktop for the client to connect to. Comment by ZdenekM on 2014-02-19: Thanks for hint. But as far as I know VNC has problem with transferring OpenGL windows - am I right? Comment by po1 on 2014-02-20: This is not a real solution, but you could also consider setup something with Robot Web Tools (http://robotwebtools.org), that would only require a browser on the client side. A fully-fledged rviz is to my knowledge not yet available, though quite a few building blocks are there already. Comment by ZdenekM on 2014-02-23: Using web RViz would be awesome! But as you said - there is no fully-fledged solution. We will probably try to integrate components into one RViz-like solution but it will take (lot of) time...
Dear all, I am trying to write a simple rqt_plugin for ROS Groovy in Python. The plugin is located in a rosbuild package. My plugin is supposed to publish to a topic using data entered in the UI created with qt-designer. I already can start the UI to fill a visualization_msgs::Marker message with the according current data. I can also use my plugin both standalone (rosrun my_pkg my_plugin) as well as with rqt. However, after starting the pulugin, there is no ROS node initialized for it. Thus, also the topic is not advertised and I get an error when calling the publish() function of the Publisher I created in the plugin Error Message: rospy.exceptions.ROSException: ROS node has not been initialized yet. Please call init_node() first As I read in the tutorial, the plugin itself should not call init_node() as rqt is doing this. So where does this initialization happen? Do I need to overload a certain function? My plugin is derived from rqt_gui_py.plugin.Plugin. I use a separate my_plugin_widget class similar to the existing rqt_plugins (e.g. rqt_publisher). One thing, I found is that I need to set qt_gui_py::Plugin as the base_class_type within the plugin.xml <class name="MirorRGB" type="miror_rqt_gui.miror_rgb.MirorRGB" base_class_type="qt_gui_py::Plugin"> ... </class> Also, I need to have <export> <qt_gui plugin="${prefix}/plugin.xml"/> </export> in my manifest.xml in order to be able to find my plugin with rqt --list-plugins and to be able to start it. This is different from what the tutorials on the ROS wiki states where rqt_gu_py::Plugin is used in the plugin.xml and rqt_gui in the manifest.xml. I hope someone is able to help. If more information on my setup is needed, feel free to ask. Thanks! Originally posted by Felix Messmer on ROS Answers with karma: 198 on 2014-02-03 Post score: 0
I use Ubuntu 12.04 and ROS Fuerte. I want to install RGBD slam.I try above commends in my ros package path $svn co http://alufr-ros-pkg.googlecode.com/svn/trunk/rgbdslam_freiburg $rosdep update but while I type this command > rosdep install rgbdslam_freiburg I got these error ERROR: Rosdep cannot find all required resources to answer your query Missing resource rgbdslam_freiburg ROS path [0]=/opt/ros/fuerte/share/ros ROS path [1]=/opt/ros/fuerte/share ROS path [2]=/opt/ros/fuerte/stacks Originally posted by ghazaleh on ROS Answers with karma: 15 on 2014-02-04 Post score: 1
Hi what is the difference between catkin and rosbuild? In what kind of uses is one of them more preferable than the other? Originally posted by Hamid Didari on ROS Answers with karma: 1769 on 2014-02-04 Post score: 3
I'm trying to use the rosserial_arduino package with an Arduino Leonardo but I keep getting the error: [ERROR] Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino whenever I try to run the serial_node.py from the rosserial package... Can anybody please helpe me?! Thanks in advance ;) Originally posted by rflmota on ROS Answers with karma: 11 on 2014-02-04 Post score: 1 Original comments Comment by dornhege on 2014-02-04: So, what about the version mismatch in the error message? What code is on the arduino and what are you running on the ROS machine? The actual workspace might be relevant (i.e. one built from source, one from system) Comment by rflmota on 2014-02-04: I'm using the rosserial version pulled directly from the repository at rosserial @ GitHub and I'm using the Hydro distribution for ROS. About the Arduino code, I'm compiling the source code against the generated compiled ros_lib libraries generated by the command: rosrun rosserial_arduino serial_node.py ~/sketchbook/libraries
HI I don't know what happened I ran rviz very well but after 2 hours I can't run rviz when I type "rosrun rviz rviz" , I got this error : /opt/ros/hydro/lib/rviz/rviz: symbol lookup error: /opt/ros/hydro/lib/librviz.so: undefined symbol: _ZN3ros7console5printEPNS0_10FilterBaseEPvNS0_6levels5LevelEPKciS7_S7_z Originally posted by Hamid Didari on ROS Answers with karma: 1769 on 2014-02-04 Post score: 1
I want to change bellow parameter to Hector Salam map, How can i do that? FILENAME: DARK BLUE (RGB: 0, 44, 207) TEXT For example, “RoboCup2009-TeamName-Prelim1.tiff” displayed in the upper left corner to identify the map, make it sort properly in a directory, and findable on a computer. MAP SCALE: DARK BLUE (RGB: 0, 50, 140) TEXT AND EXACTLY 1 METER LONG LINE Display this in the upper right corner to indicate the scale of the map. MAP ORIENTATION: DARK BLUE (RGB: 0, 50, 140) TEXT (“X” AND “Y”) AND ABOUT 50 cm LONG ARROWS Display this next to the map scale. It gives the orientation for the victim location in the victim file. Must be a right-handed coordinate system: X points upwards, Y to the left. UNEXPLORED AREA GRID: LIGHT/DARK GREY (RGB: 226, 226, 227/RGB: 237, 237, 238) CHECKERBOARD WITH 100CM SQAURES This solid checkerboard pattern should show the unexplored area and provide scale on all sides of the mapped area. It should also print in black and white without ambiguity with other areas potentially turned grey in the process. EXPLORED AREA GRID: BLACK (RGB: 190,190,191) GRID WITH 50CM GRID AND ABOUT 1 CM THICK LINES (use a one pixel line in the map) This grid should only appear in the explored area, behind any walls, victim locations, or other information. The grid should be aligned with the checkerboard pattern of the unexplored area, but twice as fine to allow visual inspection of wall alignments. INITIAL ROBOT POSITION: YELLOW (RGB: 255, 200, 0) ARROW This should mark the initial pose of the robot and always be pointed toward the top of the map. WALLS AND OBSTACLES: DARK BLUE (RGB: 0, 40, 120) FEATURES This should indicate the walls and other obstacles in the environment. The color should make the walls stand out from everything else. SEARCHED AREA: WHITE CONFIDENCE GRADIENT (RGB: 128, 128, 128 to RGB: 255, 255, 255) This should be based on the confidence that the area is really free. It should produce a clean white when seen as free by all measurements and nearly untouched when undecided, that is, nearly equally seen as occupied as free, to produce a dither effect. CLEARED AREA: LIGHT GREEN CONFIDENCE GRADIENT (RGB: 180, 230, 180 to RGB: 130, 230, 130) This should be based on a history of 1-50 scans to show the area cleared of victims with confidence. This should also factor in the actual field of view and range of onboard victim sensors – noting that victim sensors don’t typically see through walls! VICTIM LOCATION: SOLID RED (RGB: 240, 10, 10) CIRCLE WITH ABOUT 35CM DIAM CONTAINING WHITE (RGB) TEXT “#” This should show the locations of victims with a victim identification number such as “1” in the order they were found. Additional information about this victim should be in the victim file noted below. HAZARD LOCATION: SOLID ORANGE (RGB: 255, 100, 30) DIAMOND WITH ABOUT 30CM SIDES CONTAINING WHITE (RGB) TEXT “#” This should show the locations of hazards with an identification number such as “1” in the order they were found. Additional information about this hazard should be in the hazard file noted below. QR CODE LOCATION: SOLID BLUE (RGB: 10, 10, 240) CIRCLE WITH ABOUT 35CM DIAM CONTAINING WHITE (RGB) TEXT “#” This should show the locations of QR codes with the QR code number such as “1” in the order they were found. The details about the QR code (such as the text coded in the pattern) must also be listed in the CSV-file. ROBOT PATH: MAGENTA (RGB: 120, 0, 140) LINE ABOUT 2 CM THICK This should show the robot path. Originally posted by programmer on ROS Answers with karma: 61 on 2014-02-04 Post score: 0
How can i save hector slam map online running on rviz in a *.tiff file.? i run bellow command but don't worked, why? rostopic pub syscommand std_msgs/String "savegeotiff" Originally posted by programmer on ROS Answers with karma: 61 on 2014-02-04 Post score: 0
I'm trying to use amcl to localize my robot using a bag file. Steps I do are these: Publishing the map: rosrun map_server map_server map.yaml Running amcl: rosrun amcl amcl scan:=base_scan _odom_frame:=odom_combided Playing the bag file: rosbag play small.bag Published topics are: /amcl/parameter_descriptions /amcl/parameter_updates /amcl_pose /base_odometry/odom /base_odometry/odometer /base_odometry/state /base_scan /clock /initialpose /map /map_metadata /move_base_simple/goal /particlecloud /robot_pose_ekf/odom_combined /rosout /rosout_agg /tf /tilt_scan /torso_lift_imu/data /torso_lift_imu/is_calibrated But amcl node prints out this message continuously: [ WARN] [1391522838.082207618]: No laser scan received (and thus no pose updates have been published) for 1391522838.082082 seconds. Verify that data is being published on the /base_scan topic. And /amcl_pose publishes nothing. rxgraph output: Originally posted by maysamsh on ROS Answers with karma: 139 on 2014-02-04 Post score: 0 Original comments Comment by Procópio on 2014-02-06: can you post your tf tree? Comment by hawesie on 2014-06-02: It's not just a typo odom_combided != odom_combined?
I'm trying to compile ROS on a Raspberry Pi (Raspbian) following these Debian installation instructions and got to the point to compile ROS, which fails at compiling opencv with undefined reference to 'header': [ 97%] Built target opencv_videostab [ 98%] Built target opencv_haartraining_engine Linking CXX executable ../../bin/opencv_createsamples ../../lib/libopencv_highgui.so.2.4.6: undefined reference to `header' collect2: ld returned 1 exit status make[2]: *** [bin/opencv_createsamples] Error 1 make[1]: *** [apps/haartraining/CMakeFiles/opencv_createsamples.dir/all] Error 2 make: *** [all] Error 2 <== Failed to process package 'opencv2': Command '/home/ilagi/ros_catkin_ws/install_isolated/env.sh make -j1 -l1' returned non-zero exit status 2 I googled to try to figure out what header file might be missing, but unfortunately didn't get anywhere. I hope somebody will have an idea about at least the directions to go from here. Thanks Originally posted by evk02 on ROS Answers with karma: 218 on 2014-02-04 Post score: 0
After upgrading today: rosrun rviz rviz /home/dereck/Dropbox/ros/hydro/catkin/devel/lib/rviz/rviz: symbol lookup error: /home/dereck/Dropbox/ros/hydro/catkin/devel/lib/librviz.so: undefined symbol: _ZN3ros7console5printEPNS0_10FilterBaseEPN7log4cxx6LoggerENS0_6levels5LevelEPKciS9_S9_z any thoughts? Ubuntu 13.04 & hydro Originally posted by Dereck on ROS Answers with karma: 1070 on 2014-02-04 Post score: 0
I installed ros hydro full desk top version. I have been trying to install the rosserial package, rosserial_xbee in particular, but failed. The error prompted in the terminal reads" unable to locate the package"? Does any have suggestions? Thanks! Originally posted by yading on ROS Answers with karma: 3 on 2014-02-04 Post score: 0 Original comments Comment by ahendrix on 2014-02-04: What is the exact command that you're trying to run? Comment by yading on 2014-02-05: Hi Ahendrix. The command I run was "sudo apt-get install rosserial_xbee".
After runing a slam algorithm I receaved a big map and I dlike to make it smaller- I'd like to use only data that are in 3-5 m around. Is there possibility of deleting a node from octomap graph representing a too far point? Originally posted by Wilk on ROS Answers with karma: 67 on 2014-02-04 Post score: 1
EDIT: Solved, working rosserial connection between the pi and arduino following the instructions on http://wiki.jigsawrenaissance.org/ROS_on_RaspberryPi With both a Raspberry Pi Model A & B, I successfully installed ros hydro following the ros wiki ROSberryPi/Setting up Hydro on RaspberryPi but I haven't successfully installed rosserial yet. I've tried following the 1.1 Broken Packages section with the following commands: $ cd ~/ros_catkin_ws/src $ git clone https:// github.com/ros-drivers/rosserial $ cd .. $ rosdep install --from-paths src --ignore-src --rosdistro hydro -y --os=debian:wheezy But rosdep fails here saying: pi@rpiA ~/ros_catkin_ws $ rosdep install --from-paths src --ignore-src --rosdistro hydro -y --os=debian:wheezy executing command [sudo apt-get install -y ros-hydro-nav-msgs] Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ros-hydro-nav-msgs ERROR: the following rosdeps failed to install apt: command [sudo apt-get install -y ros-hydro-nav-msgs] failed I'm trying to get an idea of what steps I could take to fix this, not sure where to start. EDIT - 2/5/2014 00:11 Following suggestion to add missing packages (well I feel silly) $ git clone https:// github.com/ros/common_msgs.git $ cd .. $ rosdep install --from-paths src --ignore-src --rosdistro hydro -y --os=debian:wheezy ... executing command [sudo apt-get install -y ros-hydro-tf] Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ros-hydro-tf ERROR: the following rosdeps failed to install apt: command [sudo apt-get install -y ros-hydro-tf] failed One down, tf next $ git clone https:// github.com/ros/geometry ... fail tf2 Then tf2... $ git clone https:// github.com/ros/geometry-experimental $ cd .. $ rosdep install --from-paths src --ignore-src --rosdistro hydro -y --os=debian:wheezy ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: tf2_bullet: No definition of [bullet] for OS version [wheezy] Okay, this is a new one for me, in progress... EDIT 3/13 See top Originally posted by Elucidation on ROS Answers with karma: 13 on 2014-02-04 Post score: 0
Following my last question, No laser scan recieved still nothing is published by /amcl_pose and roswtf out is: WARNING The following node subscriptions are unconnected: * /amcl: * /initialpose Found 5 error(s). ERROR Communication with [/amcl] raised an error: ERROR Communication with [/play_1391569963540725368] raised an error: ERROR Communication with [/rosout] raised an error: ERROR Communication with [/map_server_1391569952840022254] raised an error: ERROR The following nodes should be connected but aren't: * /amcl->/amcl (/tf) * /play_1391569963540725368->/amcl (/base_scan) * /play_1391569963540725368->/map_server_1391569952840022254 (/clock) * /play_1391569963540725368->/amcl (/clock) * /map_server_1391569952840022254->/rosout (/rosout) * /amcl->/rosout (/rosout) * /play_1391569963540725368->/rosout (/rosout) * /play_1391569963540725368->/amcl (/tf) * /play_1391569963540725368->/play_1391569963540725368 (/clock) What's the problem? Originally posted by maysamsh on ROS Answers with karma: 139 on 2014-02-04 Post score: 1
hey community, im a ROS beginner, and my question is how can i publish a char manualy in a rostopic? i have published a string with rostopic pub -1 my_topic std_msgs/String x but the comand rostopic pub -1 my_topic std_msgs/Char x fails edit: when i try: fhduser@fhduser:~/catkin_ws/src/sekuria$ rostopic pub -1 my_topic std_msgs/Char a i get: [WARN] [WallTime: 1391591690.683859] Inbound TCP/IP connection failed: global name '_x' is not defined when i try: fhduser@fhduser:~/catkin_ws/src/sekuria$ rostopic pub -1 my_topic std_msgs/Char data: a i get: ERROR: Too many arguments: Given: [{'data': None}, 'a'] Expected: ['data'] Args are: [data] Originally posted by sonyfuchs on ROS Answers with karma: 5 on 2014-02-04 Post score: 0
Hi i downloaded bagefile from mit stata center data set for testing fovis package. for kinect data(mono depth). fovis subscribing from this topices: /camera/rgb/image_rect /camera/depth_registered/image_rect /camera/rgb/camera_info /camera/depth_registered/camera_info but MIT bage file has this packages: /camera/depth/camera_info /camera/depth/image_raw /camera/rgb/camera_info /camera/rgb/image_raw i used this command to play bagfiles: rosbag play 2012-04-26-06-48-00.bag. so, what i do for solve this problem? Originally posted by Mahyar on ROS Answers with karma: 18 on 2014-02-04 Post score: 0
Hi I have a node like the laser_filter, amcl or move base with many parameters. Using a launch file allows me to store the parameters within a yaml file like: <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen"> <rosparam file="$(find cfg_pkg)/cfg/common_costmap.yaml" command="load" ns="global_costmap" /> <rosparam file="$(find cfg_pkg)/cfg/common_costmap.yaml" command="load" ns="local_costmap" /> <rosparam file="$(find cfg_pkg)/cfg/global_costmap.yaml" command="load" /> <rosparam file="$(find cfg_pkg)/cfg/local_costmap.yaml" command="load" /> <rosparam file="$(find cfg_pkg)/cfg/base_local_planner.yaml" command="load" /> </node> But I like to start the node directly but how are the options to load parmater files? Using the using the underline like with normal parameters are not working? I am looking for something like: rosrun move_base move_base _load:=????? # Greetings Originally posted by Markus Bader on ROS Answers with karma: 847 on 2014-02-04 Post score: 0 Original comments Comment by dornhege on 2014-02-05: Actually one simple trick depending on what you want to do is: Run the launch file once (that loads all parameters correctly like you set it up) and the just run the node. The parameters from the launch stay on the param server.
Why nodelets are required? What are the advantages/disadvantages of it over normal nodes? I have gone through the tutorial http://wiki.ros.org/kobuki/Tutorials/Kobuki%27s%20Control%20System#Overview Can anyone tell me what are the procedure to implement a velocity command multiplexer with normal nodes (for P3AT)? Suppose, I have added mux.yaml (http://wiki.ros.org/yocs_cmd_vel_mux) and in the move_base.launch file , I include one more line: rosparam file="$(find usarsim_inf)/mux.yaml" command="load" So, whenever,I launch move_base.launch ; mux.yaml get loaded. But how I come to know that teleop and autonomous_behavior consult with this mux.yaml? I am using P3AT on ROS fuerte on Ubuntu 10.04. Thank you for any help. I have added a launch file which is in accordance with the ANSWER: <launch> <node pkg="nodelet" type="nodelet" name="nodelet_manager" args="manager"/> <node pkg="nodelet" type="nodelet" name="mobile_base_nodelet_manager" args="manager"/> <node pkg="nodelet" type="nodelet" name="cmd_vel_mux" args="load cmd_vel_mux/CmdVelMuxNodelet mobile_base_nodelet_manager"> <param name="yaml_cfg_file" value="$(find turtlebot_bringup)/param/mux.yaml"/> <remap from="cmd_vel_mux/output" to="mobile_base/commands/velocity"/> </node> </launch> Question : Is there any material which explains in detail about How Kobuki's control system use nodelets to switch among different controllers? command to bring nodelet_manager and velocity_multiplexer roslaunch cmd_vel_mux standalone.launch and following is the example_cfg.yaml subscribers: name: "Teleoperation" topic: "teleop_cmd_vel" timeout: 0.3 priority: 10 name: "Navigation" topic: "cmd_vel" timeout: 0.1 priority: 0 UPDATED PART BELOW What is the role of yocs_velocity_smoother? I have tried to set the timeout as follows: slow down (Navigation) : 0.1 (timeout is less, means teleoperation will take over) speed up (teleoperation): 8 (we will wait longer amount of time.) Even if the outcome is poor, autonomous navigation try to take over the control. Why autonomous doesn't wait for 8 seconds? If it goes like this then adding dynamic reconfigure server will not be fruitful for my experiment. What may be the reason that the robot is not following exactly the example_cfg.yaml? Is it yocs_cmd_vel is for only Kobuki control system? Originally posted by RB on ROS Answers with karma: 229 on 2014-02-05 Post score: 2 Original comments Comment by ahendrix on 2014-04-08: You've specified a timeout of 0.8 seconds... not sure why you're expecting that to be 8 seconds. Comment by RB on 2014-04-08: @ahendrix, I want to give more priority to teleoperation. Before declaring the /teleop_cmd_vel to be inactive topic for multiplexing, I want the timeout period to be more. So, that autonomous navigator of ROS will not snatch away the driving control. But, I am not getting the proper behavior that I am expecting. The autonomous controller snatch away the control before the 0.8 second (after setting the goal through rviz) Comment by RB on 2014-04-09: @ahendrix, I have updated the question. Comment by ahendrix on 2014-04-09: yes. yes I see. Perhaps you can check out output rate from your teleop node? It may be timing out because the teleop isn't transmitting fast enough. Comment by RB on 2014-04-19: @ahendrix, I have made the timeout parameter of teleoperation to be 180 seconds that is 2 minutes, but still the robot is not smoothly following the commands of teleoperation. I will add a video, then you may have a good idea about the whole scenario. What may be the reason behind this? Comment by RB on 2014-04-20: @ahendrix, I have added a new question http://answers.ros.org/question/155326/proper-working-of-cmd_vel_mux-for-velocity-multiplexing/
If a speaker for ROS were invited to a conference in US or Europe, would someone be able to give a presentation ? Would the speaker be able to get themselves somewhere or would travel need to be provided ? Originally posted by uaflyer on ROS Answers with karma: 81 on 2014-02-05 Post score: 0
I created a launch file that contains: <launch> <param name="/use_sim_time" value="true"/> <node pkg="map_server" type="map_server" name="map_server_node" args="/home/maysam/fuerte_workspace/sandbox/mit/map.yaml"/> </launch> But the output is: ERROR: cannot launch node of type [map_server/map_server]: can't locate node [map_server] in package [map_server] I can run the node manually and successfully: rosrun map_server map_server /home/maysam/fuerte_workspace/sandbox/mit/map.yaml Originally posted by maysamsh on ROS Answers with karma: 139 on 2014-02-05 Post score: 2 Original comments Comment by bvbdort on 2014-02-05: what command you are using to run launch file ? Comment by maysamsh on 2014-02-06: roslaunch myfile.launch Comment by dido_yf on 2014-12-18: hello, I have exactly the same problem with you. Did you solve this problem? Could you tell me how?
hi, I interact with dynamixel motors using dynamixel_controllers. Is it possible to make the servos sending feedback at different rates ? For example i want the legs of the robot to send feedback more often than the arms. In manager.launch i can set the rate for all motors in one serial connection but i can't set different rates for motors inside the same serial connection. Thanks in advance Originally posted by sertar on ROS Answers with karma: 3 on 2014-02-05 Post score: 0
I have written a node, with the roscpp client, that subscribes to an image topic, and than publishes to another image topic. It takes a raw image from the webcam, and then thresholds it and publish it. I have made it through two different ways. The first one i used global variables (kind of ugly), In the second way, i made a class, which is a cleaner way. Howerver, the publish rate in the second way is slow. the first way i called limiter1, the second limiter2. the limiter1 node, publishes the images at a really good average, using rostopic hz the average gives me the 30hz i would expect. the limiter2 on the other hand, publishes at a maximum of 15hz. Is this right?, i am not an expert, so is it known that using classes will decrease the efficiency? and why so much? I do not believe that the algorithms i am using are slow (using opencv), i used the same algorithms(algorithms for the processing of the image) in both cases. If i do not use the ros::Rate::sleep function on the limiter1 node, for example, the publish rate goes to 600hz and more. thanks for any help, if someone wishes to see the codes, i will post the two ones. Originally posted by Edno on ROS Answers with karma: 46 on 2014-02-05 Post score: 1 Original comments Comment by Dirk Thomas on 2014-02-05: For better feedback you might consider to share the code e.g. in a GitHub repo.
Hi, I'm going through the ROS tutorials and am stuck at creating a workspace (http://wiki.ros.org/catkin/Tutorials/create_a_workspace). When I try and run catkin_make, I keep getting the following ImportError: "from catkin_pkg.package import parse_package" failed: No module named catkin_pkg.package Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH. CMake Error at /opt/ros/hydro/share/catkin/cmake/safe_execute_process.cmake:11 (message): execute_process(/home/shivam/Enthought/Canopy_64bit/User/bin/python "/opt/ros/hydro/share/catkin/cmake/parse_package_xml.py" "/opt/ros/hydro/share/catkin/cmake/../package.xml" "/home/shivam/catkin_ws/build/catkin/catkin_generated/version/package.cmake") returned error code 1 Call Stack (most recent call first): /opt/ros/hydro/share/catkin/cmake/catkin_package_xml.cmake:63 (safe_execute_process) /opt/ros/hydro/share/catkin/cmake/all.cmake:142 (_catkin_package_xml) /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:20 (include) CMakeLists.txt:52 (find_package) -- Configuring incomplete, errors occurred! Invoking "cmake" failed However, catkin_pkg is installed AND on my PYTHON PATH echo $PYTHONPATH /opt/ros/hydro/lib/python2.7/dist-packages:/usr/share/pyshared/catkin_pkg Also, EXTREMELY SORRY that I fail at pasting dialog from the terminal on here. Originally posted by mr_d on ROS Answers with karma: 166 on 2014-02-05 Post score: 4
I have a dialogue classifier that I have implemented in ros and I want to test it on the NAO robot. Is it possible to use the simulation of the NAO provided by rviz? does rviz allow me to subscribe to the nodes of the simulated robot to access data being publihsed by other nodes in my package? I am using ros hydro on ubuntu 12.04.4. Originally posted by uzair on ROS Answers with karma: 87 on 2014-02-05 Post score: 0