instruction
stringlengths
40
28.9k
I am trying to use a package that someone else made. I placed it inside the src folder, then I ran catkin_make in the catkin_ws folder. The output was: Base path: /home/gabriel/catkin_ws Source space: /home/gabriel/catkin_ws/src Build space: /home/gabriel/catkin_ws/build Devel space: /home/gabriel/catkin_ws/devel Install space: /home/gabriel/catkin_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/gabriel/catkin_ws/build" #### #### #### Running command: "make -j4 -l4" in "/home/gabriel/catkin_ws/build" #### [ 25%] Built target odom_sim_2 [ 50%] [ 75%] Built target tb_tf_can2 [100%] Built target fake_localiza2 Built target sendToGoalManually2 Then I tried to launch one of the launch files included: roslaunch tb_tables tb_tables.launch and I get the following message: [tb_tables.launch] is neither a launch file in package [tb_tables] nor is [tb_tables] a launch file name Would anyone be kind enough to point out my mistakes? I just started with ROS and I am not sure why it ain't working :( Thanks in advance. EDIT: -Does the file actually exists? Yes, the file is in the launch folder. -Did you source the setup.bash file? Do you mean source /opt/ros/hydro/setup.bash ? Yes, I did. -What does rospack find tb_tables output? [rospack] Error: stack/package tb_tables not found After using source /home/gabriel/catkin_ws/devel/setup.bash I can find it with rospack find. Now it works, Thank you very much. Originally posted by Elvish Champion on ROS Answers with karma: 165 on 2014-03-23 Post score: 16 Original comments Comment by schultza on 2014-07-31: Got the same problem but this didnt help still the same error. Comment by alonzo98 on 2018-01-17: I've got the same problem for days but the answer is the same, could you tell me if you found the answer please? Comment by jayess on 2018-01-26: @alonzo98 why don't you ask a new question and reference this one? The question is almost four years old after all...
Hi guys here is a error installing ros_lib any help will appreciated. I'm new with Ros and Ubuntu. @administrator:/home$ rosrun rosserial_arduino make_libraries.py /sketchbook/libraries/ Exporting to /sketchbook/libraries Traceback (most recent call last): File "/opt/ros/hydro/share/rosserial_arduino/make_libraries.py", line 87, in shutil.copytree(rosserial_arduino_dir+"/src/ros_lib", path+"/ros_lib") File "/usr/lib/python2.7/shutil.py", line 175, in copytree os.makedirs(dst) File "/usr/lib/python2.7/os.py", line 150, in makedirs makedirs(head, mode) File "/usr/lib/python2.7/os.py", line 150, in makedirs makedirs(head, mode) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/sketchbook' Ubuntu 12.04 ros-hydro I also try sudo su and them rosrun and here is the error: juanquy@administrator:/home$ sudo su [sudo] password for juanquy: root@administrator:/home# rosrun rosserial_arduino make_libraries.py /home/sketchbook/librariesrosrun: command not found Originally posted by juanquy on ROS Answers with karma: 55 on 2014-03-23 Post score: 0
*Hi all , I am running Ubuntu 13.04 and I cannot install image_view using rosdep install image_view. It returns the following : ERROR: Rosdep cannot find all required resources to answer your query Missing resource image_view ROS path [0]=/opt/ros/hydro/share/ros ROS path [1]=/home/nyan/catkin_ws/src ROS path [2]=/opt/ros/hydro/share ROS path [3]=/opt/ros/hydro/stacks Can anyone help me to solve this error? Thanks a lot in advance. * Originally posted by manaXmizery on ROS Answers with karma: 41 on 2014-03-23 Post score: 0
how to do i use the HOKUYO laser scan RVIZ program in the workstation when the another laptop is in the turtle bot is using Ubuntu 12.04 hydro program to run . Originally posted by Rizwan on ROS Answers with karma: 3 on 2014-03-23 Post score: 0 Original comments Comment by Rizwan on 2014-03-23: any doubt please ask i will reply tanks
Hello, I followed the tutorial from here as I had the same problem and it still does not work. My lsusb still have that output : ros@ros-K56CM:~$ lsusb Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 008: ID 22b8:7090 Motorola PCS Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 003 Device 011: ID 1d27:0601 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 13d3:5165 IMC Networks I install the driver for V1.5 and I'm using the openni_camera package rollback usb. Still I have that error when I try roslaunch openni_launch openni.launch Warning: USB events thread - failed to set priority. This might cause loss of data... terminate called after throwing an instance of 'openni_wrapper::OpenNIException' what(): unsigned int openni_wrapper::OpenNIDriver::updateDeviceList() @ /home/ros/catkin_ws/src/openni_camera/src/openni_driver.cpp @ 125 : enumerating image nodes failed. Reason: One or more of the following nodes could not be enumerated: Image: PrimeSense/SensorV2/5.1.2.1: USB transfer timeout! [FATAL] [1395670174.772256226]: Service call failed! [FATAL] [1395670174.772255542]: Service call failed! [FATAL] [1395670174.772256770]: Service call failed! [FATAL] [1395670174.772728833]: Service call failed! Any help is appreciated. Originally posted by Maya on ROS Answers with karma: 1172 on 2014-03-24 Post score: 0
Hello Community! Im currently working on a setup with MoveIt and an octomap being updated constantly, which works just fine, but now I need the robot to avoid the octomap points during planning and I just cant achieve it! The only way I've found so far to display the octomap was to download a Octomap Server, update it with PointCloud2 info and add the PointCloud2 Display at MoveIt, setting its topic to /octomap_point_cloud_centers. This visualization also works just fine, but how am I supposed to take octomap points into account when planning a trajectory? Those octomap points are just being ignored! Is there a way to display the Octomap with MotionPlanning or PlanningScene? How? Let me know if there is anything else I can provide to make my problem clearer! Thank you all! Originally posted by Thrmotta on ROS Answers with karma: 31 on 2014-03-24 Post score: 3
We are trying to create a 3D map of a room using the octomap_server with the Turtlebot. Has anyone had any success using octomap_server on Hydro? Is there anything in our main launch file that seems extremely wrong? When we run our launch files described below and receive an error: [octomap_server-19] process has died [pid 3571, exit code -4, cmd /opt/ros/hydro/lib/octomap_server/octomap_server_node /cloud_in:=/camera/depth_registered/points tf_static:=/tf __name:=octomap_server... We first launch: roslaunch turtlebot_bringup minimal.launch and then we launch our custom launch file being: <launch> <include file="$(find turtlebot_bringup)/launch/3dsensor.launch"> <arg name="scan_topic" value="/scan" /> </include> <node pkg="octomap_server" type="octomap_server_node" name="octomap_server"> <param name="resolution" value="0.05" /> <!-- fixed map frame (set to 'map' if SLAM or localization running) --> <param name="frame_id" type="string" value="/odom" /> <!-- maximum range to integrate (speedup!) --> <param name="sensor_model/max_range" value="5.0" /> <!-- data source to integrate (PointCloud2) --> <remap from="/cloud_in" to="/camera/depth_registered/points" /> <remap from="tf_static" to="/tf" /> </node> </launch> Before we had this error we used rviz. Fixed frame in rviz as: /odom PointCloud2 topic: /octomap_point_cloud_centers Note:unable to get anything but worked with the topic: /camera/depth_registered/points Thank you in advance! Originally posted by rexcummings on ROS Answers with karma: 1 on 2014-03-24 Post score: 0
Hello again, in my Program i use different classes with inheritance. Everything works fine until i end the process (Ctrl C). Then it throws the following error: terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >' what(): boost::lock_error The class structure is organized as follows: |---------------------------------------------------------| | AdditionalObject | |---------------------------------------------------------| |---------------------------------------------------------| | BaseObject | |---------------------------------------------------------| | boost::shared_ptr<AdditionalObject> m_additional_object | |---------------------------------------------------------| A | | |---------------------------------------------------------| | Object | |---------------------------------------------------------| I created a minimal example that reproduces that error: #include <ros/ros.h> // ***************************** class AdditionalObject ***************************** class AdditionalObject { public: AdditionalObject(); private: void timerCallback(const ros::TimerEvent& event); ros::NodeHandlePtr m_n; ros::Timer m_timer; }; AdditionalObject::AdditionalObject() { m_n = boost::shared_ptr<ros::NodeHandle>(new ros::NodeHandle()); m_timer = m_n->createTimer(ros::Duration(1), &AdditionalObject::timerCallback, this); } void AdditionalObject::timerCallback(const ros::TimerEvent &event) { std::cout << "beep" << std::endl; } // ******************************* class BaseObject ******************************* class BaseObject { public: BaseObject(boost::shared_ptr<AdditionalObject> additional_object); private: boost::shared_ptr<AdditionalObject> m_additional_object; }; BaseObject::BaseObject(boost::shared_ptr<AdditionalObject> additional_object) : m_additional_object(additional_object) { } // ********************************** class Object ********************************** class Object : public BaseObject { public: Object(boost::shared_ptr<AdditionalObject> additional_object); }; Object::Object(boost::shared_ptr<AdditionalObject> additional_object) : BaseObject(additional_object) { } // ********************************************************************************** // public variables boost::shared_ptr<Object> object; boost::shared_ptr<AdditionalObject> additional_object; int main(int argc, char **argv) { ros::init(argc, argv, "minimal_example"); ros::NodeHandle n; additional_object = boost::shared_ptr<AdditionalObject>(new AdditionalObject()); object = boost::shared_ptr<Object>(new Object(additional_object)); ros::spin(); return 0; } I'm using ROS Hydro on Kubuntu 12.04. Any help would be appreciated. Originally posted by Blizzard on ROS Answers with karma: 49 on 2014-03-24 Post score: 0
Hi I like to run a rosnode within a namespace but without roslaunch. I have to find a problem related to a multi-robot scenario because I use name spaces to start rosnotes for each robot. It looks like there is a problem with one node and I like to debug the node, so I like to start the node with a debugger but within a namespace. Is this possible? Greetings Originally posted by Markus Bader on ROS Answers with karma: 847 on 2014-03-24 Post score: 0
I try to save Octomap, it just save it as a quicksave.pcd and when I try to use pcd_viewer to view it says " quicksave.pcd [pcl::PCDReader::readHeader] HEIGHT given (1) but no WIDTH!" Also, the size is comparatively is very small (700 kb) while the other cloud map created is around 120 Mb. Can anyone tell me how can I decrease the size of the cloud map which is created. When I try to view it on my machine, it render very slowly. I know the accuracy will decrease but how can i control the size of the cloud map ? Originally posted by sha on ROS Answers with karma: 21 on 2014-03-24 Post score: 0 Original comments Comment by davinci on 2014-03-25: I think the PCL octree implementation is used. Not the Octomap server? Describe your software setup please.
Hello, I have been trying for a few days to run nao_driver package, with no sucess. I looked around for answers, but none of the solutions could help me. Aparently, Naoqi is set up correctly, since I can import it with "import naoqi" in python. However, when I try to run something like "LD_LIBRARY_PATH=~/nao/tools/pynaoqi-python-2.7-naoqi-1.14-linux64:$LD_LIBRARY_PATH NAO_IP=127.0.0.1 roslaunch nao_driver nao_driver_sim.launch" , I get the following errors: @florabranchi-Dell-System-XPS-15Z:~/nao/tools/pynaoqi-python-2.7-naoqi-1.14-linux64$ > LD_LIBRARY_PATH=~/nao/tools/pynaoqi-python-2.7-naoqi-1.14-linux64:$LD_LIBRARY_PATH NAO_IP=127.0.0.1 roslaunch nao_driver nao_driver_sim.launch ... logging to /home/florabranchi/.ros/log/c37b6108-b373-11e3-beca-848f69cd2cc7/roslaunch-florabranchi-Dell-System-XPS-15Z-7419.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 SUMMARY PARAMETERS * /nao_sensors/use_joint_sensors * /rosdistro * /rosversion NODES / 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) core service [/rosout] found process[nao_sensors-1]: started with pid [7437] process[nao_walker-2]: started with pid [7438] No handlers could be found for logger "rosout" process[nao_controller-3]: started with pid [7441] No handlers could be found for logger "rosout" process[nao_behaviors-4]: started with pid [7444] ================================================================================REQUIRED process [nao_sensors-1] has died! process has died [pid 7437, exit code 1, cmd /home/florabranchi/catkin_ws/src/nao_robot/nao_driver/nodes/nao_sensors.py --pip=127.0.0.1 --pport=9559 __name:=nao_sensors __log:=/home/florabranchi/.ros/log/c37b6108-b373-11e3-beca-848f69cd2cc7/nao_sensors-1.log]. log file: /home/florabranchi/.ros/log/c37b6108-b373-11e3-beca-848f69cd2cc7/nao_sensors-1*.log Initiating shutdown! ================================================================================ No handlers could be found for logger "rosout" cannot add process [nao_leds-5] after process monitor has been shut down No handlers could be found for logger "rosout" [nao_behaviors-4] killing on exit [nao_controller-3] killing on exit [nao_walker-2] killing on exit [nao_sensors-1] killing on exit I have tried force_python:=true and it still doesn't work :( It seems that the process just dies, and doesn't tell me the error. Are those "No handlers could be found for logger "rosout" normal? Does anyone have the same problem or can help me solving this? Thanks Originally posted by florabranchi on ROS Answers with karma: 1 on 2014-03-24 Post score: 0 Original comments Comment by AHornung on 2014-03-25: Is there a reason why you add the pynaoqi module path to your LD_LIBRARY_PATH? I think the path should only be in your PYTHONPATH, not LD_LIBRARY_PATH. Comment by AHornung on 2014-03-25: To (possibly) get more output, you could also try to run only the nao_sensors node: "rosrun nao_driver nao_sensors.py"
Hi all, I would like to perform object localization by tagging different objects in the environment and getting the pixel coordinates of those objects, which I can then convert to my robot coordinate frame using tf. I was looking for a library to do this and came across vision_visp which seems do exactly what I want. I am running ROS Groovy on Ubuntu 12.04 and I have installed ros-groovy-vision-visp. I am able to launch the client, tracker, viewer nodes albeit they don't do anything or die. I was wondering if there is any documentation or tutorial on how to get started using visp or any suggestions that you all can give on what my next step should be. Essentially, I want to grab an image from the camera which is pointed to an object having either QR code or any one of patterns that ViSP supports and get the pixel coordinates of that from the object_position topic published by the tracker. Thanks for your help. Originally posted by Sudarshan on ROS Answers with karma: 113 on 2014-03-24 Post score: 0
Since Hydro a new system is used for the costmaps. Unfortunately, documentation largely still needs to be updated, so it seems? I have gotten it nearly completely working. Properly, by using the plugins and proper namespaces in the .yaml files. Instead of using these topics in RVIZ: /move_base/local_costmap/obstacles /move_base/local_costmap/inflated_obstacles /move_base/local_costmap/robot_footprint As described here: http://wiki.ros.org/navigation/Tutorials/Using%20rviz%20with%20the%20Navigation%20Stack I think I have to visualize the footprint, obstacles and inflated obstacles all by using the costmaps themselves. My problem is however that I cant succeed to visualize the footprint (such a shown in this figure). Not in the old way () nor in the new way (as part of the local and/or global costmap). Moreover, the old methods (such as /move_base/local_costmap/inflated_obstacles) all don't work any more. My files are given below. What am I doing wrong? I tried all kind of stuff, like putting robot_radius under footprint_layer namespace, using the footprint parameter to specify a polygon instead, etc. All to no avail. Any help would be very much appreciated! costmap_common_params.yaml: robot_radius: 0.18 inflation_layer: inflation_radius: 0.50 obstacle_layer: observation_sources: scan scan: { data_type: LaserScan, topic: scan, marking: true, clearing: true, min_obstacle_height: 0.25, max_obstacle_height: 0.35 } global_costmap_params.yaml: global_costmap: global_frame: /map robot_base_frame: /base_footprint update_frequency: 1.0 publish_frequency: 0.5 static_map: true transform_tolerance: 0.5 plugins: - {name: footprint_layer, type: "costmap_2d::FootprintLayer"} - {name: static_map_layer, type: "costmap_2d::StaticLayer"} - {name: obstacle_layer, type: "costmap_2d::VoxelLayer"} - {name: inflation_layer, type: "costmap_2d::InflationLayer"} local_costmap_params.yaml: local_costmap: global_frame: /odom robot_base_frame: /base_footprint update_frequency: 5.0 publish_frequency: 2.0 static_map: false rolling_window: true width: 4.0 height: 4.0 resolution: 0.02 transform_tolerance: 0.5 plugins: - {name: footprint_layer, type: "costmap_2d::FootprintLayer"} - {name: obstacle_layer, type: "costmap_2d::VoxelLayer"} - {name: inflation_layer, type: "costmap_2d::InflationLayer"} Originally posted by koenlek on ROS Answers with karma: 432 on 2014-03-24 Post score: 2
Hi, I want to publish 10 images from my pictures folder..so that I added the link for that..code runs correctly but image is not displaying.. pub.cpp: #include <ros/ros.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <cv_bridge/cv_bridge.h> #include <image_transport/image_transport.h> #include <sensor_msgs/image_encodings.h> int main(int argc, char** argv) { ros::init(argc, argv, "image_publisher"); ros::NodeHandle nh; cv_bridge::CvImage cv_image; cv_image.image = cv::imread("/home/abi/Pictures/attachments/",CV_LOAD_IMAGE_COLOR); cv_image.encoding = "bgr8"; sensor_msgs::Image ros_image; cv_image.toImageMsg(ros_image); image_transport::ImageTransport it(nh); image_transport::Publisher pub = it.advertise("/static_image/compressed", 3); ros::Rate loop_rate(5); while (nh.ok()) { pub.publish(ros_image); loop_rate.sleep(); } } sub.cpp: #include <ros/ros.h> #include <image_transport/image_transport.h> #include <opencv/cv.h> #include <opencv/highgui.h> #include <cv_bridge/cv_bridge.h> void imageCallback(const sensor_msgs::ImageConstPtr& msg) { cv_bridge::CvImagePtr cv_ptr; try { cv_ptr = cv_bridge::toCvCopy(msg, "bgr8"); //ROS_INFO("Hi"); cv::imshow("view", cv_ptr->image); cvNamedWindow("view",CV_WINDOW_AUTOSIZE); } catch (cv_bridge::Exception& e) { ROS_ERROR("cv_bridge exception: %s", e.what()); return; } } int main(int argc, char **argv) { ros::init(argc, argv, "image_listener"); ros::NodeHandle nh; cvNamedWindow("view",CV_WINDOW_AUTOSIZE); image_transport::ImageTransport it(nh); image_transport::Subscriber sub = it.subscribe("/static_image/", 1,imageCallback); ros::spin(); cvDestroyWindow("view"); } Originally posted by Abinaya on ROS Answers with karma: 1 on 2014-03-24 Post score: 0
Hello, I've read somewhere that you can't use openni2 with pcl is that true ? I can't find any information that is not outdated. The thing is had trouble installing openni while openni2 works on my computer. Originally posted by Maya on ROS Answers with karma: 1172 on 2014-03-24 Post score: 0
I just wanted to update - upgrade the robot (with the usual sudo apt-get update && sudo apt-get upgrade) within the robot. Nonetheless it cannot be done since the robot cannot connect to "http://packages.willowgarage.com" it seems the server has been down since some time already (I tried last week too). Anyone has any workaround this? In my source files there is no packages.willowgarage.com. So I don't know who is calling this server. I copy the files next. In my source.list file: # deb http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise main restricted # deb http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise-updates main restricted # deb http:///ubuntu precise-security main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise main restricted deb-src http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise-updates main restricted deb-src http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise universe deb-src http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise universe deb http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise-updates universe deb-src http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise multiverse deb-src http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise multiverse deb http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise-updates multiverse deb-src http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse deb-src http://aptproxy.willowgarage.com/us.archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu precise partner # deb-src http://archive.canonical.com/ubuntu precise partner ## Uncomment the following two lines to add software from Ubuntu's ## 'extras' repository. ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. # deb http://extras.ubuntu.com/ubuntu precise main # deb-src http://extras.ubuntu.com/ubuntu precise main And in my /etc/apt/sources.list.d/ directory I have 3 files (pr2debs.list pr2debspr2.list rosdebs.list) and the mix of all is : deb http://packages.ros.org/pr2/ubuntu precise main deb http://packages.ros.org/pr2/ubuntu precise pr2 deb http://packages.ros.org/ros/ubuntu precise main Originally posted by silgon on ROS Answers with karma: 649 on 2014-03-25 Post score: 0
Hi everyone, I'm trying to find how to plot 3D data that represents a surface, over time. It should basically look like a grid surface that moves, in a 3d plot. I know this should be a simple task, does anyone have any ideas? PS: an equivalent of what I am trying to achieve is like the surf() function in MATLAB. Thank you, everyone. Originally posted by Haikal Pribadi on ROS Answers with karma: 103 on 2014-03-25 Post score: 1 Original comments Comment by Dirk Thomas on 2014-03-26: Just to clarify: rxplot as well as rqt_plot are both only plotting single numeric values over time. So neither of them will fit your needs. Comment by Haikal Pribadi on 2014-03-26: yep, I realized that after looking into it a little more. That was a bad example. I will edit my question, thanks :)
I want to write a driver for laser scanner and publish data on /scan topic. I write this code for initializing: sensor_msgs::LaserScan laser_data; laser_data.header.frame_id="laser"; laser_data.angle_max=((210.234375)/180)*M_PI; laser_data.angle_min=((-29.53125)/180)*M_PI; laser_data.angle_increment=(0.3515625/180)*M_PI; laser_data.header.stamp=ros::Time::now(); laser_data.scan_time=0.10000000149; laser_data.time_increment=9.76562732831e-05; laser_data.range_min=0.019999999553; laser_data.range_max=5.59999990463; laser_data.ranges.resize(682); and put my data on ranges array. I can see laser data in Rviz but when i used it for hector_slam , It's not worked and I saw this error: [ INFO] [1395750671.645863427]: lookupTransform base_link to laser timed out. Could not transform laser scan into base_frame. [ERROR] [1395750671.815635459]: Trajectory Server: Transform from /map to scanmatcher_frame failed: "map" passed to lookupTransform argument target_frame does not exist another warning that i saw in Rviz in Global Status box is : No tf data. Actual error: Fixed Frame [laser] does not exist This is my tf_tree when run hector_slam: When i try with urg_node , hector_slam worked correctly. This is the tf tree with urg_node: I used a Hokuyo 04LX laser scanner. Does anyone has any suggestion about this problem? Thank you Originally posted by mr.karimi on ROS Answers with karma: 52 on 2014-03-25 Post score: 0 Original comments Comment by BennyRe on 2014-03-25: This sounds more like a TF problem than an implementation problem of your driver. Investigate your TF tree and so on. Comment by timm on 2014-03-27: Is the TF broadcaster "/base_to_laser_broadcaster" the same in both cases? Is it a tf static_transform_publisher or a node you wrote yourself? Can you try to increase the publish rate for /base_to_laser_broadcaster? Comment by MiNiBot on 2015-11-14: I also got problem like this. Is there anyone can solve this? Thank a Lot
Hello, I'm using the arduino with rosserial and my code is the simplest one possible : #include <ros.h> #include <ros/time.h> #include <sensor_msgs/Imu.h> ros::NodeHandle nh; sensor_msgs::Imu imu_msg; ros::Publisher pub_imu( "/imu", &imu_msg); char frameid[] = "/imu"; void setup() { Serial.begin(57600); nh.initNode(); nh.advertise(pub_imu); imu_msg.header.frame_id = frameid; imu_msg.header.stamp=nh.now(); } void loop() { pub_imu.publish(&imu_msg); nh.spinOnce(); } And when I run it, I have that kind of error : [INFO] [WallTime: 1395754919.360506] ROS Serial Python Node [INFO] [WallTime: 1395754919.372573] Connecting to /dev/ttyUSB0 at 57600 baud [INFO] [WallTime: 1395754921.671875] Note: publish buffer size is 280 bytes [INFO] [WallTime: 1395754921.672177] Setup publisher on /imu [sensor_msgs/Imu] [ERROR] [WallTime: 1395754921.673737] Message from device dropped: message larger than buffer. So I can see that the message is considered too big by the PythonNode but it's empty and I'm using the standard IMU message. I'm using the Arduino duemilanove. How can I reduce the size of the message ? [EDIT] After some test, it mostly come from the fact that it's an IMU message. If I use a range type for example, it works. Is it just impossible to send IMU message type through libserial ? Should I use 3 Publisher to transport the message and create a node that send a Imu_msgs type after ? Thanks a lot. Originally posted by Maya on ROS Answers with karma: 1172 on 2014-03-25 Post score: 4 Original comments Comment by colidar on 2019-06-17: Thanks for sharing your code! Which imu are you using? I want to use my MPU9250 with arduino uno with rosserial but i dont geht any imu values when i check rostopic echo /imu. Do you know why?
Hello! I want to simulate the force control of robots using gazebo. But I don't know how to get the force information in gazebo. I can get the joint position and velocity by pr2_mechanism_model::RobotState. However, there is no function to get the joint effort. Thank you very much Originally posted by hannuaa on ROS Answers with karma: 11 on 2014-03-25 Post score: 0
Hi I have package that would distribute via "official" ubuntu package, I'm not familiar with bloom or launchpad, but as far as I understand correctly we can create "official" Ubuntu package via launchpad and bloom seems to generate directory/file structure that need to upload to launch pad system. If it is correct. Does anybody have using bloom to send packages to launchpad build firm? Originally posted by Kei Okada on ROS Answers with karma: 1186 on 2014-03-25 Post score: 2 Original comments Comment by atp on 2014-03-25: I don't know what launchpad is but bloom is the right tool to publish your package in the Debian repositories which will make it available in Ubuntu (and other Linux distributions based on Debian).
I'm playing with Kinfu in PCL, so I had to clone and compile the PCL trunk from bitbucket. However, one of my own packages does not compile anymore using catkin_make: /tmp/ccj7RxYq.s: Assembler messages: /tmp/ccj7RxYq.s:865: Error: no such instruction: `vfmadd312sd (%rbx,%rdi,8),%xmm5,%xmm4' [...] The file that the errors seem to be related to does not contain anything related to assembler code. The includes are: "Eigen/Dense", <pcl/kdtree/kdtree_flann.h>, and <pcl/search/organized.h>. When I restrict the compiler flags to -fopenmp -Wno-deprecated, it compiles fine. However, when adding -DNDEBUG -O3, the errors occur. Originally posted by atp on ROS Answers with karma: 529 on 2014-03-25 Post score: 0 Original comments Comment by MichaelKorn on 2014-03-25:\ What compiler (version) do you use? What CPU do you have? Comment by atp on 2014-03-26: Compiler: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5). CPU model name: Intel(R) Core(TM) i7-4770K.
Hi, I'm compiling rosmatlab by the TU Darmstadt from source using winros. I already got to install it correctly in a Ubuntu environment with "original" ROS installed and I also got winros working on Windows 7. Now I'm following the steps I did to install rosmatlab on the Ubuntu system and am faced with a command called catkin_make_isolated which is described in section 3 (ROS) in the linked document. Unfortunately, this command hasn't been rebuilt for winros and I don't even know how it actually differs from catkin_make. Can anybody tell me briefly what the differences are? Is it "easy" to find a workaround that works with catkin_make or should I take another approach on this? Every suggestion is well appreciated. Greets, Roberto Originally posted by bnm-rc on ROS Answers with karma: 22 on 2014-03-25 Post score: 0
I have a ROS package that depends on PCL. The package compiles without problems. However, when running the code, the following error appears: symbol lookup error: /home/andreas/baxter_ws/devel/lib/libaffordances_lib.so: undefined symbol: _ZN3pcl6search6KdTreeINS_8PointXYZEEC1Eb I assume that this is related to the KDTree class and wrong linking(?). The CMakeLists.txt and package.xml contain what is described here, http://wiki.ros.org/hydro/Migration#PCL, at the end of the section. Originally posted by atp on ROS Answers with karma: 529 on 2014-03-25 Post score: 0
I have a problem with my Turtlebot and amcl, but I don't know exactly how to describe it. I am working on a project that uses programming elements to direct a turtlebot from a remote computer over an internet connection. I use rosbridge server to direct the turtlebot. I can, for instance, perform simple tele-op in this way. I also want to remotely start the gmapping and amcl functions. I can use gmapping to make a map, and then in amcl load the map and even track it on rviz. That is where I have my problem. I can give amcl my start position, and then when I give it the goal position it doesn't go to the new place. I have gone through the turtlebot howto demos online. I can do all the three functions teleop, mapping, and amcl. In the demos in amcl I can set the start position, the goal position, and watch my turtlebot move from one to the other. I have used the launch file from amcl_demo.launch as the basis for my own launch file. In my application there is a central launch file called 'app_manager.launch'. It starts the app manager application. I then launch the amcl launch file as a rapp. This way I can launch an amcl rapp, a gmapping rapp, or a teleop rapp. The topic names for the rapps are all converted to '/app_manager/application/name' where 'name' is the name of the original topic. This means I have to send all my messages to '/app_manager/application/name' not '/name'. The name of my catkin package is 'tele_presence'. (My python code in 'tele_presence' minimal.launch loads maps and saves maps to the mongodb instance...) This is my 'app_manager.launch' file. It's part of my 'tele_presence' package. <launch> <arg name="rapp_lists" default="tele_presence/tele_presence_apps.rapps"/> <include file="$(find tele_presence)/launch/includes/app_manager_rocon.launch.xml"> <arg name="rapp_lists" value="$(arg rapp_lists)" /> </include> <include file="$(find rosbridge_server)/launch/rosbridge_websocket.launch"/> </launch> This is my 'navigate.launch' file. It's part of the 'navigate' rapp. <launch> <include file="$(find turtlebot_bringup)/launch/minimal.launch"/> <include file="$(find tele_presence)/launch/minimal.launch"/> <include file="$(find turtlebot_bringup)/launch/3dsensor.launch"> <arg name="rgb_processing" value="true" /> <arg name="depth_registration" value="false" /> <arg name="depth_processing" value="false" /> <!-- We must specify an absolute topic name because if not it will be prefixed by "$(arg camera)". Probably is a bug in the nodelet manager: https://github.com/ros/nodelet_core/issues/7 --> <arg name="scan_topic" value="/app_manager/application/scan" /> </include> <!-- Map server --> <include file="$(find tele_presence)/launch/manage_map.launch"/> <arg name="initial_pose_x" default="0.0"/> <!-- Use 17.0 for willow's map in simulation --> <arg name="initial_pose_y" default="0.0"/> <!-- Use 17.0 for willow's map in simulation --> <arg name="initial_pose_a" default="0.0"/> <include file="$(find turtlebot_navigation)/launch/includes/amcl.launch.xml"> <arg name="initial_pose_x" value="$(arg initial_pose_x)"/> <arg name="initial_pose_y" value="$(arg initial_pose_y)"/> <arg name="initial_pose_a" value="$(arg initial_pose_a)"/> <arg name="use_map_topic" value="true"/> </include> <include file="$(find turtlebot_navigation)/launch/includes/move_base.launch.xml"> <arg name="odom_topic" value ="/app_manager/application/odom" /> </include> </launch> The thing is, I can load a map that I created with the gmapping rapp into the amcl demo (the one with amcl_demo.launch from the howto wiki) and then direct the robot to navigate from a starting position to an ending position. Then I modify the amcl launch file and put it in my own rapp. There I can load the same map, and designate the same starting position (which seems to work) then when I designate a goal position (using '/app_manager/application/move_base_simple/goal') the robot doesn't move. If I track it on rviz the robot is shown, in the proper starting position with a little blue line that (it seems) connects to the end position. Blue line or no, the robot does not move. This is where my problem is. As for error messages, there may be some, and I will look on the two computers I'm using and provide them here at my next opportunity. I can also provide the actual rapp file and/or the rapp interface file if it is requested. Thank you for reading. Any help would be appreciated... EDIT 1: here's the only error messages I've been able to collect. [ERROR] [1395855033.643043530]: You must specify at least three points for the robot footprint, reverting to previous footprint. [ERROR] [1395855272.649858970]: Aborting because the robot appears to be oscillating over and over. Even after executing all recovery behaviors it says it's tried all recovery behaviors, but it has not in fact moved. Originally posted by david.c.liebman on ROS Answers with karma: 125 on 2014-03-25 Post score: 0 Original comments Comment by jihoonl on 2014-03-25: Is there any error message or log in terminal? Comment by david.c.liebman on 2014-03-26: I have edited the content of the question a little bit to include some error messages.
Hello, On the pr2 we couldn't access to the /tf topic. When launching the robot with robot.launch, we can see that : [robot_state_publisher-4] process has died [pid 23074, exit code -11 ( and we get a segmentation fault if we try to launch robot_state_publisher by ourselves) We followed http://wiki.ros.org/robot_state_publisher/Troubleshooting to try to see where the problem comes from: rosparam get robot_description don't give any errors but rosparam get robot_description_new is not find. As the wiki is old we don't know wich one is supposed to be called. The /tf was working properly some months ago : we were able to get the pr2 model in Rviz and to display the laser sensors (that need to be transformed in the relevant frame for display, in our understanding). One possible cause of the absence of /tf may be that we tried to update the pick and place demo (sudo apt-get install pr2-object-manipulation ; here is the related question on the mailing list : http://lists.willowgarage.com/pipermail/pr2-users/2014-January/001844.html ), which may have led to inconsistency between the updated dependancies and the rest of the system. Do you have any idea on what can be the cause, and of course, how to fix the problem ? Originally posted by scarlett on ROS Answers with karma: 170 on 2014-03-25 Post score: 1
Hi, I am running Ubunut 12.04 with ROS Groovy. Thanks a lot for all your help! Based on the comments below, I uninstalled and cleaned out Visp from my system (locate visp, libvisp, VISPConfig.cmake all returns nothing). As per Thomas suggestion, I tried to install ros-groovy-visp using apt-get and this gives me an error: ~)$ sudo apt-get install ros-groovy-visp Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: ros-groovy-visp : Depends: libfreenect0.0 but it is not going to be installed E: Unable to correct problems, you have held broken packages. This brings me back to the original problem I was having with a conflict between libfreenect0.0 and libfreenect-dev. ros-groovy-visp requires both of those, but trying to install libfreenect0.0 removes libfreenect-dev and vice versa. ~)$ ins libfreenect0.0 Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: libfreenect libfreenect-demos libfreenect-dev The following NEW packages will be installed: libfreenect0.0 0 upgraded, 1 newly installed, 3 to remove and 1 not upgraded. Need to get 27.5 kB of archives. After this operation, 209 kB disk space will be freed. Do you want to continue [Y/n]? Thanks again for all your help! Originally posted by Sudarshan on ROS Answers with karma: 113 on 2014-03-25 Post score: 2 Original comments Comment by jbinney on 2014-03-25: which branch of the vision_visp package are you trying to compile? make sure you're on the groovy-devel branch Comment by Sudarshan on 2014-03-26: Thanks for your reply. I was the groovy branch earlier, but I just tried with the groovy-devel branch and it gives me the same error. I get the same error with master branche. Is there any other way to get visp_auto_tracker installed and track QR code tags? Comment by jbinney on 2014-03-27: Which version of visp did you use? Did you install from debs? Comment by jbinney on 2014-03-27: make sure you're using the version of visp from debs here: http://www.irisa.fr/lagadic/visp/install-sdk.html Comment by Sudarshan on 2014-03-27: That link goes to a 404 not found. So VISP and vision_visp are two different things. I downloaded and built /installed the latest version of VISP from source from here: http://www.irisa.fr/lagadic/visp/download.html. My understanding is that vision_visp is the ROS package which interfaces with VISP. Comment by jbinney on 2014-03-27: Somehow a got added to the link. Try "http://www.irisa.fr/lagadic/visp/install-sdk.html". Comment by Sudarshan on 2014-03-31: I tried to install this but there seems to be conflict involving libfreenect0.0 and libfreenect-dev. Basically freenect (which is required by visp) wants both installed but they don't like each other and I'm not sure how to solve this. In any case, shouldn't building from source work? Comment by jbinney on 2014-03-31: I'm not sure what version the debs are, but might be that the source version of visp is too new to work with the ros package (just guessing though). Comment by Tim Sweet on 2014-04-07: I see that this all seems to be fixed in Hydro (the version of ROS after Groovy), is there any chance you can just upgrade to hydro? You can still use Ubuntu 12.04. Comment by Sudarshan on 2014-04-07: Unfortunetly, that is not an option right now because groovy is installed on 3 different computers which power our robot (meka) which has lot of custom software built based on groovy. Comment by Dirk Thomas on 2014-04-07: I would agree with @jbinney guess: You should not need to build any dependencies from source. If doing so you must ensure that you use either the exact same version (or something API compatible) which seems to be not the case according to your posted compile errors. You might want to remove the custom build version of VISP and install all dependencies from Debian packages. Comment by Fabien Spindler on 2014-04-08: What is your Ubuntu distro ? Comment by Sudarshan on 2014-04-08: I am running Ubuntu 12.04 with ROS Groovy. Comment by Fabien Spindler on 2014-04-08: I'm not able to reproduce your error on ubuntu 12.04 x64 with groovy. Prior my attempt, I have updated the package list: $ sudo apt-get update $ sudo apt-get install ros-groovy-visp $ sudo apt-cache depends libfreenect-dev libfreenect-dev Depends: libusb-1.0-0-dev Depends: libfreenect0.0 Conflicts: libfreenect-dev:i386 Comment by Sudarshan on 2014-04-08: It is baffling to me as well. I tried this on another computer and ros-groovy-visp installed fine. I also installed ros-groovy-vision-visp but it did not have visp_auto_tracker with it, which is what I really need. But, I can install vision_visp manually. I think I'll just have reinstall the OS. Comment by Thomas on 2014-04-10: I think you have additional repositories providing incompatible version of freenect. I would be you I would remove all the additional repository and/or look for which repository is providing the faulty package.
Hello All, I am using the laser_assembler package to generate a point cloud from the scans of a tilting Hokuyo laser scanner. However, I am struggeling to find an existing ROS package to filter out the reflections of the ground plane that is available/compiles under ROS Hydro on Ubuntu 13.04. I am aware that there are several established means of accomplishing this task. Unfortunately, none of the ones I came across seems to work under Hydro. This is what I have been looking at: laser_filters is available on Hydro, but does not come with a ground filter plugin by default. Does anyone know of a ground filter plugin that works on Hydro? The latest version of pr2_navigation_perception is for Groovy only and has not been migrated to Hydro. It uses the semantic_point_annotator, the launch file is ground_plane.xml. So far, I have successfully catkinized it but failed to compile it due to pcl header issues ua-ros-pkg is also outdated (rosbuild/Groovy). I catkinzed it, but also no luck after several hours of trying to get it compile on hydro. Another related post can be found here. As this is such a common task, I am reaching out to the community hoping that there is a solution out there. Thanks! Originally posted by Huibuh on ROS Answers with karma: 399 on 2014-03-25 Post score: 0
I follow the instruction on Skeleton Markers h*ttp://wiki.ros.org/skeleton_markers. Sorry I do not have the right to publish a link, but that package is so cool. However I encounter some problems (ROS Hydro + Ubuntu 12.10). When I install it, on command git checkout hydro-devel, it says fatal: Not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). I do not know what does it mean. But I can catkin_make the package... After installation, I try to run it. however the first method does not work for me, while the second method works well. UPDATE It works by following answers below. Thank you very much @Pi Robot. However there is a warning. I think it relates to the depth registration. You know, I cannot display registered RGB D image right now. As show in http://answers.ros.org/question/143871/no-register-data-from-kinect/ The log of catkin_make skeleton markers is listed below. The warning is in the last four lines. rical@rical-CF-19RHRAX1M:~/ros_kinect$ catkin_make Base path: /home/rical/ros_kinect Source space: /home/rical/ros_kinect/src Build space: /home/rical/ros_kinect/build Devel space: /home/rical/ros_kinect/devel Install space: /home/rical/ros_kinect/install Running command: "cmake /home/rical/ros_kinect/src -DCATKIN_DEVEL_PREFIX=/home/rical/ros_kinect/devel -DCMAKE_INSTALL_PREFIX=/home/rical/ros_kinect/install" in "/home/rical/ros_kinect/build" -- Using CATKIN_DEVEL_PREFIX: /home/rical/ros_kinect/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/hydro -- This workspace overlays: /opt/ros/hydro -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/rical/ros_kinect/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- catkin 0.5.81 -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 1 packages in topological order: -- ~~ - skeleton_markers -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'skeleton_markers' -- ==> add_subdirectory(skeleton_markers) -- Found GLUT: /usr/lib/i386-linux-gnu/libglut.so -- skeleton_markers: 1 messages, 0 services DEBUG variable catkin_INCLUDE_DIRS: /opt/ros/hydro/include;/usr/include DEBUG variable OpenNI_INCLUDE_DIRS: /usr/include/ni DEBUG variable GLUT_INCLUDE_DIRS: DEBUG variable orocos_kdl_INCLUDE_DIRS: /usr/include/eigen3;/opt/ros/hydro/include -- Configuring done -- Generating done -- Build files have been written to: /home/rical/ros_kinect/build Running command: "make -j4 -l4" in "/home/rical/ros_kinect/build" Scanning dependencies of target std_msgs_generate_messages_cpp Scanning dependencies of target std_msgs_generate_messages_py Scanning dependencies of target geometry_msgs_generate_messages_cpp Scanning dependencies of target geometry_msgs_generate_messages_py [ 0%] [ 0%] Built target geometry_msgs_generate_messages_py [ 0%] Built target std_msgs_generate_messages_cpp Built target geometry_msgs_generate_messages_cpp [ 0%] Built target std_msgs_generate_messages_py Scanning dependencies of target std_msgs_generate_messages_lisp Scanning dependencies of target geometry_msgs_generate_messages_lisp Scanning dependencies of target skeleton_tracker Scanning dependencies of target skeleton_markers_generate_messages_cpp [ 0%] [ 0%] Built target std_msgs_generate_messages_lisp Built target geometry_msgs_generate_messages_lisp [ 14%] Scanning dependencies of target skeleton_markers_generate_messages_lisp Generating C++ code from skeleton_markers/Skeleton.msg Scanning dependencies of target skeleton_markers_generate_messages_py [ 28%] [ 42%] Generating Lisp code from skeleton_markers/Skeleton.msg Generating Python from MSG skeleton_markers/Skeleton [ 57%] [ 57%] Built target skeleton_markers_generate_messages_lisp Generating Python msg init.py for skeleton_markers [ 57%] Built target skeleton_markers_generate_messages_py [ 57%] Built target skeleton_markers_generate_messages_cpp Scanning dependencies of target skeleton_markers_generate_messages [ 57%] Built target skeleton_markers_generate_messages [ 71%] [ 85%] [100%] Building CXX object skeleton_markers/CMakeFiles/skeleton_tracker.dir/src/KinectDisplay.cpp.o Building CXX object skeleton_markers/CMakeFiles/skeleton_tracker.dir/src/KinectController.cpp.o Building CXX object skeleton_markers/CMakeFiles/skeleton_tracker.dir/src/skeleton_tracker.cpp.o In file included from /home/rical/ros_kinect/src/skeleton_markers/src/KinectController.h:5:0, from /home/rical/ros_kinect/src/skeleton_markers/src/KinectController.cpp:4: /usr/include/ni/XnCppWrapper.h: In member function ‘XnStatus xn::SkeletonCapability::RegisterCalibrationCallbacks(xn::SkeletonCapability::CalibrationStart, xn::SkeletonCapability::CalibrationEnd, void*, void*&)’: /usr/include/ni/XnCppWrapper.h:7058:165: warning: call to ‘xnRegisterCalibrationCallbacks’ declared with attribute warning: This function is deprecated: Please use RegisterToCalibrationStart/Complete [enabled by default] /usr/include/ni/XnCppWrapper.h: In member function ‘XnStatus xn::PoseDetectionCapability::RegisterToPoseCallbacks(xn::PoseDetectionCapability::PoseDetection, xn::PoseDetectionCapability::PoseDetection, void*, void*&)’: /usr/include/ni/XnCppWrapper.h:7468:161: warning: call to ‘xnRegisterToPoseCallbacks’ declared with attribute warning: This function is deprecated: Please use PoseDetected and/or OutOfPose callbacks [enabled by default] /usr/include/ni/XnCppWrapper.h: In member function ‘XnStatus xn::Context::InitFromXmlFile(const XnChar*, xn::EnumerationErrors*)’: /usr/include/ni/XnCppWrapper.h:9533:114: warning: call to ‘xnInitFromXmlFile’ declared with attribute warning: This function is deprecated: Please use xnInitFromXmlFileEx() instead [enabled by default] /usr/include/ni/XnCppWrapper.h: In member function ‘XnStatus xn::Context::OpenFileRecording(const XnChar*)’: /usr/include/ni/XnCppWrapper.h:9548:61: warning: call to ‘xnContextOpenFileRecording’ declared with attribute warning: This function is deprecated: Please use xnContextOpenFileRecordingEx() instead [enabled by default] /home/rical/ros_kinect/src/skeleton_markers/src/KinectController.cpp: In member function ‘int KinectController::init(const char*, bool)’: /home/rical/ros_kinect/src/skeleton_markers/src/KinectController.cpp:108:46: warning: call to ‘xn::Context::OpenFileRecording’ declared with attribute warning: This function is deprecated: Use other overload! [enabled by default] /home/rical/ros_kinect/src/skeleton_markers/src/KinectController.cpp:117:44: warning: call to ‘xn::Context::InitFromXmlFile’ declared with attribute warning: This function is deprecated: Use other overload! [enabled by default] /home/rical/ros_kinect/src/skeleton_markers/src/KinectController.cpp:137:158: warning: call to ‘xn::SkeletonCapability::RegisterCalibrationCallbacks’ declared with attribute warning: This function is deprecated: Please use RegisterToCalibrationStart/Complete [enabled by default] /home/rical/ros_kinect/src/skeleton_markers/src/KinectController.cpp:147:115: warning: call to ‘xn::PoseDetectionCapability::RegisterToPoseCallbacks’ declared with attribute warning: This function is deprecated: Please use RegisterToPoseDetected/RegisterToOutOfPose instead [enabled by default] Linking CXX executable /home/rical/ros_kinect/devel/lib/skeleton_markers/skeleton_tracker [100%] Built target skeleton_tracker Originally posted by pinocchio on ROS Answers with karma: 101 on 2014-03-25 Post score: 0
Hi , I am learning turtlebot_simulator with gazebo. I am trying to write a listener in python to subscriber the topic of 'camera/rgb/image_raw'. But I have problems in getting the Image.data for it is uint8[], I want to know how can I translate it into a normal matrix or image which can be dealt with. Thank you! Originally posted by Consider1001 on ROS Answers with karma: 15 on 2014-03-25 Post score: 0
Hello everyone. I can't seem to be able to use Wire.h in arduino with the rosserial library. Each time I try, I get this message : [WARN] [WallTime: 1395811454.890221] Serial Port read returned short (expected 1 bytes, received 0 instead). [WARN] [WallTime: 1395811454.891349] Serial Port read failure: [ERROR] [WallTime: 1395803426.139769] Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino I admit, I have both groovy and hydro on my computer but I installed the ros library using rosserial in groovy with grovvy sourced and right now I'm using groovy and not hydro. Here are all the source and command I use on setup : alias groovy='source /opt/ros/groovy/setup.bash && source /home/ros/catkin_ws/devel/setup.bash && export EDITOR='nano' && export ROS_PACKAGE_PATH=/home/ros/catkin_ws/src:/opt/ros/groovy/share:/opt/ros/groovy/stacks' Hydro is thus not a factor and if I remove Wire.h from my arduino project the connection is successful and I can publish data. Any help in order to help sove this problem will be appreciate and rewarded with... heu... love <3. Thanks a lot. [EDIT for the comments] @billtecteacher What I mean is, for the error to be appear I have to had #include <Wire.h> at the begin of the code @balto I rebuild the ros_lib for groovy using cd <sketchbook>/libraries rm -rf ros_lib rosrun rosserial_arduino make_libraries.py . Originally posted by Maya on ROS Answers with karma: 1172 on 2014-03-25 Post score: 0 Original comments Comment by billtecteacher on 2014-03-25: what do you mean by adding wire and taking it out. Wondering if it the code associated with wire that is causing the problem and not wire.h? Comment by tonybaltovski on 2014-03-25: Do you rebuild the ros_lib for groovy? Comment by Maya on 2014-03-25: I edited the question to answer those questions. Comment by tonybaltovski on 2014-03-26: I use the Arduino Wire library with rosserial so I do not believe that is the error. Can you check the code on the Arduino? Comment by Maya on 2014-03-26: Well I ran in another problem and I suppressed hydro and reinstall groovy. I'll try reinstall rosserial_arduino and I'll tell if I still have that problem. But the code works fine without #include "Wire.h" and doesn't work with it. And it is the simplest publisher possible. I use nothing else.
Hi everyone, I am using Ubuntu 12.04 32-bit on VirtualBox. I just installed the rviz and tried to run it using "rosrun rviz rviz" command. But the followings will be shown and it doesn't start. How can I fix the issue? [ INFO] [1395806079.738572838]: rviz version 1.10.11 [ INFO] [1395806079.739463083]: compiled against OGRE version 1.7.4 (Cthugha) [ INFO] [1395806080.677327493]: OpenGl version: 2.1 (GLSL 1.2). Illegal instruction (core dumped) I may note that I enabled 3D acceleration before turning on the virtual machine, but the system details there is no sign of having a 128 MB graphics card. Also, I executed the following code, but rviz does not run yet: export LIBGL_ALWAYS_SOFTWARE=1 Thank you Originally posted by Warrior on ROS Answers with karma: 61 on 2014-03-25 Post score: 0 Original comments Comment by jbinney on 2014-03-25: Do other opengl applications work? Try apt-getting mesa-utils and running glxgears to make sure that a simple opengl application works. Comment by Warrior on 2014-03-26: No it doesn't run ... Illegal instruction (core dumped) What should I do? :(
I'm using ubuntu 12.04-LTS-armhf, and my target board is ODROID-XU. And I want to install ROS groovy on it. But when I tried to install by 'sudo apt-get install ros-groovy-ros-base' as in the installation tutorial. It just could not find the package. Originally posted by seongyun on ROS Answers with karma: 1 on 2014-03-25 Post score: 0 Original comments Comment by seongyun on 2014-03-25: I link the tutorial, http://wiki.ros.org/groovy/Installation/UbuntuARM
$ I am able to use the Python Nodes with the robot NAO using: $ export PYTHONPATH="$PYTHONPATH:$HOME/path/to/pynaoqi/" and $ roslaunch nao_driver nao_driver.launch force_python:=true nao_ip:=192.168.1.206 if I want to check which nodes are running: $ rosnode list and I obtained the next list: /nao_behaviors /nao_controller /nao_leds /nao_sensors /nao_speech /nao_tactile /nao_walker How can I start or launch the nao_camera, because I going to need the image since i work in Computer Vision? I tried with: $ roslaunch nao_driver nao_camera.launch nao_ip:=192.168.1.206 but I got the next error: (copy-paste of the terminal) pablo@pabloNao:~$ roslaunch nao_driver nao_camera.launch force_python:=true nao_ip:=192.168.1.206 ... logging to /home/pablo/.ros/log/1340b312-b510-11e3-9391-24b6fd11a455/roslaunch-pabloNao-6138.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://pabloNao:33756/ SUMMARY PARAMETERS /nao_camera/calibration_file_bottom /nao_camera/calibration_file_top /nao_camera/color_space /nao_camera/fps /nao_camera/resolution /rosdistro /rosversion NODES / nao_camera (nao_driver/nao_camera.py) ROS_MASTER_URI=XXX core service [/rosout] found process[nao_camera-1]: started with pid [6156] Traceback (most recent call last): File "/opt/ros/hydro/lib/nao_driver/nao_camera.py", line 38, in import camera_info_manager ImportError: No module named camera_info_manager ================================================================================REQUIRED process [nao_camera-1] has died! process has died [pid 6156, exit code 1, cmd /opt/ros/hydro/lib/nao_driver/nao_camera.py --pip=192.168.1.206 --pport=9559 __name:=nao_camera __log:=/home/pablo/.ros/log/1340b312-b510-11e3-9391-24b6fd11a455/nao_camera-1.log]. log file: /home/pablo/.ros/log/1340b312-b510-11e3-9391-24b6fd11a455/nao_camera-1*.log Initiating shutdown! [nao_camera-1] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done pablo@pabloNao:~$ I will really appreciate any advise, thank you! Originally posted by PabloM on ROS Answers with karma: 1 on 2014-03-26 Post score: 0 Original comments Comment by AHornung on 2014-03-26: Well, what's the error? Comment by PabloM on 2014-03-26: "No module named camera_info_manager". Is it correct the way I'm launching the nao_camera node? or I need to past some extra parameters? Comment by AHornung on 2014-03-26: Install the camera_info_manager_py package, e.g. "sudo apt-get install ros-hydro-camera-info-manager-py" for ROS Hydro. Did you manually check out the Nao packages or used the released pre-compiled versions (which should already install the dependency)? Comment by PabloM on 2014-03-26: I'm using the pre-compiled packages (sudo apt-get install ros-hydro-nao-robot) and not was installed the "camera-info-manager-py just the "camera-info-manager". And now with the image_view I can watch the retrieved image. Thank you so much Armin!
Hey there, I am trying to get control over a revolving joint (it is for a pan-tilt camera unit). So far I followed the tutorial but the suggested controller (effort_controllers/JointPositionController) apparently does not exist. The ROS-error is --> Could not load controller 'MY_CONTROLLER_NAME' because controller type 'effort_controllers/JointPositionController' does not exist. When I use the solution suggested by ROS --> "Use 'rosservice call controller_manager/list_controller_types' to get the available types" I get --> types: ['controller_manager_tests/EffortTestController', 'controller_manager_tests/MyDummyController', 'effort_controllers/JointTrajectoryController', 'joint_state_controller/JointStateController', 'position_controllers/JointTrajectoryController'] base_classes: ['controller_interface::ControllerBase', 'controller_interface::ControllerBase', 'controller_interface::ControllerBase', 'controller_interface::ControllerBase', 'controller_interface::ControllerBase'] It might be possible that I could use some other controller to achieve control over the revolving joint. Maybe the ''joint_state_controller/JointStateController'? However, I am still wondering why the tutorial suggests a controller which is not available. I am using ROS-hydro and my Gazebo version is 1.9.3. Any suggestions are very appreciated. Marcus Originally posted by Marcus on ROS Answers with karma: 164 on 2014-03-26 Post score: 4
I have read and test the manual of this package in hydro but I have several questions I hope you can help. 1. What do the RingColors node and nodelet do? There is no documentation in the package. 2. The 32e_points.launch file call the driver and the conversor in the same code but it still require the intern messages in topic /velodyne_packets (VelodyneScan.msg). Can I fuse these processes without the intern messages? Fusing the two nodelets in one? And now several questions about the nodelet TransformNode executing with rosrun nodelet nodelet standalone velodyne_pointcloud/TransformNode. 3. Which code is executed? /hydro/lib/libtransform_nodelet.so ? or /shared/velodyne_pointcloud/launch/transform_nodelet.launch? 4. Can I insert parameters such as frame_id? or the parameter are fixed? 5. TransformNode with frame_id=/velodyne is exactly the same process as cloud_node? 6. What is the frame_id? Is not a field in the message. But it is required for visualization with rviz. Thanks in advance Originally posted by marilia15 on ROS Answers with karma: 104 on 2014-03-26 Post score: 0
Hey everyone! I'm pretty much used to ROS by now, but I got an error while catkin_make-ing a package that I can't really solve although it appears simple. I get all these errors while trying to link with the libraries: CMakeFiles/data_input_output.dir/src/data_input_output.cpp.o: In function `main': data_input_output.cpp:(.text+0x71): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)' data_input_output.cpp:(.text+0xc5): undefined reference to `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&)' data_input_output.cpp:(.text+0x498): undefined reference to `ros::Rate::Rate(double)' data_input_output.cpp:(.text+0x4ee): undefined reference to `ros::NodeHandle::getParam(std::string const&, int&) const' data_input_output.cpp:(.text+0x54e): undefined reference to `ros::NodeHandle::getParam(std::string const&, double&) const' data_input_output.cpp:(.text+0x56c): undefined reference to `ros::spinOnce()' data_input_output.cpp:(.text+0x57a): undefined reference to `ros::Rate::sleep()' data_input_output.cpp:(.text+0x586): undefined reference to `ros::ok()' data_input_output.cpp:(.text+0x5af): undefined reference to `ros::Publisher::~Publisher()' data_input_output.cpp:(.text+0x5bd): undefined reference to `ros::Publisher::~Publisher()' data_input_output.cpp:(.text+0x5cb): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x5d9): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x5e7): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x5f5): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x600): undefined reference to `ros::NodeHandle::~NodeHandle()' data_input_output.cpp:(.text+0x64c): undefined reference to `ros::NodeHandle::~NodeHandle()' data_input_output.cpp:(.text+0x672): undefined reference to `ros::NodeHandle::~NodeHandle()' data_input_output.cpp:(.text+0x69b): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x6cd): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x6f4): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x726): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x74d): undefined reference to `ros::Subscriber::~Subscriber()' CMakeFiles/data_input_output.dir/src/data_input_output.cpp.o:data_input_output.cpp:(.text+0x77f): more undefined references to `ros::Subscriber::~Subscriber()' follow CMakeFiles/data_input_output.dir/src/data_input_output.cpp.o: In function `main': data_input_output.cpp:(.text+0x7ff): undefined reference to `ros::Publisher::~Publisher()' data_input_output.cpp:(.text+0x835): undefined reference to `ros::Publisher::~Publisher()' data_input_output.cpp:(.text+0x8aa): undefined reference to `ros::Publisher::~Publisher()' data_input_output.cpp:(.text+0x8bc): undefined reference to `ros::Publisher::~Publisher()' data_input_output.cpp:(.text+0x8ce): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x8e0): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x8f2): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x904): undefined reference to `ros::Subscriber::~Subscriber()' data_input_output.cpp:(.text+0x913): undefined reference to `ros::NodeHandle::~NodeHandle()' and some more... The problem appears to be with the linker that doesn't identify the catkin libraries. However, inside my CMakeLists/txt I have the following: add_executable(data_input_output src/data_input_output.cpp) target_link_libraries(data_input_output ${catkin_LIBRARIES}) add_dependencies(data_input_output localization_gencpp) add_library(field_model src/field_model.cpp) # adding the field_model as a library target_link_libraries(field_model ${catkin_LIBRARIES}) add_dependencies(field_model localization_gencpp) add_executable(particle_filter_localization src/particle_filter_localization.cpp) target_link_libraries(particle_filter_localization ${catkin_LIBRARIES}) target_link_libraries(particle_filter_localization ${gsl_LIBRARIES} ${GSLCBLAS_LIBRARY}) target_link_libraries(particle_filter_localization field_model) #link this executable with the field_model library add_dependencies(particle_filter_localization localization_gencpp) (the above executable that presents the errors is data_input_output.cpp, the others appear not to have problems...) Any ideas why I still get that error? Thanks, Sotiris Originally posted by sotirios on ROS Answers with karma: 43 on 2014-03-26 Post score: 1 Original comments Comment by Luczia on 2015-01-11: I had the same error. For me, the problem was the following missing line in my CMakeList.txt: target_link_libraries(your_node_name ${catkin_LIBRARIES}) It seems that the catkin_create_pkg command, under indigo, doesn't add this line automatically. Comment by Wolf on 2015-01-12: you need to add roscpp as required component, see accepted answer. If you want caktin_create_pkg to do this for you you must add roscpp as dependency (catkin_create_pkg your_package_name roscpp std_msgs <other dependencies>)
Hi! I followed the tutorials of navigation , but I meet some problems. I joysticked the robot and used Gmapping to generate a map . Next I turn off the robot and restart it . The laser scan and odometry work well. Then I use that map with AMCL. When I load the map with Map_Sever,the rviz shows that the robot always stays in the original point of the map by defalut although the robot is in other places actually.I donot know how to set the initial pose for the robot . Can the robot match the laser date with the environment of the map and make itself localized autonomously ? Or do I need to set the initialpose for the robot manully? Any suggestion will be appreciated!Thank you very much! Originally posted by Yuichi Chu on ROS Answers with karma: 148 on 2014-03-26 Post score: 5
Hi, I am using the ROS toolkit in LabView to publish an odometry message to a particular topic. When rosbridge(v2) is running I can see there is a connection between LabView and ROS(I am given a connection ID, while when rosbridge is not running i get 0). But there is no publishing of data to the topic, the topic does not appear in my topic list. Any ideas of what could be the issue? According to clearpath robotics the only thing that needs to be done to connect labview and ROS on the ROS side is install the rosbridge. It might be though that the rosbridge is where the data gets stuck. Thank you Originally posted by av_roboticslab on ROS Answers with karma: 1 on 2014-03-26 Post score: 0
Long story short, I am trying to play a bag file from a node and mimic the same functionality of the following: rosbag play -l recorded1.bag Before I dive in to the rosbag API, I thought I'd ask the question if there was a simpler way than using the API, which I am not completely familiar with. If the API was the way, I was thinking something like this: import rosbag bag = rosbag.Bag('test.bag') % Loop for topic, msg, t in bag.read_messages(topics=['chatter', 'numbers']): %Publish Messages Am I on the right track? Cheers Originally posted by TFinleyosu on ROS Answers with karma: 385 on 2014-03-26 Post score: 4 Original comments Comment by Wolf on 2014-03-26: curiosity: Why would you want to implement that yourself? You can start rosbag like this also as node via launch file... Comment by TFinleyosu on 2014-03-26: I am doing a research study and I need to be able to play a random bag file of Kinect data when a button is pressed in another node. The button will be used many times and I need to avoid any terminal commands. Am I able to launch a launch file from within a node? Comment by Wolf on 2014-03-26: Yes the rosbag API seems to be the straight forward solution in this case I think. YOU could call into the rosbag via system command, but you would have to open the rosbag after every button press, so I think the application would be very slow and unresponsive... Comment by TFinleyosu on 2014-03-27: Thanks for the help Wolf
I recently experienced a problem with catkin_make. I am unsure what changed before I experienced the error as I had been using my computer for a couple of weeks without needing to use catkin_make, but I had been using the files in my catkin_ws in that two week period. Therefore, I am uncertain what was the initial cause of the error (the error is included in the code segment below). amanda@jade-shadow:~/catkin_ws$ catkin_make Base path: /home/amanda/catkin_ws Source space: /home/amanda/catkin_ws/src Build space: /home/amanda/catkin_ws/build Devel space: /home/amanda/catkin_ws/devel Install space: /home/amanda/catkin_ws/install #### #### Running command: "cmake /home/amanda/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/amanda/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/amanda/catkin_ws/install" in "/home/amanda/catkin_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/amanda/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/amanda/catkin_ws/devel;/opt/ros/hydro -- This workspace overlays: /home/amanda/catkin_ws/devel;/opt/ros/hydro -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Python version: 2.7 -- Using Debian Python package layout -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/amanda/catkin_ws/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- catkin 0.5.86 Traceback (most recent call last): File "/home/amanda/catkin_ws/build/catkin_generated/generate_cached_setup.py", line 29, in <module> os.chmod(output_filename, mode | stat.S_IXUSR) OSError: [Errno 1] Operation not permitted: '/home/amanda/catkin_ws/build/catkin_generated/setup_cached.sh' CMake Error at /opt/ros/hydro/share/catkin/cmake/safe_execute_process.cmake:11 (message): execute_process(/usr/bin/python "/home/amanda/catkin_ws/build/catkin_generated/generate_cached_setup.py") returned error code 1 Call Stack (most recent call first): /opt/ros/hydro/share/catkin/cmake/all.cmake:178 (safe_execute_process) /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:20 (include) CMakeLists.txt:52 (find_package) -- Configuring incomplete, errors occurred! Invoking "cmake" failed Other than the very first time I ran catkin_make, I received the following error message, which looks very similar: amanda@jade-shadow:~/catkin_ws$ catkin_make Base path: /home/amanda/catkin_ws Source space: /home/amanda/catkin_ws/src Build space: /home/amanda/catkin_ws/build Devel space: /home/amanda/catkin_ws/devel Install space: /home/amanda/catkin_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/amanda/catkin_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/amanda/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/amanda/catkin_ws/devel;/opt/ros/hydro -- This workspace overlays: /home/amanda/catkin_ws/devel;/opt/ros/hydro -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Python version: 2.7 -- Using Debian Python package layout -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/amanda/catkin_ws/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- catkin 0.5.86 Traceback (most recent call last): File "/home/amanda/catkin_ws/build/catkin_generated/generate_cached_setup.py", line 29, in <module> os.chmod(output_filename, mode | stat.S_IXUSR) OSError: [Errno 1] Operation not permitted: '/home/amanda/catkin_ws/build/catkin_generated/setup_cached.sh' CMake Error at /opt/ros/hydro/share/catkin/cmake/safe_execute_process.cmake:11 (message): execute_process(/usr/bin/python "/home/amanda/catkin_ws/build/catkin_generated/generate_cached_setup.py") returned error code 1 Call Stack (most recent call first): /opt/ros/hydro/share/catkin/cmake/all.cmake:178 (safe_execute_process) /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:20 (include) CMakeLists.txt:52 (find_package) -- Configuring incomplete, errors occurred! make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed I tried running catkin_make clean but I received the same error message as shown above. I also went through my catkin_ws and made every package individually with catkin_make_isolated. I moved the packages that did not successfully make into another folder on my computer. However, the same error messages occurred when I ran catkin_make again. I also made sure I ran: source /opt/ros/hydro/setup.bash source devel/setup.bash sudo apt-get update rosdep update sudo apt-get install ros-hydro-control-msgs sudo apt-get install ros-hydro-catkin When no resolution was found, I ran rm -rf build rm -rf build build_isolated/ rm -rf build/ build/ rm -rf build/ devel devel_isolated/ and the last command fixed my problem. However, I don't actually know what I did wrong. I want to try to avoid doing it again. I wanted to post this to help anyone experiencing the same problem and to ask for ideas of the cause of the problem. I would appreciate any hints you could offer as to the possible cause of this issue. Originally posted by Amanda on ROS Answers with karma: 11 on 2014-03-26 Post score: 0
Hi, I want to publish an image..previously I posted the same question but I got that I forgot to add ros::spin().. But even then there is a problem..It compiled successfully..while running it not displaying an image.. pub.cpp: #include <ros/ros.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <cv_bridge/cv_bridge.h> #include <image_transport/image_transport.h> #include <sensor_msgs/image_encodings.h> int main(int argc, char** argv) { ros::init(argc, argv, "image_publisher"); ros::NodeHandle nh; cv_bridge::CvImage cv_image; cv_image.image = cv::imread("/home/abi/Pictures/attachments/",CV_LOAD_IMAGE_COLOR); cv_image.encoding = "bgr8"; sensor_msgs::Image ros_image; cv_image.toImageMsg(ros_image); image_transport::ImageTransport it(nh); image_transport::Publisher pub = it.advertise("/static_image/compressed", 3); ros::Rate loop_rate(5); while (nh.ok()) { pub.publish(ros_image); loop_rate.sleep(); } } sub.cpp: #include <ros/ros.h> #include <image_transport/image_transport.h> #include <opencv/cv.h> #include <opencv/highgui.h> #include <cv_bridge/cv_bridge.h> void imageCallback(const sensor_msgs::ImageConstPtr& msg) { cv_bridge::CvImagePtr cv_ptr; try { cv_ptr = cv_bridge::toCvCopy(msg, "bgr8"); //ROS_INFO("Hi"); cv::imshow("view", cv_ptr->image); cvNamedWindow("view",CV_WINDOW_AUTOSIZE); } catch (cv_bridge::Exception& e) { ROS_ERROR("cv_bridge exception: %s", e.what()); return; } } int main(int argc, char **argv) { ros::init(argc, argv, "image_listener"); ros::NodeHandle nh; cvNamedWindow("view",CV_WINDOW_AUTOSIZE); image_transport::ImageTransport it(nh); image_transport::Subscriber sub = it.subscribe("/static_image/", 1,imageCallback); ros::spin(); cvDestroyWindow("view"); } Originally posted by Abinaya on ROS Answers with karma: 1 on 2014-03-26 Post score: 0
This is my first ROS package and I think this is a pretty easy question but I'm not sure how to most appropriately do this: I am trying to build a ROS package with GTSAM: borg.cc.gatech.edu/download which requires Boost C++ to be installed: sourceforge.net/projects/boost/files/boost/1.55.0/ Both libraries are installed in my /usr/local/ directory. I'd like to use these libraries in my ROS package but I'm not sure the proper way of doing so. Should I just #include as usual and have a readme saying to install these libraries before using this ROS package? Or should include the installation in my ROS package directory? Sorry for the noob question and thanks for the help. Originally posted by chet on ROS Answers with karma: 11 on 2014-03-26 Post score: 1
I'm trying to load a .stl file as a mesh in RVIZ and having problems seeing anything. I have tweaked the rviz marker tutorial(http://wiki.ros.org/rviz/Tutorials/Markers%3A%20Basic%20Shapes) to attempt to display a binary .stl file from a local directory (~/catkin_ws/src/my_package/stl/mesh.stl). My code looks like this: #include <ros/ros.h> #include <visualization_msgs/Marker.h> int main( int argc, char** argv ) { ros::init(argc, argv, "basic_shapes"); ros::NodeHandle n; ros::Rate r(1); ros::Publisher marker_pub = n.advertise<visualization_msgs::Marker>("visualization_marker", 1); while (ros::ok()) { visualization_msgs::Marker marker; // Set the frame ID and timestamp. See the TF tutorials for information on these. marker.header.frame_id = "/my_frame"; marker.header.stamp = ros::Time::now(); // Set the namespace and id for this marker. This serves to create a unique ID // Any marker sent with the same namespace and id will overwrite the old one marker.ns = "basic_shapes"; marker.id = 0; // Set the marker type marker.type = visualization_msgs::Marker::MESH_RESOURCE; // Set the marker action. Options are ADD and DELETE marker.action = visualization_msgs::Marker::ADD; // Set the pose of the marker. This is a full 6DOF pose relative to the frame/time specified in the header marker.pose.position.x = 0; marker.pose.position.y = 0; marker.pose.position.z = 0; marker.pose.orientation.x = 0.0; marker.pose.orientation.y = 0.0; marker.pose.orientation.z = 0.0; marker.pose.orientation.w = 1.0; // Set the scale of the marker -- 1x1x1 here means 1m on a side marker.scale.x = 1.0; marker.scale.y = 1.0; marker.scale.z = 1.0; // Set the color -- be sure to set alpha to something non-zero! marker.color.r = 0.0f; marker.color.g = 1.0f; marker.color.b = 0.0f; marker.color.a = 1.0; marker.lifetime = ros::Duration(); // Publish the marker marker.mesh_resource = "package://my_package/stl/mesh.stl"; marker_pub.publish(marker); r.sleep(); } } I'm pretty sure the line marker.mesh_resource = "package://my_package/stl/mesh.stl"; is my problem. Any help is greatly appreciated! Thanks! Originally posted by pnyholm on ROS Answers with karma: 97 on 2014-03-26 Post score: 0 Original comments Comment by timm on 2014-03-27: Is RViz showing any error messages in the Marker display status? Have you set your fixed frame in RViz to "/my_frame"? Maybe also try to play around with the marker.mesh_use_embedded_materials flag, and if possible, try a DAE file instead of STL. Comment by pnyholm on 2014-03-27: Great suggestion using a DAE instead of STL file. I got it to work with some sample DAE files I pulled from the internet. With the same setup that I have working for the DAE file, when I simply replace the DAE with the STL I get a seg fault. I guess now I have a bit of work to do converting my STL file to a DAE file. Any simple suggestions for that?
I am building ROS Indigo from source for a BeagleBoneBlack running U13.10 via these instructions: http://wiki.ros.org/indigo/Installation/Source I was able to build ros-comm without any problems! YAY! Now, what is the best way to also build urg_node and all it's dependencies? I hope the anwser is not to make an overlay work-space, manually git clone the source, look in package.xml for more deps, and then git clone those... I imagine that there's some way to use ws tool to automaticly pull urg_node, and it's dependancies such as sensor_msgs for building into either the existing src folder created in the above tutorial, or in an overlay on the install_isolated? Sorry for being long winded, I just wasn't sure how to phrase the question, but I hope you get what I'm asking... ;) Originally posted by Dereck on ROS Answers with karma: 1070 on 2014-03-26 Post score: 1
I'm currently using this method: project(grizzly_msgs) find_package(catkin REQUIRED) find_package(Eigen REQUIRED) catkin_package( INCLUDE_DIRS include ${Eigen_INCLUDE_DIRS} DEPENDS eigen ) This works great in Ubuntu and on the buildfarm, but gave me a problem when I attempted to compile under OS X / Indigo / homebrew—unable to find the EigenConfig.cmake module. I have Eigen 3.2 installed via homebrew, but it doesn't seem to supply a cmake module. Is there some better way to do this which will work for Ubuntu and other OSes? Update: Looks like the FindEigen.cmake module is right there in the usual place: /opt/ros/indigo/share/cmake_modules/cmake/Modules/FindEigen.cmake Do I need to build_depend on cmake_modules in order for cmake to find these? Originally posted by mikepurvis on ROS Answers with karma: 1153 on 2014-03-26 Post score: 0
Hi guys, following the guide in http://answers.ros.org/question/91111/rgbdslam-in-ros-hydro/ and http://answers.ros.org/question/105871/rgbd-in-hydro/, I am trying to install RGBD SLAM package on Hydro. When I install octomap_server on http://wiki.ros.org/octomap_mapping some thing wrong happens. I run sudo apt-get install ros-hydro-octomap ros-hydro-octomap-mapping, I do not "add the source directory to your ROS_PACKAGE_PATH (e.g. in ~/.bashrc), source that file", because I do not know how to source it and do not know where is it. Then rosdep install octomap_mapping, it shows that #All required rosdeps installed successfully. There is some strange when I rosmake octomap_mapping. It says that [ rosmake ] rosmake starting... [ rosmake ] Packages requested are: ['octomap_mapping'] [ rosmake ] Logging to directory /home/rical/.ros/rosmake/rosmake_output-20140326-225216 [ rosmake ] Expanded args ['octomap_mapping'] to: [] [ rosmake ] WARNING: The stack "catkin" was not found. We will assume it is using the new buildsystem and try to continue... [ rosmake ] WARNING: The stack "octomap_server" was not found. We will assume it is using the new buildsystem and try to continue... [ rosmake ] Results: [ rosmake ] Built 0 packages with 0 failures. [ rosmake ] Summary output to directory [ rosmake ] /home/rical/.ros/rosmake/rosmake_output-20140326-225216 As a beginner, I would like to ask how to fix this problem? Do I need to download the source to a catkin workspace and then catkin_make? Or, what to do to install it successfully? Many thanks Originally posted by pinocchio on ROS Answers with karma: 101 on 2014-03-26 Post score: 0
Hellow, Easy question, I'm not able to declare a Polygone message that does not core dump. Here is my code for now : geometry_msgs::Point32 tl; polyStamp.polygon.points[0]=tl; I have the doc of the Polygon Stamped and the Polygon but I guess I'm reading it really badly. I tried declaring a table of Point32 as well and directly passing it to polygon.points but it wont compile then. Thanks a lot for any answer. Originally posted by Maya on ROS Answers with karma: 1172 on 2014-03-26 Post score: 0
Hi, I am using an Arduino Uno in combination with a Sparkfun Bluetooth Mate Gold modem to interface with my ROS hydro framework running on a host. The communication is established with the rosserial_python node on the host and the rosserial_arduino code uploaded to the Arduino. When I upload the blink_led example described in this tutorial, I get the following error after running the rosserial_python node on the host: [ERROR] [WallTime: 1395914292.667126] Mismatched protocol version in packet: lost sync or rosserial_python is from different ros release than the rosserial client [INFO] [WallTime: 1395914292.667822] Protocol version of client is unrecognized, expected Rev 1 (rosserial 0.5+) The error is usually thrown after a few seconds, before the error is thrown everything works fine and I can blink the LED. I already tried the following measures without success: Set a baudrate of 115200 instead of 57600 on the host side, the bluetooth modem and the Arduino UART. Compile the rosserial code from source instead of using the latest debian binaries (results in a different error complaining about unexpected message lengths). Recompile the ros_lib library in the Arduino sketchbook. Increase the delay times in the Arduino code. Remove all subscribers in the Arduino code and just init the node. When I try to run the system over bluetooth, the modem is connected to the TX/RX pins of the arduino (TX to RX, RX to TX) and the USB cable removed. When I disconnect the bluetooth modem from the Arduino and connect the Arduino over a USB cable to the host, everything runs fine. Can anyone help me with this issue? Originally posted by Tones on ROS Answers with karma: 635 on 2014-03-27 Post score: 1
I am trying to do Sending simple goal tutorial. I did catkin_create_pkg simple_navigation_goals move_base_msgs actionlib roscpp I didn't do anything else (because I'm checking this tutorial only to learn how to include costmap_2d that I was trying to do but i couldn't manage to complete) so I did catkin_make but there is an error CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package move_base_msgs. there is some explanation how to fix it under an error Set move_base_msgs_DIR to the directory containing a CMake configuration file for move_base_msgs. The file will have one of the following names: move_base_msgsConfig.cmake move_base_msgs-config.cmake why I have to set sth, shouldn't it work? Do i have some system variables wrong or sth? Originally posted by BP on ROS Answers with karma: 176 on 2014-03-27 Post score: 0
Good afternoon partners I´m running ROS Groovy on Raspbian . I wrote a publisher in C++ "robot1.cpp" . After that and following the instructions from: http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29 I added these lines at bottom of my CMakeLists.txt: include_directories(include ${catkin_INCLUDE_DIRS}) > > add_executable(robot1 src/robot1.cpp) > > target_link_libraries(robot1 ${catkin_LIBRARIES}) add_dependencies(robot1 alvaro_generate_messages_cpp) When I do "catkin_make" I get the next : [ 21%] Building CXX object alvaro/CMakeFiles/robot1.dir/src/robot1.cpp.o /tmp/ccREQxsT.s: Assembler messages: /tmp/ccREQxsT.s:505: Warning: swp{b} use is deprecated for this architecture Linking CXX executable /home/pi/catkin_ws/devel/lib/alvaro/robot1 c++: error: $(catkin_LIBRARIES):There is no such file or directory make[2]: *** [/home/pi/catkin_ws/devel/lib/alvaro/robot1] Error 1 make[1]: *** [alvaro/CMakeFiles/robot1.dir/all] Error 2 make: *** [all] Error 2 Invoking "make" failed I´ve just followed the tutorial steps so that I don´t know what´s happening. Can you help me please? Originally posted by 4LV4R0 on ROS Answers with karma: 70 on 2014-03-27 Post score: 0 Original comments Comment by 4LV4R0 on 2014-03-27: Oh my God! I´m quite blind .... apologies for any inconvenience. I need my glasses to see ... I´m absolutely a disaster. It was exactly what you said to me. I didn´t realice it. ${catkin_LIBRARIES} rather than $(catkin_LIBRARIES). Thanks a lot!
Im using the simple_navigation_goal and i need to first send a goal to 7,2 (x,y) and then when he arrives he need to go to 10,4. the problem is that i dont understand if the second goal i send must be 10,4 or 3,2. Also when i give the robot a goal does this goal start from when the robot is, or does it represent a place in the map where it does not change when the robot moves? I need to send my robot to a goal x,y and before he arrives i need him to go to 10,4 y have the /pose so i know where he is but dont know if the goal i must send is 10,4 or one related to the actual position posted by /pose Any help would be really apprciated Originally posted by ctguell on ROS Answers with karma: 63 on 2014-03-27 Post score: 0
Hi, I'm using Matlab/ROS interface (with Matlab R2013a and ROS fuerte) I've done the Matlab example where a node publish and subscriber from Matalb and this example works without problem. But now I have gazebo running and I want to subscrib from Matlab and It doesn't work.. Could anyone tell me what is wrong? I do: roscore roslaunch gazebo_world .... and execute this code from Matlab: global rosMasterIp; rosMasterIp = '127.0.1.1'; global localhostIp; localhostIp = '127.0.0.1'; % Create a new node named /NODE and connect it to the master. node = rosmatlab.node('NODE', rosMasterIp, 11311, 'rosIP', localhostIp); % Add a publisher of a topic named /TOPIC to the node to send message of type std_msgs/String. publisher = rosmatlab.publisher('TOPIC','std_msgs/String',node); % Add a subscriber to a topic named /TOPIC to the node to receive message subscriber = rosmatlab.subscriber('TOPIC','std_msgs/String',1,node) %Gazebo topic subscriber2 = rosmatlab.subscriber('gazebo/model_states', 'gazebo_msgs/ModelStates',1,node); subscriber.setOnNewMessageListeners({@function1}); subscriber2.setOnNewMessageListeners({@function2}); % Create a new message of type std_msgs/String. msg = rosmatlab.message('std_msgs/String',node); % Set the data field of the message and then publish the message msg.setData(sprintf('Message created: %s',datestr(now))); publisher.publish(msg); pause(1); Originally posted by Sanxano on ROS Answers with karma: 70 on 2014-03-27 Post score: 0
what are the prerequisites to learn ros and make the application on ros Originally posted by akshaykumar on ROS Answers with karma: 1 on 2014-03-27 Post score: 0
"pioneer3-at I dont wnt to use ssh to remotely control robot" Hi everyone, I have a problem like this: Every time I want to operate my Pioneer 3at robot, I need to use "ssh" command to access the on board computer on a remote laptop. And then I can run "RosAria" to connect the robot (rosrun rosaria RosAria _port:=/dev/ttyS0). If I want to control the robot to move, I already know how to control it remotely by running another program that publishes "vel_cmd" [by setting ROS_MASTER_URI]. so, the question is: I don't want to control the robot by the method above, it is not convenient to access onboard computer or set ROS_MASTER_URI etc. I want to remotely run rosrun rosaria RosAria _port:=/dev/ttyS0 and control the robot. but it doesn't work, since the hardware is connected to onboard computer by serial port directly. Actually, I plan to control multiple robots (e.g.,5), If I use "ssh"..., I will at least open 5 terminals, that will cost much time and is not convenient. Thus, is anyone know how to solve this problem? just open one terminal, and run RosAria on remote laptop and can connect to and control the robots... Or do you think this cannot be realized? Originally posted by Fei_Liu on ROS Answers with karma: 1 on 2014-03-27 Post score: 0
In previous versions of rosjava, I used to be able to start my node using roslaunch or rosrun. Now, it seems that to execute a node (as shown in the tutorials), I have to use the following syntax: ./my_pub_sub_tutorial com.github.rosjava_catkin_package_a.my_pub_sub_tutorial.Talker & Please advise if it is still possible to use roslaunch and a launch file. I prefer to launch my java nodes this way, to be able to set parameters in a consistent way with my C++ based nodes. Now, I get an errror, "cannot launch node of type [execute]". Also, it is not clear if I should be creating my rosjava subprojects as libraries (jar files) or executables to do this. Thanks in advance. Originally posted by ceverett on ROS Answers with karma: 332 on 2014-03-27 Post score: 2
What kind of overhead camera (high precision) do you recommend to purchase for object tracking. Is there any particular kind that works the best with the ROS? Originally posted by Solmaz on ROS Answers with karma: 3 on 2014-03-27 Post score: 0
I had a working environment, for developing android apps for ROS. today, I opened Android Studio, and at the start it started "refreshing the project" .. and all of the sudden I started getting errors about gradle wrapper.. I fell back to terminal, and tried to reinvoke "catkin_make" on the dir. and I got this error: * Where: Build file '/home/aminasfour/project/android/src/android_apps/application_management/build.gradle' line: 26 * What went wrong: A problem occurred evaluating project ':application_management'. > Could not create plugin of type 'LibraryPlugin'. I've tried to download everything from scratch .. and re-followed this tutorial: http://wiki.ros.org/sig/Rosjava/Android%20Development%20Environment/hydro. unfortunately I'm still getting the same error mentioned above. Please I need advice on how to fix it, I have a project that I need to deliver within a week. Thanks! Originally posted by AMiNAsFour on ROS Answers with karma: 7 on 2014-03-27 Post score: 0 Original comments Comment by ahendrix on 2014-03-27: I suspect this is due to a recent change on your system. You could try reviewing the package install logs in /var/log/dpkg if you're on Ubuntu Comment by AMiNAsFour on 2014-03-27: It's not, the latest update that appears there, dates back to two weeks ago (and it used to work then) Comment by fapofa on 2014-04-09: Try to update the distributionUrl=http://services.gradle.org/distributions/gradle-1.10-all.zip in the gradle/wrapper/gradle-wrapper.properties. This solved my problems regarding the same issue.
Hi all, I have a turtlebot 2. I roslaunch "turtlebot_bringup minimal.launch" on turtlebot and configure the network as http://wiki.ros.org/turtlebot/Tutorials/groovy/Network%20Configuration. Afterwards I run commands (http://wiki.ros.org/turtlebot_interactive_markers/Tutorials/UsingTurtlebotInteractiveMarkers) on my workstation I met errors: Grid and RobotModel on the left of rviz window are red-marked, and both of then have a sub-red-marked Status: Error. After choosing InteractiveMarkes and Interact, I dragged the mouse but turtlebot didn't move. Pls give me a hand, thanks! Originally posted by fuchangjie on ROS Answers with karma: 3 on 2014-03-27 Post score: 0
Hi everyone, When I execute the command line "rosrun rviz rviz -d rospack find stage_ros/rviz/stage.rviz" I get the following error: OpenGL Warning: No pincher, please call crStateSetCurrentPointers() in your SPU Segmentation fault (core dumped) I may note that I am using the Hydro distribution on a Ubuntu 12.04 on VirtualBox with 3D hardware acceleration enabled, but it seems that still there is a problem with graphics ... . I haven't been able to find any solution to the problem by surfing on the Internet. I really need your help as I'm doing a project and I'm stuck badly. How can I solve this error? Thank you Originally posted by Warrior on ROS Answers with karma: 61 on 2014-03-27 Post score: 0
Hi, I am trying to run the map-building tutorial with gmapping and rviz. However I get some errors that I did not get before (and I do not recall changing anything significant). First of all, it says, "No map received", even though the right topics are subscribed to and the status of each topic is OK (see attached image file). Secondly, under Global Options, the Fixed Frame, by default, is set to map. The Global Status then goes on to say that this frame does not exist, when, clearly, according to the tf-tree produced by rosrun tf view frames, it does! Any help is appreciated :) Thanks! Specifications: ROS Distribution - Hydro; OS Distribution - Ubuntu 13.04 Raring. Originally posted by oswinium on ROS Answers with karma: 105 on 2014-03-28 Post score: 0
HI everybody, I am having problems in building a large project. I'am trying to add some modularity to my .launch file. I built my launch file as follows <launch> <include file="$(find gazebo_ros)/launch/empty_world.launch"> <arg name="world_name" value="$(find vtol_gazebo)/worlds/vtol.world"/> </include> <include file="$(find heterogeneous)/config/heterogeneous.xml"/> </launch> with the file included being <launch> <node pkg="heterogeneous" name="het" type="heterogeneous"> </node> </launch> the node in the heterogeneous package is (successfully) built with the following CMakeLists.txt file cmake_minimum_required(VERSION 2.8.3) project(heterogeneous) find_package(catkin REQUIRED COMPONENTS roscpp ) set(ARMADILLO_INCLUDE /usr/local/include/) set(ARMADILLO_LIBRARIES /usr/lib/libarmadillo.so) include_directories(include/${PROJECT_NAME} ${Boost_INCLUDE_DIR} ${catkin_INCLUDE_DIRS} ) add_executable(heterogeneous src/Heterogeneous.cpp) target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ) catkin_package( DEPENDS roscpp ) The file si successfully compiled and the executable added to the project workspace. In fact, if I prompt from the catkin workspace find -executable -name heterogeneous -type f I obtain ./build/heterogeneous/heterogeneous However when I launch the .launch file I get ERROR: cannot launch node of type [heterogeneous/heterogeneous]: can't locate node [heterogeneous] in package [heterogeneous] I really cannot figure out what the problem is. I am using ros hydro Any ideas? Thanks Andrea EDIT: actually I cannot run the node with rosrun heterogeneous heterogeneous Originally posted by Mago Nick on ROS Answers with karma: 385 on 2014-03-28 Post score: 10 Original comments Comment by xinwf on 2018-07-18: This doesn't work any more. I use the ros version kinetic, farid's method is useful for me. Comment by antoineniotna on 2019-05-13: I just had the same problem, but for me the problem was in the launch file. I created my node with catkin command, and then personalized the cmake and the launch file, but I did a mistake by switching name_node to name. I know it is a very specific mistake but maybe it will help the next guy! True: <node name="$(arg node_name)" pkg="hil" type="hil_node" clear_params="true" output="screen"> False: <node name="$(arg node_name)" pkg="hil" type="hil" clear_params="true" output="screen">
Hi all, I am currently trying to install row in osx--my work requires that I work in mac as opposed to linux. I greatly enjoy using ROS as it simplifies a lot of things. However I'm not familiar enough with Mac to debug this problem by myself. I have already tried the symlink solution and that still doesn't work for me. Here is what I put into the command line: sudo ln -s /usr/local/include/freetype2 /usr/local/include/freetype sudo pip install pil --allow-external pil --allow-unverified pil and the error that I get: clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future error: command 'cc' failed with exit status 1 ---------------------------------------- Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/pil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-LgDFfc-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/pil Storing debug log for failure in /Users/chaneyk/Library/Logs/pip.log Do you guys have any idea where I should start? Originally posted by KennethChaney on ROS Answers with karma: 1 on 2014-03-28 Post score: 0 Original comments Comment by demmeln on 2014-03-29: What version of OS X is this on? Did you do pip install -U pip? Can you edit your post to include the log (/Users/chaneyk/Library/Logs/pip.log)? Comment by KennethChaney on 2014-03-31: I'm currently using OS X Mavericks. Here's a link to the pip log: https://drive.google.com/file/d/0Bxb-MBxS-2X5YV9HZ2pRaFdiSjA/edit?usp=sharing
So a costmap_2d tutorial says this: My questions are: Since this is ONE solution, what other ones are there? And, more specifically, how does turtlebot_navigation/amcl_demo.launch provide the transform between the map_file loaded and the turtlebot? (Because there is no such line (as in the picture above) in its launch file). Originally posted by oswinium on ROS Answers with karma: 105 on 2014-03-28 Post score: 0
I am developing a robotic application that sends raw stereo images (computer A) using the image_transport library. Another application receives them (computer B) and synchronizes the stereo pairs and camera infos. This application has always worked perfectly using the default transport hints. Today I changed the transport layer from TCPROS to UDPROS, and now the receiver node only gets the camera infos, but not the frames. I tried changing the datagram size, the connection technology (Wifi, Gigabit...) and the computers, without any success. The smallest frame size I tested was 320x240 and the send rate was also changed to 1 Hz. When both nodes are executed in the same computer (e.g. computer A), everything works perfectly, so I suspect that it is not a programming issue. Any ideas? Thank you in advance Originally posted by Javier J. Salmerón García on ROS Answers with karma: 114 on 2014-03-28 Post score: 1
I recently transferred all of my ROS files to a new computer using a flash drive. Afterward, I installed ROS on the new computer but didn't go through any of the tutorials. I ran catkin_make in catkin_ws, but I keep getting the error that the configuration file or module for many of my packages cannot be found. I think this is happening because some packages are being built before their dependencies, but I'm not sure. Is there a better way to transfer code from computer to computer or is there any way to fix this? I'm pretty sure all of these packages have dependency files. An example of the errors I'm getting contains the text: Call Stack (most recent call first): grasp_planner/CMakeLists.txt:7 (find_package) CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package moveit_ros_planning. Set moveit_ros_planning_DIR to the directory containing a CMake configuration file for moveit_ros_planning. The file will have one of the following names: moveit_ros_planningConfig.cmake moveit_ros_planning-config.cmake Originally posted by schmellow on ROS Answers with karma: 1 on 2014-03-28 Post score: 0
Hello everybody, i wanted to know is there any way out by which i can 2 or more servos at a time from a single subscriber. Currently i am running one servo on a single channel of arduino Due. But i require two servos to be run at a same time by giving them different angle values. like; rostopic pub Servo1 std_msgs/Int16 230; this passes 230 degree to the servo attached. But i want to control two at a time like; rostopic pub Servo1 std_msgs/Int16 230 130 240; 230 for 1st servo; (degrees) 130 for 2nd servo; (degrees) 240 for 3rd servo...(degrees) I would appreciate if someone puts a light on this issue. thnks Originally posted by sonny on ROS Answers with karma: 33 on 2014-03-29 Post score: 3
Hi folks, just a short question regarding the communication between nodes. Assuming that there are two systems running ROS. System A runs the roscore service, nodes on system B connect to it via an appropriately set ROS_MASTER_URI. Furthermore there are two nodes running on system B. The first node is a publisher and the second is a subscriber of the same topic. Question is now: do messages between these nodes on system B travel through system A to reach their destination (the respective other node on system B) or is ROS intelligent enough to determine when nodes run on the same system and let them talk to each other sort of in private? Originally posted by Hendrik Wiese on ROS Answers with karma: 1145 on 2014-03-29 Post score: 1
As you can see on the webpage of installation tutorial of Hydro for ubuntuARM There is no source lists in 2.3 Setup your sources.list. What should I do? Originally posted by seongyun on ROS Answers with karma: 1 on 2014-03-29 Post score: 0 Original comments Comment by seongyun on 2014-03-29: I here link the URL, http://wiki.ros.org/hydro/Installation/UbuntuARM
hi, i want to get the transformation between my /map and /robot_0/base_link. I am currentry trying it with: tf::TransformListener listener; tf::StampedTransform transform; listener.lookupTransform("/map", "/robot_0/base_link", ros::Time(0), transform); but i always get a SIGABRT. What I am doing wrong ? my tf tree: regards, Edit: i get the following Error message: Peter Originally posted by pkohout on ROS Answers with karma: 336 on 2014-03-29 Post score: 1
I have subscribed to the following topic /camera/depth_registered/points I have a callback function defined as the following in a c++ file : ros::Subscriber sub = nh.subscribe ( "/camera/depth_registered/points", 1, process_cloud ); I want to obtain the latest data from the above topic when I want it. Is there a way to acquire the latest data from the topic whenever I want inside my callback function ? I also tried a workaround using the ros::spinOnce() function. But sometimes my callback function does not get called. When and why will this happen ? - the callback function not being called. Is there a way to check if the callback got called when using the ros::spinOnce() ? proccess_cloud is the only callback function i have in my program I am using ros - groovy on a Ubuntu-12.04 machine I appreciate any help anyone can provide. Please post if you require anymore information. ___ UPDATE ____ Essentially this is what I am trying to do : I have a UDP communication setup in the above program, between the computer that runs the above code that I am having an issue with, I will call this PC 1 PC2 sends a request to PC1 over UDP communication - at which time i want to acquire latest data from my Prime Sense Carmine 1.09 sensor. Thus in my above code, in PC1, I want to wait for this UDP request and then acquire a data from the prime Sense sensor and process the data. I have tried two versions of code to accomplish the above problem a) 1st version - I use the UDP - recvfrom function inside the callback function : thus the code essentially gets held at this line waiting to request from PC2(which how the recvfrom function works). And when it recieves the request from PC2 rest of the processing occurs - thus working on old data. Which led to my question here as to how to obtain new data in my callback function. b) To work around the above problem I came up with the 2nd version : Here I use the spinOnce function , thus in my main function I wait for the request from PC2 using the recvfrom function. And then I use spinOnce function - to run my callback function. All this essentially inside a while loop. - But in this case sometimes the callback does not get called sometime. - Also in this case is it ensured that the latest available data from my topic used ? And my 1st line in the callback function a print to the command line saying I was called ( using std::cout ). Which is how I figure out that the callback does not get called( in my 2nd case). I am using the following command to obtain data from the prime sense sensor. roslaunch openni_launch openni.launch Also is this the best way to obtain data from the prime sense sensor Originally posted by Bharadwaj on ROS Answers with karma: 41 on 2014-03-29 Post score: 0
I'm looking for a simple way to display a stereo_msgs/DisparityImage topic using mjpeg_server, which needs images in the sensor_msgs/Image format. I'm getting the disparity image from a Kinect thorough the openNI package. Is there a simple way to convert the disparity image to a flat image, or will I have to write up a custom process to handle the conversion? Originally posted by nckswt on ROS Answers with karma: 539 on 2014-03-29 Post score: 1 Original comments Comment by vdonkey on 2014-05-05: Hi, have you work it out? I have the same question Comment by nckswt on 2014-05-29: Not yet! I've been distracted by other things to work on, but I'll get back to that soon and post once I have a solution! Comment by 2ROS0 on 2017-03-16: @nckswt any solution yet? Comment by nckswt on 2017-03-16: I ended up finding a workaround to my problem instead, without having to display the DisparityImage. Sorry, no solution found!
Hi The TF documentation mentions that there are methods to convert points from one frame to another. I am currently using the python tf api. I have a list of [x,y,z] points in the sensor frame and I want to transform these points into the map frame. calling this (tran, rot) = self.tf_listener.lookupTransform('/body', '/map', rospy.Time(0.0)) gives a translation vector and a quaternion for the rotation. I am not really familiar with quaternions... but I heard they are hard... Anyway Is there a method in the python api to convert my vector of points to another frame? I noticed in the c++ tf api there was a function called transformPoint. Is this what I need? My other idea is to use the transformation.py module to convert the quaternions and the translation vector to a homogeneous transformation matrix and transform the vector of points manually. (by using the transformations.py module) http://wiki.ros.org/geometry/RotationMethods#transformations.py Originally posted by Sentinal_Bias on ROS Answers with karma: 418 on 2014-03-30 Post score: 2
When I launch turtlebot simulation with base = create the robot starts to constantly moving. I changed file turtlebot_empty_world.launch in package turtlebot_gazebo: <arg name="base" value="$(optenv TURTLEBOT_BASE create)"/> <!-- create, roomba --> <arg name="battery" value="$(optenv TURTLEBOT_BATTERY /proc/acpi/battery/BAT0)"/> <!-- /proc/acpi/battery/BAT0 --> <arg name="stacks" value="$(optenv TURTLEBOT_STACKS circles)"/> <!-- circles, hexagons --> <arg name="3d_sensor" value="$(optenv TURTLEBOT_3D_SENSOR kinect)"/> <!-- kinect, asus_xtion_pro --> I launch turtlebot now by command roslaunch turtlebot_gazebo turtlebot_empty_world.launch It starts without errors, but, it doesn't stop slowly moving around by himself! When the base was kobuki - the turtlebot stayed still. I also tried to spawn pure irobot create in gazebo, it has the same problem, but I managed to solve it by adding gazebo plugin "differential drive". However, adding this plugin to turtlebot create base urdf file didn't help. I'm really stuck with this issue, could you please at least point me to the digging direction? Originally posted by INait on ROS Answers with karma: 220 on 2014-03-30 Post score: 0 Original comments Comment by INait on 2014-04-22: @Ken_in_JAPAN thanks for your answer! I'll check it out.
Hello, I'm looking at the client code (also the server) of AddTwoInts .. and I came across this code: ServiceClient<rosjava_test_msgs.AddTwoIntsRequest, rosjava_test_msgs.AddTwoIntsResponse> serviceClient; now my question is, who supplies the implementation of AddTwoIntsRequest and AddTwoIntsResponse ? They are interfaces, with methods such as setA , setSum, etc.. but I can't find an implementation for these methods anywhere.. Originally posted by AMiNAsFour on ROS Answers with karma: 7 on 2014-03-30 Post score: 0
I use the map server, a global and local plan is created and I also get cmd_vel outputs. This is a geometry_msgs/Twist output with a value linear.x for the speed and angular.z for the speed around the z-axis -> I generate a odom message from this message to simulate a input for the navigation stack... noticeable is that the value for the speed around the z-axis changes a lot, also from negative to positive values and back... and after some time I get this error!? I'm glad about any suggestions or help (I use ros hydro) Best regards Matthias Originally posted by moejoegoe on ROS Answers with karma: 1 on 2014-03-30 Post score: 0
Hellow everyone, I have a problem with compiling my code and I can't seem to find the solution anywhere. I'm using PCL. My main is in a one file named main.cpp. The code inside is irrelevant. The thing is in order to use the fromROSMsg() pcl_ros function I need to declare it somewhere in the main file. Like for example I have a function callback() for now that is used absolutely nowhere in the code later on like this : void callback(){ const sensor_msgs::PointCloud2ConstPtr& cloudy; pcl::PointCloud<pcl::PointXYZRGBA> cloud; pcl::fromROSMsg(*cloudy, cloud); } And this function is absolutely of no use later on since my callback function is actually a class function somewhere else using fromROSMsg by herself. but if I don't include this function somewhere in the main file here is the result of CMake : /home/ros/catkin_ws/devel/lib/lib3Dmain.so: undefined reference to 'pcl::console::print(pcl::console::VERBOSITY_LEVEL, char const*, ...)' collect2: ld a retourné 1 code d'état d'exécution make[2]: *** [/home/ros/catkin_ws/devel/lib/open_tld_3d/opentld_3D] Erreur 1 make[1]: *** [open_tld_3d/CMakeFiles/opentld_3D.dir/all] Erreur 2 I tried linking manually PCL in themakefile as explain Here but it didn't help. Thanks a lot for any help. Here is the CMakeLists.txt : cmake_minimum_required(VERSION 2.8.3) project(this_project) ## 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 cv_bridge geometry_msgs pcl pcl_ros roscpp rospy sensor_msgs std_msgs ) find_package(PCL REQUIRED) find_package(OpenCV REQUIRED) include_directories(${PCL_INCLUDE_DIRS}) link_directories(${PCL_LIBRARY_DIRS}) include_directories(${OpenCV_INCLUDE_DIRS} include/this_project) include_directories( src/opentld src/opentld/main src/libopentld/imacq src/libopentld/mftracker src/libopentld/tld src/libopentld/tld/detector src/libopentld/tld/detector/cuda src/3rdparty/cvblobs src/3rdparty/libconfig) include_directories(src/libopentld/imacq src/libopentld/mftracker src/libopentld/tld src/libopentld/tld/detector src/libopentld/tld/detector/cuda src/libopentld/tld/detector/cuda/npp ${CUDA_INCLUDE_DIRS}) ## System dependencies are found with CMake's conventions # find_package(Boost REQUIRED COMPONENTS system) ## Uncomment this if the package has a setup.py. This macro ensures ## modules and global scripts declared therein get installed ## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html # catkin_python_setup() ################################### ## catkin specific configuration ## ################################### ## The catkin_package macro generates cmake config files for your package ## Declare things to be passed to dependent projects ## INCLUDE_DIRS: uncomment this if you package contains header files ## LIBRARIES: libraries you create in this project that dependent projects also need ## CATKIN_DEPENDS: catkin_packages dependent projects also need ## DEPENDS: system dependencies of this project that dependent projects also need catkin_package( INCLUDE_DIRS include LIBRARIES open_tld_3d CATKIN_DEPENDS geometry_msgs roscpp rospy std_msgs pcl_ros pcl DEPENDS system_lib ) ########### ## Build ## ########### ## Specify additional locations of header files ## Your package locations should be listed before other locations # include_directories(include) include_directories( ${catkin_INCLUDE_DIRS} ) ## Declare a cpp library add_library(3dlib include/open_tld_3d/handler3D.cpp include/open_tld_3d/handler3D.hpp) add_library(3Dcvblobs src/3rdparty/cvblobs/blob.cpp src/3rdparty/cvblobs/BlobContour.cpp src/3rdparty/cvblobs/BlobOperators.cpp src/3rdparty/cvblobs/BlobProperties.cpp src/3rdparty/cvblobs/BlobResult.cpp src/3rdparty/cvblobs/ComponentLabeling.cpp src/3rdparty/cvblobs/blob.h src/3rdparty/cvblobs/BlobContour.h src/3rdparty/cvblobs/BlobLibraryConfiguration.h src/3rdparty/cvblobs/BlobOperators.h src/3rdparty/cvblobs/BlobProperties.h src/3rdparty/cvblobs/BlobResult.h src/3rdparty/cvblobs/ComponentLabeling.h) add_library(3Dconfig++ src/3rdparty/libconfig/grammar.c src/3rdparty/libconfig/libconfig.c src/3rdparty/libconfig/libconfigcpp.cc src/3rdparty/libconfig/scanctx.c src/3rdparty/libconfig/scanner.c src/3rdparty/libconfig/strbuf.c src/3rdparty/libconfig/grammar.h src/3rdparty/libconfig/libconfig.h src/3rdparty/libconfig/libconfig.hh src/3rdparty/libconfig/parsectx.h src/3rdparty/libconfig/scanctx.h src/3rdparty/libconfig/scanner.h src/3rdparty/libconfig/strbuf.h src/3rdparty/libconfig/wincompat.h) add_library(3Dlibopentld src/libopentld/imacq/ImAcq.cpp src/libopentld/mftracker/BB.cpp src/libopentld/mftracker/BBPredict.cpp src/libopentld/mftracker/FBTrack.cpp src/libopentld/mftracker/Lk.cpp src/libopentld/mftracker/Median.cpp src/libopentld/tld/Clustering.cpp src/libopentld/tld/DetectionResult.cpp src/libopentld/tld/MedianFlowTracker.cpp src/libopentld/tld/TLD.cpp src/libopentld/tld/TLDUtil.cpp src/libopentld/tld/detector/DetectorCascade.cpp src/libopentld/tld/detector/EnsembleClassifier.cpp src/libopentld/tld/detector/ForegroundDetector.cpp src/libopentld/tld/detector/NNClassifier.cpp src/libopentld/tld/detector/VarianceFilter.cpp) target_link_libraries(3Dlibopentld ${OpenCV_LIBS}) add_library(3Dmain src/opentld/main/Config.cpp src/opentld/main/Config.h src/opentld/main/Gui.cpp src/opentld/main/Gui.h src/opentld/main/Main.cpp src/opentld/main/Settings.cpp src/opentld/main/Trajectory.cpp src/opentld/main/Config.h src/opentld/main/Gui.h src/opentld/main/Main.h src/opentld/main/Settings.h src/opentld/main/Trajectory.h include/open_tld_3d/handler3D.hpp) target_link_libraries(3Dmain 3Dlibopentld 3Dcvblobs 3Dconfig++ 3dlib ${OpenCV_LIBS}) add_executable(projet src/opentld/TheProject.cpp) target_link_libraries(projet 3Dmain 3Dcvblobs 3Dlibopentld 3Dconfig++ 3dlib ${OpenCV_LIBS} ${catkin_LIBRARIES} ${PCL_LIBRARIES}) Originally posted by Maya on ROS Answers with karma: 1172 on 2014-03-30 Post score: 2 Original comments Comment by ahendrix on 2014-03-30: This looks like a linking problem. Can you include your CMakeLists.txt in your post? Comment by Maya on 2014-03-30: Sure thing.
Hellow, I'm just wondering what's the best (most conventional) way of choosing on which topic to publish data. Is it better to set a default topic and remap in the launch file or for example to extract the topic name from on yaml configuration file ? Thanks. Originally posted by Maya on ROS Answers with karma: 1172 on 2014-03-30 Post score: 0
My ROS client is having issues connecting Publishers to topics. Subscribers work flawlessly, and then Publishers get setUp, start listening on a Socket. The only ROS topic that is attempting to subscribe to a topic is /rosout, which calls requestTopic on rosout, receives the connection information, and then never attempts to connect to the Publishers. Can anybody assist me in trying to figure out why ROS is not attempting to connect to the Topic Publishers? Thanks for your assistance! Aaron Response to comment: Yes, I am implementing my own TCPROS/UDPROS client in Java. The client is running locally. This is on turtlesim, all subscribers subscribe to /turtle1/color_sensor, /rosout, /rosout_agg, /turtle1/pose. Then the Publishers are initialized, and on the same topics call registerPublisher on each topic. ROS automatically calls requestTopic at startup on /rosout even without calling registerPublisher on /rosout (why?, this required writing specialized startup code due to how the initialization is started...), lastly, after the /rosout is responded to the subscriber requestTopic the subscriber is not connecting to the Publisher via TCPROS. I've attached a screenshot of rqt_graph, to add further confusion to the question... Originally posted by unknown_entity1 on ROS Answers with karma: 104 on 2014-03-30 Post score: 1 Original comments Comment by dornhege on 2014-03-30: Are you implementing your own tcpros interface? If yes, what exactly are you doing. If no, what code/node setup do you use in ROS that doesn't work. Are you running locally or over the network? Comment by unknown_entity1 on 2014-03-31: @dornhege - I've replied to your comment below the original question, and included a screenshot of rqt_graph for further information. Comment by dornhege on 2014-03-31: I'm don't know the ros internals to make something out of that. Are you aware that there is a rosjava implementation? Comment by unknown_entity1 on 2014-03-31: I am aware there is a ROSJava implementation. Unfortunately, it does not meet the requirements of the system my group is building;) Comment by Mehdi. on 2014-03-31: You might consider installing Rosbridge and contacting it from java using websockets. All you need to do is to include websockets in your java project. An example of rosbridge can be found on this website (here implemented on javascript): http://rosbridge.org/doku.php?id=rosbridge_v2.0_example_commands Comment by unknown_entity1 on 2014-04-01: Thanks Mehdi, I appreciate your suggestion, and, rosbridge does not meet the requirements of the system my group is building. Our client will be highly efficient, very flexible, and work out of the box in autonomous robots, built by other robots, without the need for people in the middle.
Hi, I want to run a laser scanner in ROS hydro. First of all I can connect to laser via hokuyo_node. But when I want to visit output data with RVIS, I can't! when I add laserscanner and change topic to scan , status changes to error. And also I try to log data with "rosbag record -O name /scan". But unfortunately I faced to this error: /opt/ros/hydro/lib/rosbag/record: symbol lookup error: /opt/ros/hydro/lib/librosbag.so: undefined symbol: _ZN3ros7console5printEPNS0_10FilterBaseEPN7log4cxx6LoggerENS0_6levels5LevelEPKciS9_S9_z I try: "apt-get update" and "apt-get upgrade" but it doesn't work yet! What can I do now? Thanks. Originally posted by adroit89 on ROS Answers with karma: 33 on 2014-03-30 Post score: 0 Original comments Comment by dornhege on 2014-03-30: What does "doesn't work" mean exactly? What errors do you get for apt-get and when you set the laser display in rviz? Comment by dornhege on 2014-03-30: The error that you see might be fixable with apt-get upgrade. Comment by adroit89 on 2014-03-31: I meant that even after upgrade, rosbag doesn't work. But now I can solve problem with rosbag by another solution in this link "http://answers.ros.org/question/123421/hydro-kinect-ubuntu-1204-library-issue/" I run roscore and then hokuyo_node and then rvis and I set laser scanner and topic scan.
Hello, I possess a Xtion camera and I'm trying to retrieve the Point Cloud AND the rgb image at the same time through a Callback Function. I tried using message_filters to do this as such : message_filters::Subscriber<sensor_msgs::PointCloud2> cloud_sub(nh, "/camera/depth/points_xyzrgb", 100); message_filters::Subscriber<sensor_msgs::Image> image_sub(nh, "/camera/rgb/image", 100); message_filters::TimeSynchronizer<sensor_msgs::PointCloud2, sensor_msgs::Image> sync(cloud_sub, image_sub, 10); sync.registerCallback(boost::bind(&Main::doWork, main, _1, _2)); The code is working but since the message are not published at the exact same time (it is actually my guess of why the callback is never call), the Callback is never called and nothing happen. My second idea would have been to store the rgb data each time the call back for this image is called and compared the time stamp of this image with the PointCloud one, for them not to be to far apart. But it's not a very elegant solution and I'm wondering if nothing better exist to do that in ROS. I would love to be able to give messages filter a space in which it can consider two messages to be published at the same time but I didn't find a way to do it in the doc. I know already that I can find the rgb image from the pointCloud but the calculation are more intensive if I do it that way... Thanks for you help and time ! Originally posted by Maya on ROS Answers with karma: 1172 on 2014-03-30 Post score: 0 Original comments Comment by aihanbing on 2018-12-27: Now I got the same problem. The code is still working without error/warning, but I can not get any information. I checked the code and found the Callback is never called. Could you give me some suggestions? Thanks!
Hi , I built my own robot model as a urdf file .. Like In this Tutorial It looks In RVIZ : Now, I want to start to test apps on my model like teleop to start to move it with Keyboard . What Should I do ?? I think firstly Open a world to Gazebo Secondly, Load my robot on the world .... I DON'T Know HOW ??????????? Third, Start to operate teleop node to start to move .... I WANT a CODE fit to my robot model ?? Actually I can't find a Stack that can operate apps on my robot thanks Originally posted by salma on ROS Answers with karma: 464 on 2014-03-31 Post score: 3 Original comments Comment by raissi on 2016-06-07: hello salma , i am now working on same you project , really i found the problems in the control for move it . i want your help if you have a time for give me some indications ! thank you . my gmail : [email protected] for contact me . i am in wait your help by all passion ! thank you Comment by Zahraa23 on 2023-06-17: Hello there, I want to ask you if the teleop package of turtlebot worked with your project as I am facing the same problem now ?
Hello, How do you list/know the available nodes to run using rosrun in a package??? Thanks. --Luis Originally posted by Luis Ruiz on ROS Answers with karma: 114 on 2014-03-31 Post score: 0
Hi all ! I'd like to know if this gyro sensor is suitable for turtlrbot 1 or not ? Voltage: 5V Analog output the link describing this gyro is in the comment. waiting for you answers. Best regards. Originally posted by assil on ROS Answers with karma: 41 on 2014-03-31 Post score: 0 Original comments Comment by assil on 2014-03-31: http://support.robotis.com/en/ follow this hyper links: Product Information -> ROBOT PARTS -> Sensor -> Gyro Sensor
Hello, I am running ROS Hydro on a Turtlebot 2 (Kobuki + Kinect) I have been trying to use teleop + gmapping to get a decent map of my cubicled office building, but after slowly perimeter-driving and looping back through several hallways, inevitably, the map will eventually do something absurd like this: I started with the first two hallways on the right, constantly weaving in and out of cubicles and repeating areas. The picture of those hallways really isn't bad, but when I started exploring the third vertical hallway after 30+ minutes, gmapping suddenly decided to create that horizonal hallway beginning to form on the bottom-left, which is extremely off. Anything after that point in time got progressively worse. This happens fairly frequently when things seem to be going otherwise well. The following are my gmapping parameters: <launch> <arg name="scan_topic" default="scan" /> <node pkg="gmapping" type="slam_gmapping" name="slam_gmapping" output="screen"> <param name="base_frame" value="base_footprint"/> <param name="odom_frame" value="odom"/> <param name="map_update_interval" value="2.0"/> <param name="maxUrange" value="6.0"/> <param name="maxRange" value="8.0"/> <param name="sigma" value="0.05"/> <param name="kernelSize" value="1"/> <param name="lstep" value="0.05"/> <param name="astep" value="0.05"/> <param name="iterations" value="5"/> <param name="lsigma" value="0.075"/> <param name="ogain" value="3.0"/> <param name="lskip" value="0"/> <param name="srr" value="0.01"/> <param name="srt" value="0.02"/> <param name="str" value="0.01"/> <param name="stt" value="0.02"/> <param name="linearUpdate" value="0.2"/> <param name="angularUpdate" value="0.1"/> <param name="temporalUpdate" value="-1.0"/> <param name="resampleThreshold" value="0.5"/> <param name="particles" value="100"/> <param name="xmin" value="-30.0"/> <param name="ymin" value="-30.0"/> <param name="xmax" value="30.0"/> <param name="ymax" value="30.0"/> <!-- <param name="xmin" value="-1.0"/> <param name="ymin" value="-1.0"/> <param name="xmax" value="1.0"/> <param name="ymax" value="1.0"/> --> <param name="delta" value="0.05"/> <param name="llsamplerange" value="0.01"/> <param name="llsamplestep" value="0.01"/> <param name="lasamplerange" value="0.005"/> <param name="lasamplestep" value="0.005"/> <remap from="scan" to="$(arg scan_topic)"/> </node> </launch> I have changed very little from the default turtlebot configuration, besides lowering the linear/angular update, slightly increasing the number of particles, and decreasing the map update interval. Since I know that a failure in scan matching causes gmapping to rely on odometry, I wonder if my odometry is decent enough. I ran the test suggested in the navigation tuning guide (http://wiki.ros.org/navigation/Tutorials/Navigation%20Tuning%20Guide): I booted up minimal.launch, keyboard_teleop.launch , gmapping_demo.launch, and view_navigation_app.launch In rviz, I set the global frame to odom, turned off all costmaps, and put the decay time on /scan to 600s. I did all the following tests at the lowest teleop speed. This is the result of performing three rotations in my standard-sized cubicle: Entrance to cubicle, staring at wall ~5ft away: Drove straight towards wall: Circled in cube, drove outside, turned around, drove back inside: So my question is, how do I get better gmapping results? Is this odometry decent enough? Do I need to tweak gmapping SLAM parameters? "srr", "srt" error parameters? Is it time to get a sensor better than the Kinect or find an algorithm better than gmapping? Am I doomed to having to map only a few halls at a time and then manually stitch the PGMs together? Additionally, if anyone has some helpful tips on how to drive to get the best map (speed, looping, etc), I would love to hear them. Thanks in advance! Originally posted by BlitherPants on ROS Answers with karma: 504 on 2014-03-31 Post score: 2 Original comments Comment by Tirjen on 2014-04-01: Looking at the images you posted, it seems like the odometry isn't very good, so maybe using higher values of parameters srr, str and in particular of srt and stt could help... Can you try? Moreover the kinect sensor has a small fov and obviously a laser scan with larger fov would perform much better. Comment by BlitherPants on 2014-04-01: Is there any good way to figure out exactly how much str, etc should be changed? The method I'm using (accumulating laser scans with odom as the fixed frame) won't visibly reflect those changes... Comment by Tirjen on 2014-04-01: Just try to move around the robot and see map result... i would rise srt and stt to something like 0.5 and the other two to 0.2... Otherwise, did you try to use those parameters? https://github.com/turtlebot/turtlebot_apps/blob/hydro/turtlebot_navigation/launch/includes/gmapping.launch.xml Comment by BlitherPants on 2014-04-02: The link is broken, but if you see the default turtlebot gmapping file I posted above, srr = 0.01, srt = 0.02, str = 0.01, stt = 0.02. I will try your suggestions. Comment by BlitherPants on 2014-04-02: My question was about seeing it line up to know I have them at good values, since those params affect gmapping and not my method of raw laserscans and odometry. Maybe launching gmapping with a particle count of 1 would show how good the alignment is?
Hellows, Another designing question under ROS. I have a node that I programmed, it used param from the Param Server and subscribe to a topic and publish two topics. I wish to launch to node twice using a launch file. All my parameters arr in yaml file. But I can't find any way for the code in C++ to go search the parameters in two different namespace without compiling two executable with just the namespace of difference in the getParam() function and it really is not optimal. For now my function look like : my_node.param<std::string>("/namespace1/source",source, "camera/rgb/image"); Is there any way to not need the name space hard coded ? [EDIT] I'll try to be more precise :). For example I use the tag to remap the topic that are given by the two nodes. So I have "topic1" and "topic2". That is ok. But now I want to publish parameters which have the same name but associated to each node. Let's say a parameter name /source for each of the node but under the namespace Node1/source, Node/source. This can be done with the launch file, I just need to load two yaml file or so. But now for now, my code to get in the param in my C++ code is like this my_node.param<std::string>("/Node1/source",source, "camera/rgb/image"); for the first one my_node.param<std::string>("/Node2/source",source, "camera/rgb/image"); for the second one. I'm wondering if there is a way to right my_node.param<std::string>("/source",source, "camera/rgb/image"); And the node would understand by itself that it's either Node1/source or Node2/source that they need. Hope I have been clearer. Thanks a lot =) Originally posted by Maya on ROS Answers with karma: 1172 on 2014-03-31 Post score: 0 Original comments Comment by dornhege on 2014-03-31: It's definitely possible. Can you be more concrete on what your resulting setup should look like, i.e. which topics would you like to have for each node and where should the names come from? It looks to me as if you might not need any parameters and can do everything from launch files.
Is it possible to keep axis value in rqt_plot for the next time (with either matplot or pyqtgraph) ? When I reopen rqt_plot, it plot the last chosen topic but it does not keep the manual axis value that I have set previously. Originally posted by Vincent R on ROS Answers with karma: 365 on 2014-03-31 Post score: 0 Original comments Comment by Dorian Scholz on 2014-09-12: This was not implemented when you asked. But Austin has been working on related issues and it might be working as you want it now. If not please file as feature request. Comment by ahendrix on 2014-09-12: This shouldn't be hard to do, but it isn't implemented. You should file a feature request.
I have just installed RoboEarth but am having problems running re_comm as detailed here wiki.ros.org/roboearth_stack/Tutorials/Using%20recorded%20models%20for%20object%20detection The output rmb209@rmb209-Studio-1555:~/ros/stacks/knowrob$ rosrun re_comm run rospack Error: stack/package re_comm not found Could anyone suggest a reason or solution for this? I have finished wiki.ros.org/roboearth_stack the installation instructions here, which seem to have built without any issues. Thanks. Originally posted by rmb209 on ROS Answers with karma: 80 on 2014-03-31 Post score: 0 Original comments Comment by rmb209 on 2014-03-31: This is on fuerte
I am wondering where the resizing should be taking place. With the global costmap and a static layer, the map gets resized when a map comes in. But when I use the local costmap with just an obstacle, footprint and inflation layer there should be a point where the dimension should be read in. Can you tell me where this should happen? Can't find it... I am on ROS Hydro with the hydro-devel navigation branch. Originally posted by madmax on ROS Answers with karma: 496 on 2014-03-31 Post score: 2
after running 'rosdep update', it shows: reading in sources list data from /etc/ros/rosdep/sources.list.d Hit http://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml ERROR: unable to process source [http://github.com/ros/rosdistro/raw/master/rosdep/base.yaml]: <urlopen error _ssl.c:489: The handshake operation timed out> (http://github.com/ros/rosdistro/raw/master/rosdep/base.yaml) ERROR: error loading sources list: The read operation timed out this is my first time to install ROS, and I don't know how to deal with this error.. What I have to do now? Thank you! Hello demmeln~ after I run python -c 'from urllib2 import urlopen; print(urlopen("http://github.com/ros/rosdistro/raw/master/rosdep/base.yaml", timeout=5).info());' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 406, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 519, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 438, in error result = self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/usr/lib/python2.7/urllib2.py", line 406, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 519, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 438, in error result = self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/usr/lib/python2.7/urllib2.py", line 400, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 418, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1215, in https_open return self.do_open(httplib.HTTPSConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open raise URLError(err) urllib2.URLError: <urlopen error timed out> now after running rosdep update...: reading in sources list data from /etc/ros/rosdep/sources.list.d ERROR: unable to process source [https://github.com/NikolausDemmel/rosdistro/raw/master/rosdep/osx-homebrew.yaml]: <urlopen error _ssl.c:489: The handshake operation timed out> (https://github.com/NikolausDemmel/rosdistro/raw/master/rosdep/osx-homebrew.yaml) Hit https://github.com/NikolausDemmel/rosdistro/raw/master/rosdep/gentoo.yaml ERROR: unable to process source [https://github.com/NikolausDemmel/rosdistro/raw/master/rosdep/base.yaml]: <urlopen error _ssl.c:489: The handshake operation timed out> (https://github.com/NikolausDemmel/rosdistro/raw/master/rosdep/base.yaml) ERROR: error loading sources list: The read operation timed out really thank you demmeln~ Originally posted by liuhyuu on ROS Answers with karma: 15 on 2014-03-31 Post score: 1 Original comments Comment by liuhyuu on 2014-04-02: if you have the same problem .maybe you can try to repeat the command 'rosdep update'.. I don't know what happened but sometimes it really works ..
Hi, I got face recognition tutorial on ros wiki page: www.ros.org/wiki/face_recognition but i can't build it. I tried to build the workspace using catkin_make and rosmake. I use the command "catkin-make" in the face_recognition workaspace but it already contains a CMakeLists.txt so the command doesn't work. I also tried the "rosmake face_recognition" but I have this error "ERROR: No arguments could be parsed into valid package or stack names." despite the fact that there is a "stack.xml" file in the folder. Can somebody help me please? Thank you Originally posted by RosFaceNoob on ROS Answers with karma: 42 on 2014-03-31 Post score: 0 Original comments Comment by demmeln on 2014-04-01: Please edit your question to include more information, like the exact commands you are executing and the full output you are getting. Comment by RosFaceNoob on 2014-04-01: Sorry. I edit the question.
when i run the following command i got "Failed to connect to the XBee" command..."rosrun rosserial_xbee setup_xbee.py /dev/ttyUSB0 0" i am using ros-hydro. Originally posted by pavanpatel on ROS Answers with karma: 61 on 2014-03-31 Post score: 0 Original comments Comment by makokal on 2014-04-01: A little more context information will go a long way in helping you.
Hellow, I'm trying to obtain information from the a tf transform. I've loaded my URDF file in the parameter server and run robot and joint state publish. Here is a picture of some links : So I can see that the transform between /base_link and /camera is publish. Now here is my code which is very simple as it is a test : #include <ros/ros.h> #include <tf/transform_listener.h> int main(int argc, char** argv){ ros::init(argc, argv, "my_tf_listener"); ros::NodeHandle node; tf::TransformListener listener(ros::Duration(10)); tf::StampedTransform transform; try{ geometry_msgs::PointStamped base_point; listener.lookupTransform("/camera", "/base_link", ros::Time(0), transform); } catch(tf::TransformException& ex){ ROS_ERROR("Received an exception trying to transform a point from \"camera\" to \"base_link\": %s", ex.what()); } }; I'm just trying to have the transformation between /camera and /base_link. But I run in that error : rosrun tobot_goal listen [ERROR] [1396346328.110845542]: Received an exception trying to transform a point from "camera" to "base_link": Frame id /camera does not exist! Frames (1): which would tend to mean that /camera is not publish. And if I try with any other frame I have, the result is the same... Why can't I seem to not access those transformations ? Thanks a lot ! Originally posted by Maya on ROS Answers with karma: 1172 on 2014-04-01 Post score: 1
I've implemented a quick script to rename catkin packages (details in the README). Does this script seem useful enough to incorporate into any core packages? Does anyone have any other existing solutions out there? Originally posted by eacousineau on ROS Answers with karma: 174 on 2014-04-01 Post score: 2 Original comments Comment by joq on 2014-04-01: The big problem with renaming a package is fixing all the references in other packages that depend on it. That is why it is best to think carefully about the name when starting out. Comment by Dirk Thomas on 2014-04-01: In general you might want to use ${PROJECT_NAME} as much as possible in your CMake code. Then you have only two line where the package name is mentioned: in the package.xml as well as the project() in CMake. Comment by eacousineau on 2014-04-01: @joq - Yeah, this definitely should not be used to change a package name at a whim, but it helps for an inexperienced / rushed developer (e.g. a grad student :P) who prototyped a package for internal use and wants to then distribute it with a less ambiguous name at a later date. In addition, the script is built to fix the name references in other packages - depends tags, catkin dependencies, header files, include directories, etc. Comment by eacousineau on 2014-04-02: @Dirk Thomas - Will do, thanks! I looked at templates/CMakeLists.txt.in, and it seems like @{name} is used in place of ${PROJECT_NAME}. Would it be worthwhile to change that? Comment by Dirk Thomas on 2014-04-02: The referenced template already uses ${PROJECT_NAME} all over the place. So I don't think anything needs to be changed there.
Hi, I think some information is missing on the Tutorial for Marker visualization in rviz (Here would be the link to rviz/Tutorials/Markers%3A%20Basic%20Shapes if I had enough karma). I should be written somewhere that "fixed frame" should be set to "/my_frame" in rviz otherwise nothing can be seen. Originally posted by galou on ROS Answers with karma: 265 on 2014-04-01 Post score: 1 Original comments Comment by Kurt Leucht on 2014-04-03: I had the same issue and tried to set it to /my_frame but that didn't exist either. I got stuck and asked for help and the community was not very helpful and I've never run rviz since. I will probably figure it out someday but am quite frustrated with the tutorial at the moment. Comment by Kurt Leucht on 2014-04-03: Tutorials marked as "beginner" level should be newbie friendly (in my opinion) and work right out of the box with no external knowledge required of the tool that is being demonstrated by said tutorial.
Hi, I just noticed a strange error when executing rosdep update. $ rosdep update reading in sources list data from /etc/ros/rosdep/sources.list.d Hit file:///etc/ros/rosdep/local.yaml Hit https://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml ERROR: unable to process source [https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml]: rosdep data from [https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml] is not a YAML dictionary Hit https://github.com/ros/rosdistro/raw/master/rosdep/base.yaml Hit https://github.com/ros/rosdistro/raw/master/rosdep/python.yaml Hit https://github.com/ros/rosdistro/raw/master/rosdep/ruby.yaml Hit https://github.com/ros/rosdistro/raw/master/releases/fuerte.yaml Ignore legacy gbpdistro "groovy" Ignore legacy gbpdistro "hydro" Query rosdistro index https://raw.github.com/ros/rosdistro/master/index.yaml Add distro "groovy" Add distro "indigo" Add distro "hydro" updated cache in /Users/demmeln/.ros/rosdep/sources.cache ERROR: Not all sources were able to be updated. [[[ ERROR: unable to process source [https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml]: rosdep data from [https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml] is not a YAML dictionary ]]] If I look at https://github.com/ros/rosdistro/blob/master/rosdep/gentoo.yaml, it looks fine, however for me, the raw version https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml which rosdep downloads seems to be empty (0 bytes). Is this some faulty caching on github's side, or somewhere on my machine? I get the same with browser and from command line (wget), so not sure what kind of cache that would be... Can anyone confirm the empty file with the "raw" link? Originally posted by demmeln on ROS Answers with karma: 4306 on 2014-04-01 Post score: 0
Since I had to offload most of the computation done for a project I'm working on to another computer, I wanted to substitute the netbook I'm using right now on my homebrew turtlebot with a system on a chip, like the beaglebone black. I wanted to know if it was enough to handle pretty much just the kinect and the serial interface to the Create, or if I had to consider other systems. From what I've read, it seems like it would be better to use a dual core SoC, like the pandaboard, but it would cost me more than using two other "smaller" SoCs, so another possibility I was considering was to use more than one board and further distribute the nodes among them (eg, one board dedicated to the kinect and the other to the create). Can anyone offer some advise? Originally posted by Orgrim on ROS Answers with karma: 11 on 2014-04-01 Post score: 1 Original comments Comment by demmeln on 2014-04-01: @kalectro might have something to say about it? Comment by kalectro on 2014-04-01: I agree with @ahendrix :)
When trying to use the RoboEarth API through the website, or using the object Model Downloader as detailed in this tutorial. I get a database exception error as detailed below. DBException at /objects/result 'Hbase connection failed: Could not connect to pcube:9090' [ INFO] [1396359404.695247797]: SearchObjects (UID: videogame.kinectadventures): Failed This happen whether I am logged in or not, so I assume it is a general issue. Is there someone I should alert to this issue? Originally posted by rmb209 on ROS Answers with karma: 80 on 2014-04-01 Post score: 0
Hi, I have a robot with double ackermann kynematics/steering, this means that the unlike in a conventional car, you can also steer the rear wheels and make use of crab like steering. Is there any open source path planner for these kind of robots? Can for example OMPL be used for this? Cheers, Oier Originally posted by Oier on ROS Answers with karma: 145 on 2014-04-01 Post score: 0 Original comments Comment by ahendrix on 2014-04-01: Are you looking for a planner for the ROS navigation stack, or just a generic motion planning library? Comment by Oier on 2014-04-07: @ahendrix I am looking just for a generic motion planning library, because the ROS navigation stack and MoveIt have too much overhead/features for my applications requirements. But the robot is built upon ROS and I use rviz for simulation. What motion planners can be used for double ackermann? Comment by abraham on 2019-02-27: can you please post the link to you urdf file am planning to do slam double Ackerman ,but i can't able to fine any sample to start with .
My project depends on libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev. To this end for groovy and hydro in package.xml I added a build and run dependency on ffmpeg that brings from rosdep the expected dependencies: In https://github.com/ros/rosdistro/blob/master/rosdep/base.yaml there is: ffmpeg: arch: [ffmpeg] debian: [ffmpeg, libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev] fedora: [ffmpeg-devel] gentoo: portage: packages: [media-plugins/ffmpeg] macports: [ffmpeg] ubuntu: [ffmpeg, libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev] Now for indigo it seems that the ffmpeg debian package is not available for trusty. We cannot change rosdep/base.yaml to the following (even if it shall work for trusty): debian: [libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev] ubuntu: [libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev] Shall I introduce new entries for each debian package ? libavcodec-dev: debian: [libavcodec-dev] ubuntu: [libavcodec-dev] libavformat-dev: debian: [libavformat-dev] ubuntu: [libavformat-dev] libavutil-dev: debian: [libavutil-dev] ubuntu: [libavutil-dev] libswscale-dev: debian: [libswscale-dev] ubuntu: [libswscale-dev] Any ideas ? Thanks Fabien Originally posted by Fabien Spindler on ROS Answers with karma: 126 on 2014-04-01 Post score: 1