instruction
stringlengths
40
28.9k
Hi, all, I found some old ROS packages(written in fuerte or even older version of ROS) where the outdated .vcg files are used to view the status of robot. I think it is very helpful to understand these packages if I can open these .vcg files in RVIZ. Can someone tell me how to get it? Thank you! Originally posted by scopus on ROS Answers with karma: 279 on 2014-09-01 Post score: 0 Original comments Comment by fherrero on 2014-09-01: I think a vcg-rviz conversion tool doesn't exist (yet?)
I want to install the ros on the ARM with ubuntu 11.10, http://wiki.ros.org/hydro/Installation/UbuntuARM,this web site provides the methods of ubuntu 13.04, ubuntu 12.10 and ubuntu 12.04. while I need to transplant ros to the ARM with ubuntu 11.10. How can I do? Are there relevant tutorials or referencedata can refer. please help me.Thank you very much. Originally posted by Alice63 on ROS Answers with karma: 63 on 2014-09-01 Post score: 0
Hi, I am trying to access the rgdb information of a Primesense sensor. I have ros-hydro-openni2-* installed using sudo apt-get and it previously worked just fine with the following command: rosrun openni2_camera openni2_camera_node but now when I run this command this is what I get: ~device_id is not set! Using first device. [ INFO] [1409576381.725333109]: No matching device found.... waiting for devices. Reason: std::string openni2_wrapper::OpenNI2Driver::resolveDeviceURI(const string&) @ /tmp/buildd/ros-hydro-openni2-camera-0.1.3-0precise-20140720-0503/src/openni2_driver.cpp @ 623 : Invalid device number 1, there are 0 devices connected. [ INFO] [1409576384.725593448]: No matching device found.... waiting for devices. Reason: std::string openni2_wrapper::OpenNI2Driver::resolveDeviceURI(const string&) @ /tmp/buildd/ros-hydro-openni2-camera-0.1.3-0precise-20140720-0503/src/openni2_driver.cpp @ 623 : Invalid device number 1, there are 0 devices connected. I used to be able to access the rgbd information and the topics using exactly the same command about a month ago. I dont know if there has been an update which has led to this. I have ubuntu 12.04 and ROS hydro installed. I get the same error whether the Primesense sensor is plugged in or not and lsusb doesnt detect this device. I have tried setting the UsbInterface=0 in /etc/openni2/PS1080 as suggested in one of the posts but it didn't help. I would really appreciate your help on this. Any suggestions are welcome, thanks in advance! Update 20140903 So this is the output $ lsusb Bus 001 Device 003: ID 058f:9540 Alcor Micro Corp. Bus 001 Device 002: ID 8087:8000 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 17ef:1010 Lenovo Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 005: ID 5986:026a Acer, Inc Bus 002 Device 004: ID 138a:0017 Validity Sensors, Inc. Bus 002 Device 003: ID 1199:a001 Sierra Wireless, Inc. Bus 002 Device 007: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse Bus 002 Device 006: ID 17ef:100f Lenovo Bus 002 Device 002: ID 17ef:1010 Lenovo Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub // now with the Primesense connected $ lsusb Bus 001 Device 003: ID 058f:9540 Alcor Micro Corp. Bus 001 Device 002: ID 8087:8000 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 17ef:1010 Lenovo Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 005: ID 5986:026a Acer, Inc Bus 002 Device 004: ID 138a:0017 Validity Sensors, Inc. Bus 002 Device 003: ID 1199:a001 Sierra Wireless, Inc. Bus 002 Device 007: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse Bus 002 Device 006: ID 17ef:100f Lenovo Bus 002 Device 002: ID 17ef:1010 Lenovo Bus 002 Device 008: ID 1d27:0609 ASUS Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub I tried another USB port this time it works. I can see the topics but it gives me warnings when I try to see the images in rviz. this is what I get when I do rosrun openni2_camera openni2_camera_node [ WARN] [1409670134.768244447]: ~device_id is not set! Using first device. Warning: USB events thread - failed to set priority. This might cause loss of data... [ INFO] [1409670134.765734383]: Device "1d27/0609@2/13" with serial number "1402170229" connected and for rviz : [ WARN] [1409675797.585762340]: OGRE EXCEPTION(2:InvalidParametersException): Stream size does not match calculated image size in Image::loadRawData at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreImage.cpp (line 283) [ERROR] [1409675797.585842146]: Error loading image: OGRE EXCEPTION(2:InvalidParametersException): Stream size does not match calculated image size in Image::loadRawData at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreImage.cpp (line 283) Originally posted by zeinab on ROS Answers with karma: 88 on 2014-09-01 Post score: 0 Original comments Comment by Martin Peris on 2014-09-01: It might be that the PrimeSense sensor died, it is sad, but it happened to me before. If you have spare, try another sensor.
Hi all, After interacting with some objects on a table, the grasp of the PR2 opens. I need to close it after each iteration, to be able to compare the changes in the scene before and after the interaction. I look for something fast. So I guess the solution must be very simple. Something as setting a number to a joint, but I am not able to find it by myself... I can close the gripper using Pr2GripperCommandAction but it is quite slow: #include <ros/ros.h> #include <pr2_controllers_msgs/Pr2GripperCommandAction.h> #include <actionlib/client/simple_action_client.h> #include <unistd.h> // Our Action interface type, provided as a typedef for convenience typedef actionlib::SimpleActionClient<pr2_controllers_msgs::Pr2GripperCommandAction> GripperClient; GripperClient* gripper_clientr_; GripperClient* gripper_clientl_; //Open the gripper void open(GripperClient* gripper_client_){ pr2_controllers_msgs::Pr2GripperCommandGoal open; open.command.position = 0.10; open.command.max_effort = -1.0; // Do not limit effort (negative) ROS_INFO("Sending open goal"); gripper_client_->sendGoal(open); gripper_client_->waitForResult(); if(gripper_client_->getState() == actionlib::SimpleClientGoalState::SUCCEEDED) ROS_INFO("The gripper opened!"); else ROS_INFO("The gripper failed to open."); } //Close the gripper void close(GripperClient* gripper_client_){ pr2_controllers_msgs::Pr2GripperCommandGoal squeeze; squeeze.command.position = 0.0; // squeeze.command.max_effort = 50.0; // Close gently squeeze.command.max_effort = -1.0; // Close gently ROS_INFO("Sending squeeze goal"); gripper_client_->sendGoal(squeeze); gripper_client_->waitForResult(); if(gripper_client_->getState() == actionlib::SimpleClientGoalState::SUCCEEDED) ROS_INFO("The gripper closed!"); else ROS_INFO("The gripper failed to close."); gripper_client_->cancelAllGoals(); } int main(int argc, char** argv){ ros::init(argc, argv, "simple_gripper"); gripper_clientr_ = new GripperClient("r_gripper_controller/gripper_action", true); while(!gripper_clientr_->waitForServer(ros::Duration(5.0))){ ROS_INFO("Waiting for the r_gripper_controller/gripper_action action server to come up"); } open(gripper_clientr_); close(gripper_clientr_); return 0; } Thanks Carlos Originally posted by Maestre on ROS Answers with karma: 11 on 2014-09-01 Post score: 0
Hi, This must be simple to do, how do I set the resolution of a depthimage? For some reason my xtion is publishing 120x160 pixles. I'm using: rosrun openni2_camera openni2_camera_node To start the process (roslaunch isn't working for me unfortunately ) Many Thanks Mark Originally posted by MarkyMark2012 on ROS Answers with karma: 1834 on 2014-09-01 Post score: 0
I did a upgrade to Indigo so I could get Rviz working properly. I am trying to install the xv_laser_driver. I get an error with catkin_make. This is what I get: Base path: /home/brent/catkin_ws Source space: /home/brent/catkin_ws/src Build space: /home/brent/catkin_ws/build Devel space: /home/brent/catkin_ws/devel Install space: /home/brent/catkin_ws/install Running command: "make cmake_check_build_system" in "/home/brent/catkin_ws/build" Running command: "make -j2 -l2" in "/home/brent/catkin_ws/build" [ 0%] Built target _beginner_tutorials_generate_messages_check_deps_AddTwoInts [ 0%] Built target beginner_tutorials_generate_messages_check_deps_Num [ 0%] Built target std_msgs_generate_messages_lisp [ 0%] Built target std_msgs_generate_messages_cpp [ 0%] Built target std_msgs_generate_messages_py [ 16%] [ 25%] Built target rbx1_nav_gencfg Building CXX object xv_11_laser_driver/CMakeFiles/neato_laser_publisher.dir/src/neato_laser_publisher.cpp.o [ 41%] Built target beginner_tutorials_generate_messages_lisp [ 58%] Built target beginner_tutorials_generate_messages_cpp [ 91%] Built target beginner_tutorials_generate_messages_py [ 91%] Built target beginner_tutorials_generate_messages [100%] Building CXX object xv_11_laser_driver/CMakeFiles/neato_laser_publisher.dir/src/xv11_laser.cpp.o /home/brent/catkin_ws/src/xv_11_laser_driver/src/xv11_laser.cpp: In member function ‘void xv_11_laser_driver::XV11Laser::poll(sensor_msgs::LaserScanstd::allocator<void >::Ptr)’: /home/brent/catkin_ws/src/xv_11_laser_driver/src/xv11_laser.cpp:109:7: error: ‘rpms’ was not declared in this scope rpms=0; ^ make[2]: *** [xv_11_laser_driver/CMakeFiles/neato_laser_publisher.dir/src/xv11_laser.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /home/brent/catkin_ws/src/xv_11_laser_driver/src/neato_laser_publisher.cpp: In function ‘int main(int, char**)’: /home/brent/catkin_ws/src/xv_11_laser_driver/src/neato_laser_publisher.cpp:71:23: error: ‘class xv_11_laser_driver::XV11Laser’ has no member named ‘rpms’ rpms.data=laser.rpms; ^ make[2]: *** [xv_11_laser_driver/CMakeFiles/neato_laser_publisher.dir/src/neato_laser_publisher.cpp.o] Error 1 make[1]: *** [xv_11_laser_driver/CMakeFiles/neato_laser_publisher.dir/all] Error 2 make: *** [all] Error 2 Invoking "make" failed I know you guys are probably tired from my on going problem with this tutorial, but I do appreciate your help. Originally posted by Morpheus on ROS Answers with karma: 111 on 2014-09-01 Post score: 0
Hi all, I just decided to release for indigo a package that I had working for hydro and could not solve a problem with an external shared library. My package is avt_vimba_camera, a driver for Allied Vision Technologies cameras using ethernet (mainly). For that I need to use AVT SDK called VIMBA. In my package, I have VIMBA libraries and I "find_library" them from the CMakeLists.txt, who checks for the appropiate architecture (32 vs 64 bit). The package itself compiles on my machine and on another machine with no issue at all, but on jenkins, the library cannot be found (example). What is the difference on these builfarms that cause the library to be "NOTFOUND"? Originally posted by Miquel Massot on ROS Answers with karma: 1471 on 2014-09-01 Post score: 1
After making with catkin_make, when I start my node with rosrun, I get the following message: You have chosen a non-unique executable, please pick one of the following: /home/name/ros/devel/lib/gero_move/servo_driver /home/name/ros/src/gero_move/servo_driver CMakeLists.txt is as follows: cmake_minimum_required(VERSION 2.8.3) project(gero_move) find_package(catkin REQUIRED COMPONENTS roscpp std_msgs gero_msgs message_generation) catkin_package( CATKIN_DEPENDS gero_msgs) add_executable(servo_driver servo_driver.cpp) I use Ubuntu and ROS Indigo. Even if I delete build and devel directory and make catkin_make again, it creates both files new. What could be root cause for this? Thanks for any help :-) Originally posted by Johannes Jaegers on ROS Answers with karma: 70 on 2014-09-01 Post score: 0 Original comments Comment by ahendrix on 2014-09-01: Can you edit your question to add your CMakeLists.txt? Comment by Johannes Jaegers on 2014-09-01: Thanks for your kind request, I added it. Comment by Andromeda on 2014-09-01: not sure, but please try to rename your .cpp file with another name and try again: for istance: add_executable(servo_driver main_servo.cpp) Comment by Johannes Jaegers on 2014-09-02: Thanks a lot for your help, when I delete it in the src directory, it does not get recreated again by catkin_make. So I assume it is right, that the executable is only in the devel directory?What do I do with data files I have to read in, do I have to make catkin copy this file to the devel directo? Comment by Johannes Jaegers on 2014-09-02: Ok, I found out that working directory is the workspace, for me home/jonny/ros. So if I place data files there, I can access them with a relative pathname. Thanks a lot for all your answeres, it helped me a lot!! :-) Ahendirx, can you convert your comment to an answer, so I can mark as solved?
Hello All, I'm attempting to use rosserial on a DAGU T'REX Motor controller to receive statuses and send commands to it, but I wanted to become familiar with rosserial first. So, I began working through the tutorials for rosserial, initially on my Ubuntu 14.04 VM (where my installation of ROS indigo resides), specifically the Publisher tutorial for my Arduino Mega 256. Everything worked beautifully and without a hitch. I was able to see the topic and subscribe to it to receive the published "hello world!" string. But, if work through the same tutorial on the Mac side (setting up the IDE and compiling/uploading the sketch), and then connect my arduino back to my Ubuntu VM, rosserial_python will never synch up to forward the topic to the ROS system. One thing to note: to setup ros_lib for my Mac, I just copied the ros_lib folder from the libraries folder on my VM to the libraries folder on my Mac. Would anyone have a suggestion as to my this may be happening? Originally posted by Donny3000 on ROS Answers with karma: 55 on 2014-09-01 Post score: 0
Recently I put another question about odometry (you see it here). Even if the question was answered with courtesy by aHendrix I ve geting more confused about the odometry of a robot. Let's start with an easy robot created just for fun and for simulation porpouses. No data are collected by scanner, laser, GPS or whatever... So: in absence of odometry data I must change the variable (line 12-18 of the tutorial) with other changing variables to "simulate" the encoder/decoder of my imaginary robot. In my code I used to integrate the geometry_msgs/Twist information of the /cmd_vel (generated automatically by move_base)topic over time to see the robot moving in Rviz. Here my code: void updateVel( const geometry_msgs::TwistPtr& msg ) { vel_x = msg->linear.x; vel_y = msg->linear.y; vel_z = msg->linear.z; rot_x = msg->angular.x; rot_y = msg->angular.y; rot_z = msg->angular.z; } and here the broadcast of the odometry informations and transformations (running in a loop) .... double position_x = vel_x; double position_y = vel_y; double position_z = vel_z; while( ros::ok() ) { position_x = vel_x; position_y = vel_y; position_z = vel_z; geometry_msgs::Quaternion odom_quat = tf::createQuaternionMsgFromYaw( rot_z ); odom_trans.header.stamp = current_time; odom_trans.transform.translation.x = position_x; odom_trans.transform.translation.y = position_y; odom_trans.transform.translation.z = position_z; odom_trans.transform.rotation = odom_quat; /* broadcast the transform */ broadcaster.sendTransform( odom_trans ); /* broadcast the odom over ROS */ odom.header.stamp = current_time; odom.header.frame_id = "odom"; odom.pose.pose.position.x = position_x; odom.pose.pose.position.y = position_y; odom.pose.pose.position.z = position_z; odom.pose.pose.orientation = odom_quat; odom.child_frame_id = "base_link"; odom.twist.twist.linear.x = vel_x; odom.twist.twist.linear.y = vel_y; odom.twist.twist.linear.z = vel_z; odom.twist.twist.angular.x = rot_x; odom.twist.twist.angular.y = rot_y; odom.twist.twist.angular.z = rot_z; odom_pub.publish( odom ); ............. please note the += in the following code : /* update position */ position_x += vel_x; position_y += vel_y; position_z += vel_z; for a rude integration over time. Is this the right way to get odometry information when no sensor or other instruments are available to read the position position of the robot? If not, how to extrapolate and convert the /cmd_vel information to geenrate the right movement of the robot? Many thanks in advance Originally posted by Andromeda on ROS Answers with karma: 893 on 2014-09-01 Post score: 0 Original comments Comment by ahendrix on 2014-09-01: You've got the right idea. Integrating the velocity command is the correct way to simulate motion over time and produce odometry messages. The math for the integration neglects the orientation of the robot.
In my project, there are several packages and some classes use inheritance... Is there a way to quickly find class and function instead of open all the related source files one by one in ROS?........... Thanks! Originally posted by guodi on ROS Answers with karma: 25 on 2014-09-01 Post score: 0
Hey, I am using two versions of gazebo on two different PCs one with Hydro and gazebo 1.9 and the other PC is with Indigo and Gazebo 2.2. In both I uploaded the same empty_world.world. In addition I uploaded a block model, the same model that has contact with ground plane(lies on the ground plane)in both versions of gazebo. In gazebo 1.9 I can see in the topic ~/physics/contact the 1 contact that I should see (in steady state). However in gazebo 2.2 I see this contact in the beginning (transition state, for a second) and then 0 contacts in steady state. What could be the problem? Where is the problem? If its a bug, in what version of gazebo? Thanks in advance, Originally posted by SHPOWER on ROS Answers with karma: 302 on 2014-09-01 Post score: 0
Hi yah all! I am new to this wonderful world of ROS and setting up a small ROS lab to do some experimentation. My question is this, does ROS Indigo Igloo only run on the desktop version of Ubuntu 14.04.1 or can it be set up on both the server installation and the cloud? Originally posted by Pingbot on ROS Answers with karma: 1 on 2014-09-02 Post score: 0 Original comments Comment by Pingbot on 2014-09-02: Okay, I decided to get brave and install the full version of ROS on a LAMP server rather than on just a desktop. The install was rather easy and seems to have gone fine. Next, I'm going to throw together a personal cloud and see how that goes. Installed easily on Ubuntu desktop....liking this!
Hi all, After I successfully install ros on my PC. I try to run rviz, but come cross an error as follows rosrun rviz rviz [ INFO] [1409663641.718819061]: rviz version 1.11.3 [ INFO] [1409663641.718874433]: compiled against OGRE version 1.8.1 (Byatis) Xlib: extension "NV-GLX" missing on display ":0". Xlib: extension "NV-GLX" missing on display ":0". [ INFO] [1409663641.808060686]: Stereo is NOT SUPPORTED [ INFO] [1409663641.808351168]: OpenGl version: 1.4 (GLSL 0). terminate called after throwing an instance of 'std::runtime_error' what(): Your graphics driver does not support OpenGL 2.1. Please enable software rendering before running RViz (e.g. type 'export LIBGL_ALWAYS_SOFTWARE=1'). Is there any solution about this? Thank you. Best Regards! Frank Originally posted by Frank on ROS Answers with karma: 11 on 2014-09-02 Post score: 1 Original comments Comment by yincanben on 2014-12-25: Have you solve this problem?I met the same problem,Can you share how to solve it? Comment by Cyril Jourdan on 2015-10-16: Hi, did anyone solved this ?, I just have this error after I installed various graphics and CUDA drivers to get some 3D cameras working...
I'm trying to use an RGBD camera (I'm using gazebo_plugins gazebo_ros_openni_kinect plugin in simulation with gazebo 1.9.1) with the VoxelLayer. The problem I'm facing is basically that the voxel_grid (I visualize it on rviz) is not cleared when the readings are further than the max range; there's no point to raytrace and clear them. I'm thinking of publishing some sort of a max_range point cloud only for clearing. However, I'm curious about how people manage to solve this problem. FYI, I'm using branch/tag 1.11.8 and I've seen a few changes you've introduced up to 1.11.11. Are they bug fixes? Or can I live without them? This videos tries to show the issue: http://youtu.be/Pz0osmz-G24?t=26s If it's not clear enough, please tell me and I'll create another one. This is the video description (copy&paste): In this video I show two "experiments". First, I move the table close to the wall, and the voxel grid (in red) is cleared after removing the table. Second, I move the table again closer to the robot (far from the wall), and now there are voxels not cleared after removing the table. I think this could be because there is no point to clear the elements on the costmap. Note that the gazebo_ros_openni_kinect plugin uses the depth image to generate the point cloud. And the depth image is generated using raytracing in gazebo (AFAIK). This means that when the ray doesn't hit anything the pixel is black (0); the same as if the distance were 0 (close). Therefore, for these points there's no clearing. Trying to look for a workaround I've modified the plugin here: https://github.com/pal-robotics/gazebo_ros_pkgs/pull/2 I'm using a simulation similar to REEM's for testing. Originally posted by Enrique on ROS Answers with karma: 834 on 2014-09-02 Post score: 0
I am using my own URDF file for my custom built robot, the robot is properly visible and moves properly in rviz, If I run the simulation with /odom publisher. But when open the camera nodlet with openni_launch and publish a static tf, then the laser scanner in the simulation starts to rotate randomly, I don't have idea why this is happening. I publish the static tf in launch file which contains: <launch> <node pkg="tf" type="static_transform_publisher" name="base_to_laser" args="0.1 0 0.455 0 0 0 base_link camera_link 100"/> </launch> Below are my rqt_graph Please find the below frames.pdf and the slam_gmapping node gives the following warnings [ INFO] [1409662993.035030893]: Laser is mounted upwards. -maxUrange 9.99 -maxUrange 9.99 -sigma 0.05 -kernelSize 1 -lstep 0.05 -lobsGain 3 -astep 0.05 -srr 0.1 -srt 0.2 -str 0.1 -stt 0.2 -linearUpdate 1 -angularUpdate 0.5 -resampleThreshold 0.5 -xmin -100 -xmax 100 -ymin -100 -ymax 100 -delta 0.05 -particles 30 [ INFO] [1409662993.055169092]: Initialization complete update frame 0 update ld=0 ad=0 Laser Pose= 0.257682 -1.50465 1.55431e-15 m_count 0 Registering First Scan update frame 6 update ld=0.0282843 ad=1.5708 Laser Pose= 0.237682 -1.48465 -1.5708 m_count 1 Scan Matching Failed, using odometry. Likelihood=-0.0229554 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4160.76 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4167.38 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Scan Matching Failed, using odometry. Likelihood=-4266.67 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Average Scan Matching Score=0.964133 neff= 24.6526 Registering Scans:Done update frame 8 update ld=0.0282843 ad=1.5708 Laser Pose= 0.257682 -1.50465 1.55431e-15 m_count 2 Scan Matching Failed, using odometry. Likelihood=-4035.6 lp:0.237682 -1.48465 -1.5708 op:0.257682 -1.50465 1.55431e-15 Average Scan Matching Score=110.041 neff= 2.2353 *************RESAMPLE*************** Deleting Nodes: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 22 23 24 25 26 27 28 Done Deleting old particles...Done Copying Particles and Registering scans... Done update frame 9 update ld=0.0282843 ad=1.5708 Laser Pose= 0.237682 -1.48465 -1.5708 m_count 3 Scan Matching Failed, using odometry. Likelihood=-4009.6 lp:0.257682 -1.50465 1.55431e-15 op:0.237682 -1.48465 -1.5708 Average Scan Matching Score=165.453 neff= 3.99713 Any idea why this is happening.? Many thanks in advance. Originally posted by sumanth on ROS Answers with karma: 86 on 2014-09-02 Post score: 0
I have my own URDF file, when I try to do mapping using the slam_gmapping node, then open the rviz with the map and robot model, then I can see that what the actual laser scanner is seeing is exactly 90 degree offset to how the lase scanner is oriented in the simulation. for more details please go through the screen shot attached: Please find my URDF here. : <robot name="my_robot"> <link name="base_link"> <visual> <geometry> <box size="0.6 0.35 0.15"/> </geometry> <origin rpy="0 0 0" xyz="0 0 0"/> <material name="white"> <color rgba="0.2 1 0.3 1"/> </material> </visual> </link> <link name="lwheel"> <visual> <geometry> <cylinder length="0.04" radius="0.1"/> </geometry> <origin rpy="0 0 0" xyz="0 0 0"/> <material name="black"> <color rgba="0 0 0 1"/> </material> </visual> </link> <joint name="base_to_lwheel" type="fixed"> <parent link="base_link"/> <child link="lwheel"/> <origin xyz="-0.1 -0.2 -0.025" rpy="1.5708 0 0"/> <axis xyz="-0.1 -0.2 -0.025 " /> </joint> <link name="rwheel"> <visual> <geometry> <cylinder length="0.04" radius="0.1"/> </geometry> <origin rpy="0 0 0" xyz="0 0 0"/> <material name="black"> <color rgba="0 0 0 1"/> </material> </visual> </link> <joint name="base_to_rwheel" type="fixed"> <parent link="base_link"/> <child link="rwheel"/> <origin xyz="-0.1 0.2 -0.025" rpy="-1.5708 0 0"/> </joint> <link name="fwheel_left"> <visual> <geometry> <cylinder length="0.05" radius="0.03"/> </geometry> <origin rpy="0 0 0" xyz="0 0 0"/> <material name="black"> <color rgba="0 0 0 1"/> </material> </visual> </link> <joint name="base_to_fwheel_left" type="fixed"> <parent link="base_link"/> <child link="fwheel_left"/> <origin xyz="0.22 -0.1 -0.095" rpy="1.5708 0 0"/> </joint> <link name="fwheel_right"> <visual> <geometry> <cylinder length="0.05" radius="0.03"/> </geometry> <origin rpy="0 0 0" xyz="0 0 0"/> <material name="black"> <color rgba="0 0 0 1"/> </material> </visual> </link> <joint name="base_to_fwheel_right" type="fixed"> <parent link="base_link"/> <child link="fwheel_right"/> <origin xyz="0.22 0.1 -0.095" rpy="-1.5708 0 0"/> </joint> <link name="camera_link"> <visual> <geometry> <box size="0.28 0.065 0.04"/> </geometry> <origin rpy="0 0 0" xyz="0 0 0"/> <material name="black"> <color rgba="0 0 0 1"/> </material> </visual> </link> <link name="scan_support"> <visual> <geometry> <cylinder length="0.36" radius="0.015"/> </geometry> <origin rpy="0 0 0" xyz="0 0 0"/> <material name="black"> <color rgba="1 0.2 0.1 1"/> </material> </visual> </link> <joint name="base_to_scan_support" type="fixed"> <parent link="base_link"/> <child link="scan_support"/> <origin xyz="0.10 0 0.255" rpy="0 0 0"/> </joint> <joint name="base_to_scanner" type="fixed"> <parent link="base_link"/> <child link="camera_link"/> <origin xyz="0.10 0 0.455" rpy="0 0 -1.5708"/> </joint> </robot> Any insights for what might be wrong here..? Many thanks in advance. Originally posted by sumanth on ROS Answers with karma: 86 on 2014-09-02 Post score: 0 Original comments Comment by anamcarvalho on 2014-09-02: What is the Reference Frame in "Grid"? Comment by sumanth on 2014-09-02: The reference frame in grid was
Hello, I would like to optris_drivers from ros. I get this page but I don't know how to install it: http://wiki.ros.org/optris_drivers Can I have some help? Best regard. Originally posted by bird12358 on ROS Answers with karma: 1 on 2014-09-02 Post score: 0
Say I want to build from source a collection of packages united into a stack (like navigation or image_pipline). Such stacks contain multiple packages plus a meta-package named after the stack. In order to build the whole thing, it's sufficient to type e.g. catkin_make --pkg navigation. However, the compilation will fail if some of the packages in the stack have unsatisfied dependencies. I would expect rosdep install navigation to resolve these dependencies for me (as soon as they are properly stated in package manifests), however in reality it does not do anything because the manifest of navigation meta-package does not contain build_depend tags. I wonder why it is so, and what is the right way to satisfy the dependencies of a stack without going through each package individually. Originally posted by sergey_alexandrov on ROS Answers with karma: 260 on 2014-09-02 Post score: 1
I have been learning ROS for two weeks now from online tutorials at Ros.org. I have to build a mobile robot for my company. I will use ROS in my project. I will program in Python using rospy library. I want to know if there is any resource or any book where we can get more in depth guidance about developing a mobile robot using rospy. I mean, I would like to know if there is any resource which provides a step by step guidance in developing a mobile robot using ROS. In this way, It would be easy to get an idea of how to use ROS and rospy library to develop a robot from scratch. It would be a great help if anybody of you could share your experiences on how you guys learnt ROS and which resources you made use of? Are there any best methods to learn ROS quickly? How much time it could take to start developing applications using ROS and rospy? Thanks a lot Originally posted by ish45 on ROS Answers with karma: 151 on 2014-09-02 Post score: 0
I would like to know if there there a way to wrap a ROS class callback function in a method to be used as a convenience API. I know that we could possibly achieve this via adapter design pattern, but then when this is coupled with middleware constructs it is harder to see or implement. Anyone has an idea? Originally posted by alfa_80 on ROS Answers with karma: 1053 on 2014-09-02 Post score: 1
Hello, I'm new to ROS and I have been reading http://www.cse.sc.edu/~jokane/agitr/agitr-letter-pubsub.pdf, to get started on ROS. But the CMakeLists.txt file shown in the book as well as on ROS tutorials don't match with what I am having on my pc. Pardon my ignorance as I'm new to this. Any help is greatly appreciated. This is the file I have. cmake_minimum_required(VERSION 2.8.3) project(agitr) ## 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) ## 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() ################################################ ## Declare ROS messages, services and actions ## ################################################ ## To declare and build messages, services or actions from within this ## package, follow these steps: ## * Let MSG_DEP_SET be the set of packages whose message types you use in ## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...). ## * In the file package.xml: ## * add a build_depend and a run_depend tag for each package in MSG_DEP_SET ## * If MSG_DEP_SET isn't empty the following dependencies might have been ## pulled in transitively but can be declared for certainty nonetheless: ## * add a build_depend tag for "message_generation" ## * add a run_depend tag for "message_runtime" ## * In this file (CMakeLists.txt): ## * add "message_generation" and every package in MSG_DEP_SET to ## find_package(catkin REQUIRED COMPONENTS ...) ## * add "message_runtime" and every package in MSG_DEP_SET to ## catkin_package(CATKIN_DEPENDS ...) ## * uncomment the add_*_files sections below as needed ## and list every .msg/.srv/.action file to be processed ## * uncomment the generate_messages entry below ## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...) ## Generate messages in the 'msg' folder # add_message_files( # FILES # Message1.msg # Message2.msg # ) ## Generate services in the 'srv' folder # add_service_files( # FILES # Service1.srv # Service2.srv # ) ## Generate actions in the 'action' folder # add_action_files( # FILES # Action1.action # Action2.action # ) ## Generate added messages and services with any dependencies listed here # generate_messages( # DEPENDENCIES # std_msgs # Or other packages containing msgs # ) ################################### ## 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 agitr # CATKIN_DEPENDS other_catkin_pkg # DEPENDS system_lib ) ########### ## Build ## ########### ## Specify additional locations of header files ## Your package locations should be listed before other locations # include_directories(include) ## Declare a cpp library # add_library(agitr # src/${PROJECT_NAME}/agitr.cpp # ) ## Declare a cpp executable # add_executable(agitr_node src/agitr_node.cpp) ## Add cmake target dependencies of the executable/library ## as an example, message headers may need to be generated before nodes # add_dependencies(agitr_node agitr_generate_messages_cpp) ## Specify libraries to link a library or executable target against # target_link_libraries(agitr_node # ${catkin_LIBRARIES} # ) ############# ## Install ## ############# # all install targets should use catkin DESTINATION variables # See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html ## Mark executable scripts (Python etc.) for installation ## in contrast to setup.py, you can choose the destination # install(PROGRAMS # scripts/my_python_script # DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} # ) ## Mark executables and/or libraries for installation # install(TARGETS agitr agitr_node # ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} # LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} # RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} # ) ## Mark cpp header files for installation # install(DIRECTORY include/${PROJECT_NAME}/ # DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} # FILES_MATCHING PATTERN "*.h" # PATTERN ".svn" EXCLUDE # ) ## Mark other files for installation (e.g. launch and bag files, etc.) # install(FILES # # myfile1 # # myfile2 # DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} # ) ############# ## Testing ## ############# ## Add gtest based cpp test target and link libraries # catkin_add_gtest(${PROJECT_NAME}-test test/test_agitr.cpp) # if(TARGET ${PROJECT_NAME}-test) # target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME}) # endif() ## Add folders to be run by python nosetests # catkin_add_nosetests(test) This is the file in the book(link posted above, pg.44) 1 # What version of CMake i s needed? 2 cmake_minimum_required(VERSION 2.8.3) 3 4 # Name of this package . 5 project ( agitr ) 6 7 # Find the catkin build system , and any other packages on 8 # which we depend . 9 find_package ( catkin REQUIRED COMPONENTS roscpp ) 10 11 # Declare our catkin package . 12 catkin_package () 13 14 # Specify locations of header f i l e s . 15 include_directories ( include ${catkin_INCLUDE_DIRS}) 16 17 # Declare the executable , along with i t s source f i l e s . I f 18 # there are multiple executables , use multiple copies of 19 # this line . 20 add_executable ( hello hello . cpp) 21 22 # Specify l i b r a r i e s against which to link . Again , this 23 # line should be copied for each distinct executable in 24 # the package . 25 target_link_libraries ( hello ${catkin_LIBRARIES}) edit 1. CMakeLists.txt (@andromeda this is the edited file) cmake_minimum_required(VERSION 2.8.3) project ( agitr ) find_package ( catkin REQUIRED COMPONENTS roscpp ) catkin_package () include_directories ( include ${catkin_INCLUDE_DIRS}) add_executable ( hello hello.cpp) target_link_libraries ( hello ${catkin_LIBRARIES}) code : #include < ros/ros.h > int main( int argc , char ∗∗argv ) { // Initialize the ROS system. ros :: init ( argc , argv , " hello_ros ") ; // Establish this program as a ROS node. ros :: NodeHandle nh; // Send some output as a log message. ROS_INFO_STREAM("Hello , ␣ROS! ") ; } edit 2 cpp #include < ros/ros.h> int main(int argc, char **argv) { ros::init(argc,argv,"hello_ros"); ros::NodeHandle nh; ROS_INFO_STREAM("HEllo ROS"): } CMakeLists.txt cmake_minimum_required(VERSION 2.8.3) project(agitr) find_package(catkin REQUIRED COMPONENTS roscpp) catkin_package() include_directories(include ${catkin_INCLUDE_DIRS}) add_executable(hello hello.cpp) target_link_libraries(hello ${catkin_LIBRARIES}) Originally posted by lffox on ROS Answers with karma: 7 on 2014-09-02 Post score: 0 Original comments Comment by lffox on 2014-09-03: @Martin Thanks for formatting. Kindly tell me what option you used. I tried to do this while posting, but never managed. Comment by Martin Peris on 2014-09-03: @grimreaper no problem! The easiest way to add code highlighting to your post is selecting the code and hitting ctrl+k
Hi, i want to use Librviz (http://pr.willowgarage.com/downloads/groovy-rviz-api-for-review/rviz/html/index.html) in a QT-Gui, subscribe to topic and visualize some data. I followed the tutorial; http://docs.ros.org/indigo/api/librviz_tutorial/html/index.html and it is doing fine. From the tutorial i've got the following: render_panel_ = new rviz::RenderPanel(); lvw->QRvizLayout->addLayout( controls_layout ); lvw->QRvizLayout->addWidget( render_panel_ ); manager_ = new rviz::VisualizationManager( render_panel_ ); render_panel_->initialize( manager_->getSceneManager(), manager_ ); manager_->initialize(); grid_ = manager_->createDisplay( "rviz/Grid", "adjustable grid", true ); Now, i want to subscribe to the topic "fts/laserscan_front", which is publishing "sensor_msgs/LaserScan"-Messages. Is there any tutorial out there, how to subscribe to a topic and visualize the messages with Librviz and qt? Originally posted by Roman2508 on ROS Answers with karma: 11 on 2014-09-02 Post score: 1
hi, all, the global path planner on my robot NavfnROS always produces plans that pass through dark area on local cost map. and whenever it does so, the robot refuses to move. I guess it's because there's a risk for collision. my parameter settings are quite simple NavfnROS: allow_unknown: false how do I prevent the planner giving plan that transverse dark area on the local cost map Originally posted by dreamcase on ROS Answers with karma: 91 on 2014-09-02 Post score: 0
-- +++ processing catkin package: 'tf' -- ==> add_subdirectory(geometry/tf) CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package angles. Set angles_DIR to the directory containing a CMake configuration file for angles. The file will have one of the following names: anglesConfig.cmake angles-config.cmake Call Stack (most recent call first): geometry/tf/CMakeLists.txt:7 (find_package) -- tf: 1 messages, 1 services -- +++ processing catkin package: 'tf_conversions' -- ==> add_subdirectory(geometry/tf_conversions) -- Eigen found (include: /usr/include/eigen3) -- Configuring incomplete, errors occurred! make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed ubuntu@ubuntu-armhf:~/catkin_ws$ sudo aptitude install ros-hydro-tf No candidate version found for ros-hydro-tf I have a working version on BBB where I see both tf and tf2* in /opt/ros/hydro/share. I have a non working version with no tf in share. how do I build or install tf so it either get's to share or is built in a catkin workspace? I have geometry built in the carkin workspace - and it list tf as being there. Originally posted by DrBot on ROS Answers with karma: 147 on 2014-09-02 Post score: 0 Original comments Comment by tfoote on 2014-09-02: As of hydro tf uses tf2 under the hood. There should be no conflict between them.
Hi, I'm using Hydro on Ubuntu 12.04. I have been using ROS for a few months, but have very little programming knowledge. I was asked to write a node to control a servo using a joystick (and Arduino). The most experience I have in this s controlling an AR Drone with a ps3 controller. I have looked at the Writing a Teleop node tutorial, but that’s it. I get what the script is doing, but that is not the same as knowing how to do it myself. Does anyone know of a good source to learn how to write such a node, preferably in python. Or, are there any scripts for controlling a servo with rosjoy? Thanks. Originally posted by dshimano on ROS Answers with karma: 129 on 2014-09-02 Post score: 0
Hi all, I'd like to implement a new local planner in move_base. My new planner is based on a Fuzzy-PID controller and is implemented in c++. My question is: can I integrate it in the ROS's navigation stack? and how match is it difficult or easy to do? waiting for your answers and your help. Best regards. Originally posted by assil on ROS Answers with karma: 41 on 2014-09-02 Post score: 0
I m trying right now to implement a quadcopter. I wrote the URDF file for defining the flying robot and it moves using odometry's informations pretty well in Rviz. But here the first problem. I m using the move_base as a controller to move the quadcopter around but trying to put some goals in the free space (with a predefined height) it is going to move on a planar surface even if in the move_base one could set the robot as holonomic (free to move on all 6 DOF). My idea was to define one more frame (/frame_footprint) or "the shadow" of the robot the moves always in the plane and let it controlling by move_base pkg which works pretty good (see the following image): With another transformation I would move the last frame (/frame_link) in respect of /base_footprint. Since it can rotate and move on the z axis it will take as input the height of the copter. But now I have the first question: How can I control the height? Are there some controller in ROS for a 6DOF flying robot? Any suggestion for a controller? Originally posted by Andromeda on ROS Answers with karma: 893 on 2014-09-02 Post score: 1
Hi all, i am getting compilation error while using TimeSynchronizer. i saw similar question , but it didnt solve. thank you. error: ‘TimeSynchronizer’ does not name a type In constructor ‘Detectchange::Detectchange()’: error: ‘timesync’ was not declared in this scope error: expected type-specifier before ‘TimeSynchronizer’ error: expected ‘;’ before ‘TimeSynchronizer’ here is my code snippet. class myclass { public: //some stuff private: message_filters::Subscriber<sensor_msgs::LaserScan>* laser_scan_sub; message_filters::Subscriber<geometry_msgs::PoseStamped>* pose_sub; TimeSynchronizer<sensor_msgs::LaserScanConstPtr, geometry_msgs::PoseStampedConstPtr> *timesync; } myclass::myclass() { laser_scan_sub = new message_filters::Subscriber<sensor_msgs::LaserScan>(nh_, "/ms_front_laser", 1); pose_sub = new message_filters::Subscriber<geometry_msgs::PoseStamped>(nh_, "/pose", 1); timesync = new TimeSynchronizer<sensor_msgs::LaserScanConstPtr, geometry_msgs::PoseStampedConstPtr> (laser_scan_sub, pose_sub, 50); timesync->registerCallback(boost::bind(&myclass::laserReceived, this, _1, _2)); } void myclass::laserReceived(const sensor_msgs::LaserScanConstPtr& laser_scan, const geometry_msgs::PoseStampedConstPtr& estimate_pose) { // some stuff } int main(int argc, char** argv) { ros::init(argc, argv, "myclass"); ros::NodeHandle nh; myclass mc; ros::spin(); return(0); } Originally posted by bvbdort on ROS Answers with karma: 3034 on 2014-09-02 Post score: 0
hi everyone let say that i want turtlebot to navigate certain area but i dont wanna run gmapping.it just call the map for that area and navigate.how can i create the map if i dont want to use gazebo etc.?is it possible? Originally posted by lfyhmdn on ROS Answers with karma: 36 on 2014-09-03 Post score: 0
Dear all, I was following the navigation tutorial for ROS Hydro installed on my UDOO board robot. I follow the tutorial on the Navigation ROS Wiki but, launching the move_base.launch file, I have a cannot marshal None unless allow_none is enabled error. Those are my yaml files: base_local_planner_params.yaml TrajectoryPlannerROS: max_vel_x: 0.45 min_vel_x: 0.1 max_rotational_vel: 1.0 min_in_place_rotational_vel: 0.4 acc_lim_th: 3.2 acc_lim_x: 2.5 acc_lim_y: 2.5 holonomic_robot: false local_costmap_params.yaml local_costmap: global_frame: odom robot_base_frame: base_link update_frequency: 5.0 publish_frequency: 2.0 static_map: false rolling_window: true width: 6.0 height: 6.0 resolution: 0.05 costmap_common_params.yaml obstacle_range: 2.5 raytrace_range: 3.0 robot_radius: 0.30 inflation_radius: 0.55 observation_sources: laser_scan_sensor laser_scan_sensor: {sensor_frame: base_laser, data_type: LaserScan, topic; laser_scan, marking: true, clearing: true} global_costmap_params.yaml global_costmap: global_frame: /map robot_base_frame: base_link update_frequency: 5.0 static_map: false amcl_diff.launch: <launch> <node pkg="amcl" type="amcl" name="amcl" output="screen"> <!-- Publish scans from best pose at a max of 10 Hz --> <param name="odom_model_type" value="diff"/> <param name="odom_alpha5" value="0.1"/> <param name="transform_tolerance" value="0.2" /> <param name="gui_publish_rate" value="10.0"/> <param name="laser_max_beams" value="30"/> <param name="min_particles" value="500"/> <param name="max_particles" value="5000"/> <param name="kld_err" value="0.05"/> <param name="kld_z" value="0.99"/> <param name="odom_alpha1" value="0.2"/> <param name="odom_alpha2" value="0.2"/> <!-- translation std dev, m --> <param name="odom_alpha3" value="0.8"/> <param name="odom_alpha4" value="0.2"/> <param name="laser_z_hit" value="0.5"/> <param name="laser_z_short" value="0.05"/> <param name="laser_z_max" value="0.05"/> <param name="laser_z_rand" value="0.5"/> <param name="laser_sigma_hit" value="0.2"/> <param name="laser_lambda_short" value="0.1"/> <param name="laser_lambda_short" value="0.1"/> <param name="laser_model_type" value="likelihood_field"/> <!-- <param name="laser_model_type" value="beam"/> --> <param name="laser_likelihood_max_dist" value="2.0"/> <param name="update_min_d" value="0.2"/> <param name="update_min_a" value="0.5"/> <param name="odom_frame_id" value="odom"/> <param name="resample_interval" value="1"/> <param name="transform_tolerance" value="0.1"/> <param name="recovery_alpha_slow" value="0.0"/> <param name="recovery_alpha_fast" value="0.0"/> </node> </launch> and finally the move_base.launch <launch> <include file="$(find geduino_navigation)/launch/amcl_diff.launch" /> <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen"> <rosparam file="$(find geduino_navigation)/costmap_common_params.yaml" command="load" ns="global_costmap" /> <rosparam file="$(find geduino_navigation)/costmap_common_params.yaml" command="load" ns="local_costmap" /> <rosparam file="$(find geduino_navigation)/local_costmap_params.yaml" command="load" /> <rosparam file="$(find geduino_navigation)/global_costmap_params.yaml" command="load" /> <rosparam file="$(find geduino_navigation)/base_local_planner_params.yaml" command="load" /> </node> </launch> When I try to launch move_base.launch I get this error message: [roslaunch][INFO] 2014-09-03 07:00:27,886: Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt [roslaunch][INFO] 2014-09-03 07:00:27,898: Done checking log file disk usage. Usage is <1GB. [roslaunch][INFO] 2014-09-03 07:00:27,900: roslaunch starting with args ['/opt/ros/hydro/bin/roslaunch', 'geduino_navigation', 'move_base.launch'] [roslaunch][INFO] 2014-09-03 07:00:27,900: roslaunch env is {'ROS_DISTRO': 'hydro', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'HUSHLOGIN': 'FALSE', 'CPATH': '/home/udoo/ros/devel/include:/opt/ros/hydro/include', 'LOGNAME': 'udoo', 'USER': 'udoo', 'HOME': '/home/udoo', 'PATH': '/home/udoo/ros/devel/bin:/opt/ros/hydro/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games', 'ROS_PACKAGE_PATH': '/home/udoo/ros/src:/opt/ros/hydro/share:/opt/ros/hydro/stacks', 'CMAKE_PREFIX_PATH': '/home/udoo/ros/devel:/opt/ros/hydro', 'LD_LIBRARY_PATH': '/home/udoo/ros/devel/lib:/opt/ros/hydro/lib', 'LANG': 'C', 'TERM': 'linux', 'SHELL': '/bin/bash', 'LANGUAGE': 'C', 'SHLVL': '1', 'ROS_LOG_FILENAME': '/home/udoo/.ros/log/fc4df7ea-3337-11e4-b578-7cdd9047677b/roslaunch-geduino-3197.log', 'ROS_ETC_DIR': '/opt/ros/hydro/etc/ros', 'PYTHONPATH': '/home/udoo/ros/devel/lib/python2.7/dist-packages:/opt/ros/hydro/lib/python2.7/dist-packages', 'ROS_ROOT': '/opt/ros/hydro/share/ros', 'PKG_CONFIG_PATH': '/home/udoo/ros/devel/lib/pkgconfig:/opt/ros/hydro/lib/pkgconfig', 'LC_ALL': 'C', 'ROS_TEST_RESULTS_DIR': '/home/udoo/ros/build/test_results', '_': '/opt/ros/hydro/bin/roslaunch', 'CATKIN_TEST_RESULTS_DIR': '/home/udoo/ros/build/test_results', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LC_MESSAGES': 'POSIX', 'OLDPWD': '/home/udoo', 'PWD': '/home/udoo/ros', 'ROS_MASTER_URI': 'http://localhost:11311', 'MAIL': '/var/mail/udoo', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:'} [roslaunch][INFO] 2014-09-03 07:00:27,901: starting in server mode [roslaunch.parent][INFO] 2014-09-03 07:00:27,902: starting roslaunch parent run [roslaunch][INFO] 2014-09-03 07:00:27,903: loading roscore config file /opt/ros/hydro/etc/ros/roscore.xml [roslaunch][INFO] 2014-09-03 07:00:28,360: Added core node of type [rosout/rosout] in namespace [/] [roslaunch.config][INFO] 2014-09-03 07:00:28,361: loading config file /home/udoo/ros/src/geduino_navigation/launch/move_base.launch [roslaunch][INFO] 2014-09-03 07:00:28,507: Added node of type [amcl/amcl] in namespace [/] [roslaunch][INFO] 2014-09-03 07:00:28,678: Added node of type [move_base/move_base] in namespace [/] [roslaunch][INFO] 2014-09-03 07:00:28,679: ... selected machine [] for node of type [amcl/amcl] [roslaunch][INFO] 2014-09-03 07:00:28,679: ... selected machine [] for node of type [move_base/move_base] [roslaunch.pmon][INFO] 2014-09-03 07:00:28,682: start_process_monitor: creating ProcessMonitor [roslaunch.pmon][INFO] 2014-09-03 07:00:28,683: created process monitor <ProcessMonitor(ProcessMonitor-1, initial daemon)> [roslaunch.pmon][INFO] 2014-09-03 07:00:28,684: start_process_monitor: ProcessMonitor started [roslaunch.parent][INFO] 2014-09-03 07:00:28,685: starting parent XML-RPC server [roslaunch.server][INFO] 2014-09-03 07:00:28,686: starting roslaunch XML-RPC server [roslaunch.server][INFO] 2014-09-03 07:00:28,686: waiting for roslaunch XML-RPC server to initialize [xmlrpc][INFO] 2014-09-03 07:00:28,687: XML-RPC server binding to 0.0.0.0:0 [xmlrpc][INFO] 2014-09-03 07:00:28,688: Started XML-RPC server [http://geduino:55112/] [xmlrpc][INFO] 2014-09-03 07:00:28,688: xml rpc node: starting XML-RPC server [roslaunch][INFO] 2014-09-03 07:00:28,702: started roslaunch server http://geduino:55112/ [roslaunch.parent][INFO] 2014-09-03 07:00:28,702: ... parent XML-RPC server started [roslaunch][INFO] 2014-09-03 07:00:28,766: master.is_running[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:28,768: auto-starting new master [roslaunch][INFO] 2014-09-03 07:00:28,770: create_master_process: rosmaster, /opt/ros/hydro/share/ros, 11311 [roslaunch][INFO] 2014-09-03 07:00:28,770: process[master]: launching with args [['rosmaster', '--core', '-p', '11311']] [roslaunch.pmon][INFO] 2014-09-03 07:00:28,771: ProcessMonitor.register[master] [roslaunch.pmon][INFO] 2014-09-03 07:00:28,772: ProcessMonitor.register[master] complete [roslaunch][INFO] 2014-09-03 07:00:28,772: process[master]: starting os process [roslaunch][INFO] 2014-09-03 07:00:28,773: process[master]: start w/ args [['rosmaster', '--core', '-p', '11311', '__log:=/home/udoo/.ros/log/fc4df7ea-3337-11e4-b578-7cdd9047677b/master.log']] [roslaunch][INFO] 2014-09-03 07:00:28,774: process[master]: cwd will be [/home/udoo/.ros] [roslaunch][INFO] 2014-09-03 07:00:28,795: process[master]: started with pid [3210] [roslaunch][INFO] 2014-09-03 07:00:28,797: master.is_running[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:28,899: master.is_running[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:29,001: master.is_running[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:29,103: master.is_running[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:29,205: master.is_running[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:29,307: master.is_running[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:29,409: master.is_running[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:29,511: master.is_running[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:29,518: master.is_running[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:29,523: ROS_MASTER_URI=http://localhost:11311 [roslaunch][INFO] 2014-09-03 07:00:29,530: setting /run_id to fc4df7ea-3337-11e4-b578-7cdd9047677b [roslaunch][INFO] 2014-09-03 07:00:29,538: setting /roslaunch/uris/host_geduino__55112' to http://geduino:55112/ [roslaunch][INFO] 2014-09-03 07:00:29,548: ... preparing to launch node of type [rosout/rosout] [roslaunch][INFO] 2014-09-03 07:00:29,548: create_node_process: package[rosout] type[rosout] machine[Machine(name[] env_loader[None] address[localhost] ssh_port[22] user[None] assignable[True] timeout[10.0])] master_uri[http://localhost:11311] [roslaunch][INFO] 2014-09-03 07:00:29,549: process[rosout-1]: env[{'ROS_DISTRO': 'hydro', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'HUSHLOGIN': 'FALSE', 'CPATH': '/home/udoo/ros/devel/include:/opt/ros/hydro/include', 'LOGNAME': 'udoo', 'USER': 'udoo', 'HOME': '/home/udoo', 'PATH': '/home/udoo/ros/devel/bin:/opt/ros/hydro/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games', 'ROS_PACKAGE_PATH': '/home/udoo/ros/src:/opt/ros/hydro/share:/opt/ros/hydro/stacks', 'CMAKE_PREFIX_PATH': '/home/udoo/ros/devel:/opt/ros/hydro', 'ROS_LOG_FILENAME': '/home/udoo/.ros/log/fc4df7ea-3337-11e4-b578-7cdd9047677b/roslaunch-geduino-3197.log', 'LANG': 'C', 'TERM': 'linux', 'SHELL': '/bin/bash', 'LANGUAGE': 'C', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/home/udoo/ros/devel/lib:/opt/ros/hydro/lib', 'ROS_MASTER_URI': 'http://localhost:11311', 'PYTHONPATH': '/home/udoo/ros/devel/lib/python2.7/dist-packages:/opt/ros/hydro/lib/python2.7/dist-packages', 'ROS_ROOT': '/opt/ros/hydro/share/ros', 'PKG_CONFIG_PATH': '/home/udoo/ros/devel/lib/pkgconfig:/opt/ros/hydro/lib/pkgconfig', 'LC_ALL': 'C', 'ROS_TEST_RESULTS_DIR': '/home/udoo/ros/build/test_results', '_': '/opt/ros/hydro/bin/roslaunch', 'CATKIN_TEST_RESULTS_DIR': '/home/udoo/ros/build/test_results', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LC_MESSAGES': 'POSIX', 'OLDPWD': '/home/udoo', 'PWD': '/home/udoo/ros', 'ROS_ETC_DIR': '/opt/ros/hydro/etc/ros', 'MAIL': '/var/mail/udoo', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:'}] [roslaunch][INFO] 2014-09-03 07:00:29,683: process[rosout-1]: args[[u'/opt/ros/hydro/lib/rosout/rosout', u'__name:=rosout']] [roslaunch][INFO] 2014-09-03 07:00:29,684: ... created process [rosout-1] [roslaunch.pmon][INFO] 2014-09-03 07:00:29,684: ProcessMonitor.register[rosout-1] [roslaunch.pmon][INFO] 2014-09-03 07:00:29,685: ProcessMonitor.register[rosout-1] complete [roslaunch][INFO] 2014-09-03 07:00:29,685: ... registered process [rosout-1] [roslaunch][INFO] 2014-09-03 07:00:29,686: process[rosout-1]: starting os process [roslaunch][INFO] 2014-09-03 07:00:29,687: process[rosout-1]: start w/ args [[u'/opt/ros/hydro/lib/rosout/rosout', u'__name:=rosout', u'__log:=/home/udoo/.ros/log/fc4df7ea-3337-11e4-b578-7cdd9047677b/rosout-1.log']] [roslaunch][INFO] 2014-09-03 07:00:29,687: process[rosout-1]: cwd will be [/home/udoo/.ros] [roslaunch][INFO] 2014-09-03 07:00:29,700: process[rosout-1]: started with pid [3223] [roslaunch][INFO] 2014-09-03 07:00:29,703: ... successfully launched [rosout-1] [roslaunch][INFO] 2014-09-03 07:00:29,706: load_parameters starting ... [roslaunch][ERROR] 2014-09-03 07:00:29,714: load_parameters: unable to set parameters (last param was [/move_base/TrajectoryPlannerROS/min_in_place_rotational_vel=0.4]): cannot marshal None unless allow_none is enabled [roslaunch.pmon][INFO] 2014-09-03 07:00:29,859: ProcessMonitor.shutdown <ProcessMonitor(ProcessMonitor-1, started daemon 731092080)> [roslaunch.pmon][INFO] 2014-09-03 07:00:29,888: ProcessMonitor._post_run <ProcessMonitor(ProcessMonitor-1, started daemon 731092080)> [roslaunch.pmon][INFO] 2014-09-03 07:00:29,889: ProcessMonitor._post_run <ProcessMonitor(ProcessMonitor-1, started daemon 731092080)>: remaining procs are [<roslaunch.nodeprocess.LocalProcess object at 0x809070>, <roslaunch.nodeprocess.LocalProcess object at 0x7f2e50>] [roslaunch.pmon][INFO] 2014-09-03 07:00:29,894: ProcessMonitor exit: killing rosout-1 [roslaunch][INFO] 2014-09-03 07:00:29,895: [rosout-1] killing on exit [roslaunch][INFO] 2014-09-03 07:00:29,898: process[rosout-1]: killing os process with pid[3223] pgid[3223] [roslaunch][INFO] 2014-09-03 07:00:29,899: [rosout-1] sending SIGINT to pgid [3223] [roslaunch][INFO] 2014-09-03 07:00:29,899: [rosout-1] sent SIGINT to pgid [3223] [roslaunch][INFO] 2014-09-03 07:00:30,201: process[rosout-1]: SIGINT killed with return value 0 [roslaunch.pmon][INFO] 2014-09-03 07:00:30,201: ProcessMonitor exit: killing master [roslaunch][INFO] 2014-09-03 07:00:30,202: [master] killing on exit [roslaunch][INFO] 2014-09-03 07:00:30,205: process[master]: killing os process with pid[3210] pgid[3210] [roslaunch][INFO] 2014-09-03 07:00:30,206: [master] sending SIGINT to pgid [3210] [roslaunch][INFO] 2014-09-03 07:00:30,209: [master] sent SIGINT to pgid [3210] [roslaunch][INFO] 2014-09-03 07:00:30,415: process[master]: SIGINT killed with return value 0 [roslaunch.pmon][INFO] 2014-09-03 07:00:30,416: ProcessMonitor exit: cleaning up data structures and signals [roslaunch.pmon][INFO] 2014-09-03 07:00:30,416: ProcessMonitor exit: pmon has shutdown [rospy.core][INFO] 2014-09-03 07:00:30,425: signal_shutdown [atexit] I checked my code several times for tabs, ,missing spaces on yaml file, namespace usage but I was not able to find a fix. Can someone help me to fix it? Thanks a lot Alessandro Originally posted by afranceson on ROS Answers with karma: 497 on 2014-09-03 Post score: 3 Original comments Comment by afranceson on 2014-09-03: Wrong reason. The right reason to close this question is RESOLVED. Comment by ahendrix on 2014-09-03: You can also click the check box next to my answer to mark it as the correct answer.
I'm trying to get a fork of the pr2-grant released for our ros_ethercat package as we find it very useful. In the pr2 repo, there were some post-install rules to set the sticky bit of pr2-grant. Is there a way to do this with catkin / bloom? Below is the debian/postinst rule #!/bin/sh set -e PKG=pr2-grant case "$1" in configure) chown root.root /usr/bin/pr2_grant chmod +s /usr/bin/pr2_grant chown root.root /usr/bin/pr2-grant chmod +s /usr/bin/pr2-grant ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 0 ;; esac #DEBHELPER# Thanks in advance! Originally posted by Ugo on ROS Answers with karma: 1620 on 2014-09-03 Post score: 2
Hi All, I am implementing the Robot Driver specification (link), however the "reference" JointTrajectoryDownloader implementation assumes you are communicating with a robot that uses the simple_message protocol. My robot does not communicate using simple_messages, it communicates using ordinary ROS topics and messages. The usage of simple_message protocol is very deeply embedded into the JointTrajectoryDownloader and JointTrajectoryInterface classes. What is the best way to use the JointTrajectoryDownloader library on a robot that does not use simple_message for communication? Thanks, Bart Originally posted by bjem85 on ROS Answers with karma: 163 on 2014-09-03 Post score: 1 Original comments Comment by sedwards on 2014-09-04: The link you provided is to the industrial_robot_client wiki...not a specification (is this what you meant)? Comment by Adolfo Rodriguez T on 2014-09-04: If you don't want to use the simple_message protocol, do you really need to use the industrial_robot_client, then?. What's the actual problem you'd like to solve, send joint trajectories to your robot and read state feedback? Comment by bjem85 on 2014-09-04: Hi Adolfo, I don't strictly need to use it, but apart from the use of simple_message as a communication method it actually quite closely fits my requirements. From my point of view it makes little sense to do effectively a 'copy-and-paste' programming job. Comment by bjem85 on 2014-09-04: sedwards: link has been updated Comment by bjem85 on 2014-09-04: Conversely, I did investigate writing a receiver for simple_message, but I could not find any documentation or tutorials on how to do so. Is this a gap in the documentation?
Hey I wrote a node i could easily end with my personalized SIGINT handler. The handler set all my velocities to zero before shutting down and called out a short message after doing so. Now I've slightly changed my node so I can receive keyboard commands and now the Handler doesn't react anymore when I call him Ctrl-C I don't know where the fault is.. #include "ros/ros.h" #include "std_msgs/String.h" #include "signal.h" //necessary for the Custom SIGINT handler #include "stdio.h" //necessary for the Custom SIGINT handler #include "sstream" #include "brics_actuator/JointVelocities.h" /** * A count of how many messages we have sent. This is used to create * a unique string for each message. */ int count = 0; brics_actuator::JointVelocities msg; ros::Publisher chatter_pub; void mySigintHandler(int sig){ //hier: funktion wird aufgerufen beim beenden der node msg.velocities.resize(6); msg.velocities[0].value = 0; // A1 ... (rad/s) msg.velocities[1].value = 0; msg.velocities[2].value = 0; msg.velocities[3].value = 0; msg.velocities[4].value = 0; msg.velocities[5].value = 0; // A6 std::cout << "all velocities set to zero"; chatter_pub.publish(msg); ros::shutdown(); } class talker { private: ros::NodeHandle n; ros::Publisher chatter_pub; public: //!Ros node initialization talker(ros::NodeHandle n){ // //n_ =n; // chatter_pub = n.advertise<brics_actuator::JointVelocities>("/arm_controller/command_vel", 10); } //! Loop forever while sending drive commands based on keyboard input bool driveKeyboard() { std::cout << "Type a command and then press enter. " "Use '+' to move forward, 'l' to turn left, " "'r' to turn right, '.' to exit.\n"; char cmd[50]; ros::NodeHandle n; signal(SIGINT, mySigintHandler); chatter_pub = n.advertise<brics_actuator::JointVelocities>("/arm_controller/command_vel", 10); while(n.ok()){ std::cin.getline(cmd, 50); if(cmd[0]!='+' && cmd[0]!='l' && cmd[0]!='r' && cmd[0]!='.') { std::cout << "unknown command:" << cmd << "\n"; continue; } //base_cmd.linear.x = base_cmd.linear.y = base_cmd.angular.z = 0; msg.velocities.resize(6); msg.velocities[0].value = 0; // A1 ... (rad/s) msg.velocities[1].value = 0; msg.velocities[2].value = 0; msg.velocities[3].value = 0; msg.velocities[4].value = 0; msg.velocities[5].value = 0; // A6 //move forward if(cmd[0]=='+'){ msg.velocities[0].value= 0.1; //postitive X-Richtung } /** * so einstellen, dass man mit buchstaben die achse auswählt * und dann immer die pfeiltasten hat um entweder positiv * (up) oder negativ (down) zu fahren */ //TATI move backwards if(cmd[0]=='-'){ msg.velocities[3].value= -0.1; //negative X-Richtung } //turn left else if(cmd[0]=='l'){ msg.velocities[4].value= 0.1; //negative Y-Richtung usw usf.! } //turn right else if(cmd[0]=='r'){ msg.velocities[1].value= 0.1; //positive Y-Richutng } //quit else if(cmd[0]=='.'){ break; } //publish the assembled command chatter_pub.publish(msg); } return true; } };//talker int main(int argc, char **argv) { ros::init(argc, argv, "talker"); /** * NodeHandle is the main access point to communications with the ROS system. * The first NodeHandle constructed will fully initialize this node, and the last * NodeHandle destructed will close down the node. */ ros::NodeHandle n; std::stringstream ss; // TATI aus der tastatur main() talker driver(n); driver.driveKeyboard(); ros::Rate loop_rate(10); while (ros::ok()) { ros::spinOnce(); loop_rate.sleep(); ++count; } return 0; } Originally posted by irgendeinGastname on ROS Answers with karma: 1 on 2014-09-03 Post score: 0
I mounted my new Robopeak rplidar on the center of the turtlebot's top plate, and modified the various launch/urdf to use this scanner for gmapping. However I have not modified any of the gmapping parameters, I'm using the same files as the turtlebot gmapping tutorials. I can teleop around and get a map, but the walls are rather thick and fuzzy. I suspect this is a result of the rplidar publishing at only 5 hz, not 50 hz as the original kinect. Or possibly because the rplidar is 360 degrees and kinect was only 57 degrees? Does anyone know why my map doesn't show a sharp defined wall? Is the slower publishing rate responsible? What params for gmapping should I modify to optimize for the slower rate? I tried to add a small jpg of the map image, but not enough points. This is on Hydro/Ubuntu 12.04, using a turtlebot2 (kobuki). thanks buddy Originally posted by mrsoft99 on ROS Answers with karma: 78 on 2014-09-03 Post score: 1 Original comments Comment by bvbdort on 2014-09-03: At what speed you are driving robot ? Comment by tanghz on 2014-12-18: Excuse me, dear mrsoft99, I'm sorry to interrupt you. But I am facing a problem about gmapping with rplidar on turtlebot2, I am just starting to ROS, and I am struggling with this problem for a week. Could you teach me how to modify the launch/urdf?
This is the piece of code that I have used. I am trying to transform a geometry_msgs::PointStamped from "base_link" to "map". geometry_msgs::PointStamped _s , our_s; _s.point.x = 0.929; _s.point.y = 0.103672; _s.point.z = 1.05381; _s.header.frame_id = "base_link"; _s.header.stamp = ros::Time::now(); tf_l.waitForTransform("map", "base_link", _s.header.stamp, ros::Duration(1.0)); try { tf_l.transformPoint("map", _s, our_s); } catch(tf::TransformException& ex) { ROS_INFO("%s is the exception.", ex.what()); } This is the same piece of code I always use. I normally get the output right, but now I get: the error [ INFO] [1409742709.610312612]: Lookup would require extrapolation into the past. Requested time 1409742709.104081534 but the earliest data is at time 1409742709.353810000, when looking up transform from frame [base_link] to frame [map] is the exception. In this case: rosrun tf_echo view_frames shows the frames and they are great. And rosrun tf tf_echo map base_link gives: At time 1409742686.330 - Translation: [4.626, -0.504, 0.000] - Rotation: in Quaternion [0.000, 0.000, -0.205, 0.979] in RPY [0.000, 0.000, -0.413] At time 1409742687.237 - Translation: [4.626, -0.504, 0.000] - Rotation: in Quaternion [0.000, 0.000, -0.205, 0.979] in RPY [0.000, 0.000, -0.413] At time 1409742688.337 - Translation: [4.626, -0.504, 0.000] - Rotation: in Quaternion [0.000, 0.000, -0.205, 0.979] in RPY [0.000, 0.000, -0.413] At time 1409742689.247 - Translation: [4.626, -0.504, 0.000] - Rotation: in Quaternion [0.000, 0.000, -0.205, 0.979] in RPY [0.000, 0.000, -0.413] ^CAt time 1409742689.664 - Translation: [4.626, -0.504, 0.000] - Rotation: in Quaternion [0.000, 0.000, -0.205, 0.979] in RPY [0.000, 0.000, -0.413] I have gone through a lot of questions. I still understand this problem correctly. Any help is greatly appreciated. Thank you so much. Originally posted by McMurdo on ROS Answers with karma: 1247 on 2014-09-03 Post score: 0 Original comments Comment by bvbdort on 2014-09-03: What is the frequency of tf between [base_link] to [map] , may be its less than your waiting time 1 second. Comment by McMurdo on 2014-09-03: I get the same result if the duration is increased to 3 seconds
Hey, I think this is not the common way of questions asked here but I just give it a try. I am working at a project in which a car should autonomous drive in a predefined map and with predefined endposition. This should be solved with the use of ROS and Gazebo (for now i guess it is not that important that it is really a car - it could also be an example robot or whatever). My problem here is that i can't find a suitable example project to get started with this. So I am pretty unsure how to launch such a project. For now I am using ROS Indigo and Gazebo 2.2 on Ubuntu 14.04 Can you give me an outline or some examples how you could start with such a project? BR Originally posted by schultza on ROS Answers with karma: 232 on 2014-09-03 Post score: 0
Hey guys, I am trying to set up a test scenario for calibrating cameras with markes. Therefore, I have 2 cameras and 2 markers. Each camera can see both markers. But when I try to simulate this scenario with static-transform-publisher, I get the strange effect, that I either have 2 trees like this: marker_1 <=> camera 1 marker_2 <=> camera 2 or 1 tree like this: marker_2 <=> camera 1 marker_2 <=> camera 2 (Which marker is paired with which camera changes constantly, the numbers are only examples) Here is my launch-file: 0 <launch> 1 2 # Create static transforms for our fake cameras and markers 3 <node pkg="tf" type="static_transform_publisher" name="marker_1_camera_front_tf_publisher" args="1.0 0 0 0 0 0 /ar_marker_1 /camera_front 10" /> 4 <node pkg="tf" type="static_transform_publisher" name="marker_2_camera_front_tf_publisher" args="1.0 1.0 0 0 0 0 /ar_marker_2 /camera_front 10" /> 5 <node pkg="tf" type="static_transform_publisher" name="marker_1_camera_top_tf_publisher" args="0 0 1.0 0 0 0 /ar_marker_1 /camera_top 10" /> 6 <node pkg="tf" type="static_transform_publisher" name="marker_2_camera_top_tf_publisher" args="0 1.0 1.0 0 0 0 /ar_marker_2 /camera_top 10" /> 7 8 # Launch the calibrator 9 <include file="$(find camera_calibrator)/launch/calibrate_2_kinects.launch" /> 10 11 </launch> Am I doing anythign wrong, or is my basic understanding of transforms wrong? I monitor the transforms either via rqt or in python with tf_listener.lookupTransform(marker, camera, rospy.time(0)) Thanks in advance, Rabe Originally posted by Rabe on ROS Answers with karma: 683 on 2014-09-03 Post score: 0
Hello everyone For learning purposes I have created a simple launch file and simple python scripts. This is my launch file <launch> <node name="rf_sim_node_1" pkg="rf_trilateration" type="rf_sim_node.py" args="5,5"/> <node name="rf_sim_node_2" pkg="rf_trilateration" type="rf_sim_node.py" args="-5,-5"/> <node name="rf_sim_node_3" pkg="rf_trilateration" type="rf_sim_node.py" args="-5,5"/> <node name="rf_sim_node_4" pkg="rf_trilateration" type="rf_sim_node.py" args="5,-5"/> <node name="rf_trilateration_service" pkg="rf_trilateration" type="rf_trilateration_server.py"/> </launch> and this is the rf_sim_node.py #!/usr/bin/env python import rospy def start_server(): rospy.init_node("rf_node", anonymous=True) rospy.spin() if __name__ == "__main__": start_server() When I launch my file with roslaunch $rosnode list gives out this /rf_sim_node_1 /rf_sim_node_2 /rf_sim_node_3 /rf_sim_node_4 /rf_trilateration_service /rosout Now I am wondering what does rospy.init_node does actually do?. I was expecting to see "rf_node-14 " kinda nodes but end up wtih the node names from the launching file. What if I make multiple calls to rospy.init_node() will I get new nodes or am I doing something wrong. I read at rospy documentation that I should only call this once but why is the nodes name defined or created at creation of process ? Originally posted by Ali.Akdurak on ROS Answers with karma: 75 on 2014-09-03 Post score: 7
Hi guys, I' ve got an USB -Simulator RC-Transmitter that works very nice under Linux. Since I want to use it for my ROS-Robots I wanted to create a node as a driver. The tutorial is really easy but running the command: $ jstest /dev/input/js0 I get the following output from my TX: How should I interpret numbers like: Axes: 0: 0 1: 0 2: 20606 Means 20606 microseconds? Millivolts? Or something else? Thanks Originally posted by Andromeda on ROS Answers with karma: 893 on 2014-09-03 Post score: 0
I have a ros-controls controller publishing a topic, and I'd like to remap that topic with a roslaunch <remap> tag. I tried applying the remap to both the controller spawner and the hardware interface node, and neither seemed to take. Is there some other method required? Originally posted by mikepurvis on ROS Answers with karma: 1153 on 2014-09-03 Post score: 0 Original comments Comment by timster on 2014-09-03: Please post your launch file
I maintain release of mavlink package ros. Upstream developers stopped making releases, it is recommended to use the latest snapshot. So that the original version is stuck at 1.0.9. When I release the update, the release number of the package rises, but it hard to track between ros releases (also it confuse users). I think it is more convenient to use instead of the original version of the snapshot date in the form of YEAR.MONTH.DAY. But i don't find any related information about releasing snapshots. Originally posted by vooon on ROS Answers with karma: 404 on 2014-09-03 Post score: 1
Hello, I want to connect a heart rate monitor device to the ROS by using the Bluetooth and stream the data. Is there an available code for this? Originally posted by Behzad on ROS Answers with karma: 1 on 2014-09-03 Post score: 0
So I'm using ROS Indigo along with Gazebo 2.2.3 on Ubuntu Trusty. I was wondering if there are any example codes of controlling said camera and visualize its data (i.e. project what it's seeing in a new window or something like that). For the sake of completeness, the model in question has a SDF model but no URDF model. I'm also using a stereo camera. UPDATE (Sep 4): Ok, so I discovered that Gazebo has an existing camera model in its model database. I was able to visualize camera data (i.e. show what it's seeing) using existing menu commands in Gazebo. Last, but not least, I was also able to attach the camera to my Gazebo model. The big question that I need help with is how to write code so I can call the camera to visualize using terminal commands instead of going into the Gazebo menu? Originally posted by K. Zeng on ROS Answers with karma: 23 on 2014-09-03 Post score: 1
I am new to ROS and as part of the tutorial, I am trying to install the hokuyo laser driver and have tried all the solutions posted so far but I keep getting the same error message sudo apt-get install ros-fuerte-laser-drivers E: unable to locate package ros-fuerte-laser-drivers and sudo apt-get install ros-hydro-urg-node E: unable to locate package ros-hydro-urg-node I am using Ubuntu 14.04 running on VirtualBox. I have ROS indigo igloo. Please help Originally posted by hry on ROS Answers with karma: 1 on 2014-09-03 Post score: 0
How create a Virtual NAO? I'm interested in simulate to NAO, but get erros. Install http://wiki.ros.org/nao/Installation/remote sudo apt-get install ros-hydro-nao-robot When use roslaunch nao_bringup nao_sim.launch Get this in the end: ResourceNotFound: xacro ROS path [0]=/opt/ros/hydro/share/ros ROS path [1]=/home/vincent/NAO/nao_robot-devel ROS path [2]=/home/vincent/NAO/nao_robot ROS path [3]=/home/vincent/NAO/nao_gazebo_lastes ROS path [4]=/home/vincent/NAO/nao_gazebo_plugin ROS path [5]=/home/vincent/NAO/nao_extras ROS path [6]=/home/vincent/NAO/nao_description ROS path [7]=/home/vincent/NAO/nao_common ROS path [8]=/home/vincent/NAO/humanoid_msgs ROS path [9]=/opt/ros/hydro/share ROS path [10]=/opt/ros/hydro/stacks When continue with another tutorial: http://wiki.ros.org/nao/Installation/compileFromVirtualNao Using sudo bash -c 'echo app-portage/gentoolkit >> /etc/portage/package.keywords' sudo bash -c 'echo dev-python/setuptools >> /etc/portage/package.keywords' Get a similar error: bash: /etc/portage/package.keywords: No existe el archivo o el directorio A lot of thanks!! Originally posted by vncntmh on ROS Answers with karma: 52 on 2014-09-03 Post score: 0
Hi, all! I am establishing a multi-robot system with several turtlebots. Every robot is an individual intelligent agent and same with each other. Then I want every robot in this multi-robot system to share their position. That is every robot has to broadcast its own position to other robots. I think it is easy to achieve this by using the pacakge rocon_multimaster Since every robot in our multi-robot system is same to each other, we has implemented a message topic /position_share which contains the information of robot_id and related information about the robot which publishes the topic /position_share. Every robot in this multi-robot system listens to topic /position_share and judges which robots the current message is from and do subsequent actions. However, checking the communication mechanism of advertisment in rocon_multimaster, I am confused on how to broadcast this topic message. Because for the same channel(also topic) /position_share. Every robot (move_base node) has a publisher and subscriber on it. So there is two ways to do this. default_advertisements: - name: /position_share node: move_base type: publisher default_advertisements: -name: /position_share node: move_base type: subscriber Which way should a robot choose to broadcast its own topic /position_share? As a subscriber or a publisher? Obviously, for a receiver, it also has two ways: default_pulls: - gateway: robot_id rule: name:/position_share node: move_base type: publisher default_pulls: - gateway: robot_id rule: name:/position_share node: move_base type: subscriber Of course, here I think I should add many gateways in which each of them represent a robot. Here I am also confused about the type. What should a robot to choose between "subscriber“ and "publisher" to receive the message /position_share from other robots ? Looking forward to helpful advice, thank you! Originally posted by scopus on ROS Answers with karma: 279 on 2014-09-03 Post score: 1 Original comments Comment by joq on 2014-09-04: I think one gateway should suffice: http://wiki.ros.org/rocon_multimaster/Use%20Cases .
Hi All, I have followed the instructions for generating an IKFast plugin located here, and have successfully generated an IKFast package using the instructions. Unfortunately the link to the method of running the plugin in Rviz (link) does not have any content so I am once again left guessing. When I run RViz using: roslaunch hyd_sys_complete_sldasm_moveit_config demo.launch I get the following errors repeatedly: [ERROR] [1409802774.965529932]: IK for this IkParameterizationType not implemented yet. This does not make sense to me, as when I examine the source code the control type (Translation3d) was specifically given as an argument for generating the IKFast package, yet it claims there is no implementation for it. Here's the offending generated code. I am using Translation3D as my solver yet it is not covered in the solve function given below. int IKFastKinematicsPlugin::solve(KDL::Frame &pose_frame, const std::vector<double> &vfree, IkSolutionList<IkReal> &solutions) const { // IKFast56/61 solutions.Clear(); double trans[3]; trans[0] = pose_frame.p[0];//-.18; trans[1] = pose_frame.p[1]; trans[2] = pose_frame.p[2]; KDL::Rotation mult; KDL::Vector direction; switch (GetIkType()) { case IKP_Transform6D: // For **Transform6D**, eerot is 9 values for the 3x3 rotation matrix. mult = pose_frame.M; double vals[9]; vals[0] = mult(0,0); vals[1] = mult(0,1); vals[2] = mult(0,2); vals[3] = mult(1,0); vals[4] = mult(1,1); vals[5] = mult(1,2); vals[6] = mult(2,0); vals[7] = mult(2,1); vals[8] = mult(2,2); // IKFast56/61 ComputeIk(trans, vals, vfree.size() > 0 ? &vfree[0] : NULL, solutions); return solutions.GetNumSolutions(); case IKP_Direction3D: case IKP_Ray4D: case IKP_TranslationDirection5D: // For **Direction3D**, **Ray4D**, and **TranslationDirection5D**, the first 3 values represent the target direction. direction = pose_frame.M * KDL::Vector(0, 0, 1); ComputeIk(trans, direction.data, vfree.size() > 0 ? &vfree[0] : NULL, solutions); return solutions.GetNumSolutions(); case IKP_TranslationXAxisAngle4D: case IKP_TranslationYAxisAngle4D: case IKP_TranslationZAxisAngle4D: // For **TranslationXAxisAngle4D**, **TranslationYAxisAngle4D**, and **TranslationZAxisAngle4D**, the first value represents the angle. ROS_ERROR_NAMED("ikfast", "IK for this IkParameterizationType not implemented yet."); return 0; case IKP_TranslationLocalGlobal6D: // For **TranslationLocalGlobal6D**, the diagonal elements ([0],[4],[8]) are the local translation inside the end effector coordinate system. ROS_ERROR_NAMED("ikfast", "IK for this IkParameterizationType not implemented yet."); return 0; case IKP_Rotation3D: case IKP_Translation3D: case IKP_Lookat3D: case IKP_TranslationXY2D: case IKP_TranslationXYOrientation3D: case IKP_TranslationXAxisAngleZNorm4D: case IKP_TranslationYAxisAngleXNorm4D: case IKP_TranslationZAxisAngleYNorm4D: ROS_ERROR_NAMED("ikfast", "IK for this IkParameterizationType not implemented yet."); return 0; default: ROS_ERROR_NAMED("ikfast", "Unknown IkParameterizationType! Was the solver generated with an incompatible version of Openrave?"); return 0; } } Is there something in the kinematics.yaml file for the RViz plugin I need to change? I know that the standard kinematic solvers do not work properly for my arm as it only has three degrees of freedom, but unfortunately IKFast has proven much more trouble than it is worth. Is there a solution to this? Kind Regards Bart Originally posted by bjem85 on ROS Answers with karma: 163 on 2014-09-03 Post score: 2
Hi, When using the new package.xml format 2 (http://docs.ros.org/indigo/api/catkin/html/howto/format2/), I am not able to export any nodelet plugins from my package. The relevant parts of the package.xml are: <depend>roscpp</depend> <depend>nodelet</depend> Trying to launch my nodelet gives me a Failed to load nodelet [...] According to the loaded plugin descriptions the class [...] with base class type nodelet::Nodelet does not exist. error. On running rospack plugins --attrib=plugin nodelet it does not list my package. But now if I add a <run_depend>nodelet</run_depend> in the package.xml which is invalid according to the new format, rospack lists it in the plugins list but of course I'm not able to run the nodelet since the package.xml is invalid. If I go back to package.xml format 1, everything works fine. So, is this due to some incomplete implementation of package.xml format 2? Originally posted by kartikmohta on ROS Answers with karma: 308 on 2014-09-04 Post score: 1 Original comments Comment by ahendrix on 2014-09-04: Please include your full package.xml in your question. Comment by William on 2014-09-04: @Dirk Thomas FYI. Comment by William on 2014-09-04: @kartikmohta as you describe the problem, it sounds like a bug. I believe rospack prunes the list of packages to only include ones that run_depend on the target package, in this case nodelet. It could be that this code path is not aware of the aggregate nature of the tag.
Hi, I downloaded the tools from github and followed the instructions to install them. However the installation fails with the message Linking CXX executable bin/global_cloud_align lib/librgbdtools.so: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)' lib/librgbdtools.so: undefined reference to `boost::filesystem::detail::create_directories(boost::filesystem::path const&, boost::system::error_code*)' lib/librgbdtools.so: undefined reference to `boost::filesystem::detail::create_directory(boost::filesystem::path const&, boost::system::error_code*)' Other packages can link to boost normally, so in CMakeLists.txt I added the compile flags for filesystem and system but no luck. I have not messed with the package files in any other way. The rest of the stack's packages also seem to isntall fine. EDIT: Forgot to mention, I am using ROS Hydro, Boost 1.52 on Ubuntu 12.04 Any suggestions ? Originally posted by AndreasLydakis on ROS Answers with karma: 140 on 2014-09-04 Post score: 0
I am using ROS Indigo with gazebo 4.0.1 as installed by the ros-indigo-gazebo4-prerelease-* packages. I am trying to use the set_model_state topic to move a Pioneer 2DX model around. The model contains the following frames: chassis right_wheel left_wheel right_wheel_hinge left_wheel_hinge First, I issue the following command: rostopic pub /gazebo/set_model_state gazebo_msgs/ModelState "model_name: 'pioneer2dx' pose: position: x: 0.0 y: 0.0 z: 0.0 orientation: x: 0.0 y: 0.0 z: 0.0 w: 0.0 twist: linear: x: 0.0 y: 0.0 z: 0.0 angular: x: 0.0 y: 0.0 z: 0.1 reference_frame: 'chassis'" The robot correctly begins to turn counter-clockwise. After it turns some nontrivial amount, I then issue a second command to stop it. I then issue this command: rostopic pub /gazebo/set_model_state gazebo_msgs/ModelState "model_name: 'pioneer2dx' pose: position: x: 0.0 y: 0.0 z: 0.0 orientation: x: 0.0 y: 0.0 z: 0.0 w: 0.0 twist: linear: x: 0.4 y: 0.0 z: 0.0 angular: x: 0.0 y: 0.0 z: 0.0 reference_frame: 'chassis'" My expectation is that the robot will move forward in the direction that it is currently facing. This is why I issued the command in the chassis frame. However, the robot instead starts moving forward along the X-axis in the world coordinate frame. I have verified this with a second robot model (my own), and assumed I did something wrong with my model until the same issue appeared with the P2DX. Is this working as intended, or is it a bug? I can easily convert the desired drive command to the "correct" reference frame, but it seems as though the robot ought to be able to accept commands to drive in its body coordinate frame. Originally posted by Tom Moore on ROS Answers with karma: 13689 on 2014-09-04 Post score: 0
I build a navigation stack for my robot. When I roslaunch the launch file, the screen shows "error: couldn't transform from laser to base_footprint, even though the message notifier is in use". After a while, it said "error: couldn't determine robot's pose associated with laser scan". The screen images are shown below. Is there anyone know what's wrong with tf or laser_scan? Thanks very much. Originally posted by tony on ROS Answers with karma: 76 on 2014-09-04 Post score: 0 Original comments Comment by bvbdort on 2014-09-04: Can you write more info. Comment by tony on 2014-09-04: @bvbdort, I have write the problem in detail. Do you have some suggestion about the errors?Thanks. Comment by tony on 2014-09-04: ros version is hydro Comment by bvbdort on 2014-09-05: take a loot at rosrun tf view_frames and post frame.pdf , it give more info on tf of your setup.
I was wondering if it is possible to run a pre-release test on a package that's never been released before. I've been following the tutorial on ROS wiki up to the point where bloom asks if it should open a pull request to rosdistro, at which moment the tutorial tells you to abort everything. So the question is, how would the prerelease website know about your package to put it in the list of repositories available for testing, if you don't even have a pull request open. Where does it get the list of repos in general, from the actual .yaml file of rosdistro? I'm really confused. Thanks. Originally posted by gaya on ROS Answers with karma: 311 on 2014-09-04 Post score: 1
I was going through the code base of ROS navigation. I have some difficulty understanding the name field and type field for running a node in a launch file. For example, I run the move_base node using the following line in my launch file. node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen" However, when I look at the source code for move_base, it has a file named move_base_node and during initialization as well is called "move_base_node" ros::init(argc, argv, "move_base_node"); But the executable that is present in my devel folder is called "move_base". I wonder how the naming is supposed to work and how did it get changed. The CMakelists file also contains "move_base_node" and not "move_base". Thank you for your time. Originally posted by 2ROS0 on ROS Answers with karma: 1133 on 2014-09-04 Post score: 1
Hi All, I need to interface with Orion Robotics' RoboClaw motor controllers and so require some kind of driver. More info on the device here. I will have several of them connected via USB and need to talk to them individually. I would like to write the generic driver and create a new instance for each physical device. I was thinking that I will need a node to run to maintain the connection to the device...? But should requests be received using services or messages? Thanks for any help, Chris. Originally posted by anonymous8676 on ROS Answers with karma: 327 on 2014-09-04 Post score: 0
Hello, I would like to ask the difference between a state estimator like robot_localization, or robot_pose_ekf and a localization package like amcl. Can we say, a state estimator estimating (x, y, z, roll, pitch, yaw, and their respective velocities) is more general than a localization module which only estimates (x, y, z, roll, pitch, yaw) Other than the fact that, robot_localization, or robot_pose_ekf are fusing odometry data from different sensors and amcl is using this data plus laser/camera data to localize the robot, and (x, y, z) in state estimators are relative to the initial position and global (relative to the map) in amcl Thanks Originally posted by ROSCMBOT on ROS Answers with karma: 651 on 2014-09-04 Post score: 3 Original comments Comment by Martin Peris on 2014-09-04: I guess that the main difference would be a state estimator provides localization of the robot on a frame local to the robot (the origin of the odometry frame will depend on where the robot woke up) and a localization package such as amcl provides localization on a global frame.
Hello, My question is a repeat of this question. I'm trying to set up the navigation stack on a robot possessing only odometry sensors (wheel encoder, IMU published to /odom /imu). No camera/laser. The robot is also using robot_state_publisher to publish the transformations between robot coordinates. I want to use only odometry sources (wheel encoder, IMU) to navigate the robot, so my plan is to use robot_localization to fuse the odometry data and use fake_localization to localize the robot on the known map. The navigation tutorial says that we should create a package: roscreate-pkg my_robot_name_2dnav move_base my_tf_configuration_dep my_odom_configuration_dep my_sensor_configuration_dep So the question is what should I put instead of my_tf_configuration_dep my_odom_configuration_dep my_sensor_configuration_dep Thanks Originally posted by ROSCMBOT on ROS Answers with karma: 651 on 2014-09-04 Post score: 0 Original comments Comment by David Lu on 2014-09-08: Which tutorial? Comment by ROSCMBOT on 2014-09-08: http://wiki.ros.org/navigation/Tutorials/RobotSetup/
Hi, I would like to build a 3D map from velodyne_points (sensor_msgs/PointCloud2) in offline mode. In order to save some storage space, I am logging only velodyne_packets (velodyne_msgs/VelodyneScan) to a rosbag file using velodyne_driver. Later, I need to convert this VelodyneScan into PointCloud2 to build the map. So my question is: How to convert VelodyneScan into PointCloud2 when the device is no connected? I was trying velodyne_pointcloud that works fine only when the sensor (Velodyne) is connected. Otherwise, it does not publish /velodyne_points. Thank you. Originally posted by AsifA on ROS Answers with karma: 231 on 2014-09-04 Post score: 1 Original comments Comment by bvbdort on 2014-09-05: how you are running velodyne_pointploud Comment by AsifA on 2014-09-05: I am playing back the rosbag file as rosbag play --clock file_name.bag and then launching the cloud_nodelet.launch file located in the velodyne_pointcloud package. cont ... Comment by AsifA on 2014-09-05: In the launch file, I am assigning the value "$(find velodyne_pointcloud)/params/32db.yaml" to the parameter "calibration".
I have a ROS package and I want to remove it to create a new one with the same name and same nodes. I'm using ROS FUERTE Originally posted by Richard on ROS Answers with karma: 21 on 2014-09-04 Post score: 2
Hello, I am trying to share a topic between two different networks. There are three computers and let's call them as PC1,PC2, and PC3. (all are ubuntu and running ROS) Each PC has the following network settings. PC1: wlan0 (obtaining IP from ISP's DHCP) IP: 121.131.88.99 eth0 IP: 192.168.1.1 PC2: eth0 (Static IP address) IP: 192.168.1.30 Gateway: 192.169.1.1 PC3: wlan0 (obtaining IP from ISP's DHCP) IP: 121.131.88.100 For more explanations, I have two network adaptors named: wlan0 and eth0 on PC1. wlan0 connects to ISP's network (the Internet is connected) and obtain a IP address through ISP's DHCP. (let's say 121.131.88.99) eth0 is a gateway that has a static IP address (192.168.1.1) and PC2 is connected to PC1 through wired for the Internet sharing. (It works). iptable is properly set up for forwarding from wlan0 to eth0. ROS master is running on PC2 which has a IP address (192.168.1.30). This machine publish a simple topic such as "/test/topic" with std_msgs/String type. What I want is that subscribing the topic "/test/topic" from PC3. I can subscribe the topic on PC2 by setting ROS_MASTER_URI to 192.168.1.30 but PC3 can't connect to PC2 since they are belongs to different networks. (192.169.x.x) and (121.131.x.x). I already attempted ros multimaster_fkie but still couldn't subscribe anything on PC3. I think I do need some iptable settings from eth0 to wlan0 on PC1 as it done for the Internet sharing (from wlan0 to to eth0). Any comments on this issue would be appreciate. Cheers. PS: I am bit afraid whether the explanation is understandable or deliver my point or not as my network setting environments is messy. Originally posted by enddl22 on ROS Answers with karma: 177 on 2014-09-04 Post score: 0 Original comments Comment by bvbdort on 2014-09-05: did you set ROS_IP ? Comment by enddl22 on 2014-09-05: Yes, but no success.
I am trying to follow ros tutorial (make a map and navigate it). However each time I tried to use gazebo and RViz, it crushes. Please guide me how to solve the problem? Is the problem related to graphics card? My machine is using nvidia driver (NVIDIA Corporation G92 [GeForce 9800 GT] (rev a2) (prog-if 00 [VGA controller]) Thank you Originally posted by Ahyan on ROS Answers with karma: 1 on 2014-09-05 Post score: 0 Original comments Comment by Ahyan on 2014-09-05: However I successfully finished the tutorial 'Explore the Gazebo world'. Comment by BennyRe on 2014-09-05: Any error messages or something like that would be very helpful. What crashes? Gazebo or RViz? Comment by Ahyan on 2014-09-07: thanks a lot for your response. When I tried the following RViz seems trying to start but fails. $ roslaunch turtlebot_rviz_launchers view_navigation.launch I need to restart my computer then. Why this is happening? Comment by BennyRe on 2014-09-07: Can you run RViz alone? try $ rosrun rviz rviz Comment by Ahyan on 2014-09-11: yes. I can run RViz alone. Also gazebo. Comment by BennyRe on 2014-09-11: Please post the link to your tutorial. Comment by Ahyan on 2014-09-11: Here it is: http://wiki.ros.org/turtlebot_simulator/Tutorials/hydro/Make%20a%20map%20and%20navigate%20with%20it Comment by BennyRe on 2014-09-11: Ok try the following: Follow the tutorial till you come to the RViz point. Then start RViz with $ rosrun rviz rviz Then you can try adding the plugins by yourself and maybe you find the plugin that makes problems. Add the plugins you see in the picture in the tutorial.
i'm programming a GUI with QT which should run in RQT and have a ROS MAP as a background. I tried using map_server to launch the map but then i get the warning in QT : it is not safe to use pixmaps outside the GUI. I'm totally confused how to combine ros, qt and rqt together so if there is any example or explanation on this subject i would really appreciate it. thanks in advance. Originally posted by beginner_alex on ROS Answers with karma: 1 on 2014-09-05 Post score: 0
Hi, I want to get the angle between 2 quaternions (as euler angle), but the angle always needs to be from q1 to q2 (not the shortest angle). But since there are two ways to get an angle, I need to find the one I need. The following code works, but I'm looking for a nicer solution. // calculate difference ori_diff = q1.inverse() * q1; //just use the pitch part ori_diff.setValue(0., ori_diff.y(), 0., ori_diff.w()); ori_diff.normalize(); //get euler angle tf::Matrix3x3 m; m.setRotation(ori_diff); tfScalar r1, r2, p1, p2, y1, y2; m.getRPY(r1, p1, y1, 1); m.getRPY(r2, p2, y2, 2); if ( r1 == 0 && y1 == 0 ) { euler_angle = p1; } else if ( r2 == 0 && y2 == 0) { euler_angle = p2; } else { ROS_ERROR( ... ); } Originally posted by Tobias Neumann on ROS Answers with karma: 179 on 2014-09-05 Post score: 1
Hello! in my tf tree I have that between /map and /odom there's amcl that publish at 20Hz. How to increase this speed rate? Originally posted by alex920a on ROS Answers with karma: 35 on 2014-09-05 Post score: 0
Hi, is it possible to load all yaml-files in an folder? Like: <rosparam folder="$(find parameter)/my_params/" /> Originally posted by Tobias Neumann on ROS Answers with karma: 179 on 2014-09-05 Post score: 0
Is it possible to update the frequency of the current running loops of a ros::Rate or ros::Timer object? Originally posted by Johannes Jaegers on ROS Answers with karma: 70 on 2014-09-05 Post score: 0
Hello everybody! I have a problem: I'm running amcl and navigation stack on husky in a empty room. If I add some obstacles in the room the global costmap will update but unfortunately the odom frame will have a wrong position. Can somebody help me please? I'm using hydro on ubuntu 12.04lts Originally posted by alex920a on ROS Answers with karma: 35 on 2014-09-05 Post score: 0
I created a subscriber node "Listener.cpp" in the src folder of the package ardrone_autonomy. I also modified the CMakeLists.txt file by adding dependency, executable link However, when I go to my catkin workspace and type in "catkin_make", It builds fine except for something wrong with my new file. What am I missing/ doing wrong? ERROR shown below: ... ... [100%] Building CXX object ardrone_autonomy/CMakeFiles/ardrone_driver.dir/src/listener.cpp.o Linking CXX executable /home/voladoddi/catkin_ws/devel/lib/ardrone_autonomy/ardrone_driver CMakeFiles/ardrone_driver.dir/src/listener.cpp.o: In function `main': listener.cpp:(.text+0x152): multiple definition of `main' CMakeFiles/ardrone_driver.dir/src/ardrone_driver.cpp.o:ardrone_driver.cpp:(.text+0x16a61): first defined here /usr/bin/ld: cannot find -llistener collect2: ld returned 1 exit status make[2]: *** [/home/voladoddi/catkin_ws/devel/lib/ardrone_autonomy/ardrone_driver] Error 1 make[1]: *** [ardrone_autonomy/CMakeFiles/ardrone_driver.dir/all] Error 2 make: *** [all] Error 2 Invoking "make" failed I checked the .cpp file I wrote. I cannot see any multiple definitions of main in the file. There's no other subscriber node named the same way either. EDIT - As William pointed out, I was trying add the node to the executable of the existing package. However, I added two lines to the end of my Subscriber.cpp file like below: #adding subscriber's node executable to the end of CMakeLists.txt file - POOJA add_executable(subscriber src/subscriber.cpp) target_link_libraries(subscriber ${catkin_LIBRARIES}) And now I'm getting the following errors: Build done. Checking required Ubuntu packages ... /home/voladoddi/catkin_ws/src/ardrone_autonomy/src/subscriber.cpp: In function ‘void ReceiveData(const ConstPtr&)’: /home/voladoddi/catkin_ws/src/ardrone_autonomy/src/subscriber.cpp:8:2: error: ‘const struct ardrone_autonomy::Navdata_<std::allocator<void> >’ has no member named ‘data’ /home/voladoddi/catkin_ws/src/ardrone_autonomy/src/subscriber.cpp: In function ‘int main(int, char**)’: /home/voladoddi/catkin_ws/src/ardrone_autonomy/src/subscriber.cpp:17:54: error: ‘Navdata’ was not declared in this scope /home/voladoddi/catkin_ws/src/ardrone_autonomy/src/subscriber.cpp:17:54: note: suggested alternative: /home/voladoddi/catkin_ws/devel/include/ardrone_autonomy/Navdata.h:246:61: note: ‘ardrone_autonomy::Navdata’ ok. Building ARDroneTool/Lib make[2]: *** [ardrone_autonomy/CMakeFiles/subscriber.dir/src/subscriber.cpp.o] Error 1 make[1]: *** [ardrone_autonomy/CMakeFiles/subscriber.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Building ARDroneTool/Lib [ 4%] Performing install step for 'ardronelib' make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. [ 5%] Completed 'ardronelib' [ 7%] Built target ardronelib make: *** [all] Error 2 Here is my subscriber code: #include "ros/ros.h" #include "ardrone_autonomy/Navdata.h" //The topics subscribed to : Time (from the header), Pitch angle(rotY) // where the MESSAGE= ardrone_autonomy void ReceiveData(const ardrone_autonomy::Navdata::ConstPtr& rot) { ROS_INFO("Time: %d, Pitch angle: %d",rot->data.header.stamp.to_sec(),rot->rotY); } //instantiating subscriber int main(int argc, char **argv) { ros::init(argc,argv,"subscriber"); ros::NodeHandle n; ros::Subscriber sub = n.subscribe("ardrone/navdata",Navdata,ReceiveData); ros::spin(); return 0; } Originally posted by voladoddi on ROS Answers with karma: 87 on 2014-09-05 Post score: 1 Original comments Comment by William on 2014-09-05: It looks like you are trying to link the new listener against the ardrone_autonomy executable, which doesn't really make sense. Please post your full CMakeLists.txt. Comment by voladoddi on 2014-09-05: Hi... That was indeed the problem. However, after looking around, I've added it to the end of CMakeLists.txt .I'm getting some other errors. Please do take a look and tell me what I'm doing wrong. I know it's got to do with variable names and scopes but if I get to know where to check,it'd help!
When I go to release a package that I did not create (this is my first time releasing it) it says: Your track's 'actions' configuration is not the same as the default. Unless you have manually modified your 'actions' (the commands which get run for a release), you should update to the new default. Should it be updated to the default setting? I'm pretty sure the answer is Yes, update to default. But how can I tell if the previous maintainer added a custom action? I checked http://bloom.readthedocs.org/en/0.5.7/search.html?q=action&check_keywords=yes&area=default and http://wiki.ros.org/bloom and I could not find more documentation on this actions feature. I think more should be written about it. Thanks! Originally posted by Dave Coleman on ROS Answers with karma: 1396 on 2014-09-05 Post score: 0
I'm using Gazebo 2.2.3 along with ROS Indigo. I also have a robot with a mounted camera in Gazebo. I was wondering if there is a way to just grab a single frame from the robot's camera (not live feed) using ROS. It doesn't even have to display the image like with the image_view command. Originally posted by K. Zeng on ROS Answers with karma: 23 on 2014-09-05 Post score: 1
Hi, I am launching a main.launch file. This file is calling several other configuration files of several nodes depending on the task. I know that I can record the data using rosbag record when I'm on mission. Is there a possibility to save all the configurations along with rosbag? I am looking for some thing similar as profile in Matlab. Any help is much appreciated. :) Originally posted by AsifA on ROS Answers with karma: 231 on 2014-09-05 Post score: 1
Hi, all! I am learning a multi-robot collision avoidance algorithm by using simulator Stage. please see following image: I think the yellow warning( exclamation mark) is saying that two robots crash with each other. I want to know where the code in Stage that this warning comes from, or in other words: what kind of topic is published when a collision is detected and which callback function in Stage is for response when a message( like topic?) about detecting collision is published? Thank you! Originally posted by scopus on ROS Answers with karma: 279 on 2014-09-05 Post score: 1
Hi guys, I ve defined in my usb_simulator folder 3 files with the following structure: where: joy_main.cpp #include <ros/ros.h> #include "joystick.h" int main( int argc, char **argv ) { ros::init( argc, argv, "usb_simulator" ); /* create a class: "Joystick" */ //Joystick usb_sim; // commented for debug ros::spin(); } is the main file, joystick.h #include <ros/ros.h> #include <sensor_msgs/Joy.h> #include <geometry_msgs/Twist.h> #ifndef JOYSTICK_H #define JOYSTICK_H class Joystick { private: void joystickCallback( const sensor_msgs::Joy &joy ) ; ros::NodeHandle nh_; int linear_, angular_; double l_scale_, a_scale_; ros::Publisher cmd_pub_; ros::Subscriber joy_sub_; public: Joystick(); }; #endif and joystick.cpp: #include "joystick.h" Joystick::Joystick() : linear_( 1 ), angular_( 2 ) { nh_.param( "axis_linear", linear_, linear_ ); nh_.param( "axis_angular", angular_, angular_ ); nh_.param( "scale_angular", a_scale_, a_scale_ ); nh_.param( "scale_linear", l_scale_, l_scale_ ); cmd_pub_ = nh_.advertise<geometry_msgs::Twist>( "usb_data", 1 ); joy_sub_ = nh_.subscribe<sensor_msgs::Joy>( "joy", 10, &Joystick::joystickCallback, this ); } void Joystick::joystickCallback( const sensor_msgs::Joy &joy ) { geometry_msgs::Twist vel; vel.angular = a_scale_ * joy->axes[angular_]; vel.linear = l_scale_ * joy->axes[linear_]; vel_pub_.publish( vel ); } define a class for the joystick interface. In my CMakeLists.txt: cmake_minimum_required(VERSION 2.8.3) project(usb_simulator) find_package(catkin REQUIRED COMPONENTS joy roscpp geometry_msgs ) ## Declare a cpp executable # add_executable(usb_simulator_node src/usb_simulator_node.cpp) add_executable( usb_simulator src/joy_main.cpp src/joystick.cpp ) ## Specify libraries to link a library or executable target against target_link_libraries( usb_simulator ${catkin_LIBRARIES} ) I defined both cpp files to be added to the executable. Running catkin_make I get the following error: /home/wilhem/workspace_ros/src/usb_simulator/src/joystick.cpp: In constructor ‘Joystick::Joystick()’: /home/wilhem/workspace_ros/src/usb_simulator/src/joystick.cpp:13:94: error: no matching function for call to ‘ros::NodeHandle::subscribe(const char [4], int, void (Joystick::*)(const Joy&), Joystick* const)’ joy_sub_ = nh_.subscribe<sensor_msgs::Joy>( "joy", 10, &Joystick::joystickCallback, this ); ^ /home/wilhem/workspace_ros/src/usb_simulator/src/joystick.cpp:13:94: note: candidates are: In file included from /opt/ros/indigo/include/ros/ros.h:45:0, from /home/wilhem/workspace_ros/src/usb_simulator/src/joystick.h:1, from /home/wilhem/workspace_ros/src/usb_simulator/src/joystick.cpp:1: /opt/ros/indigo/include/ros/node_handle.h:379:14: note: template<class M, class T> ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (T::*)(M), T*, const ros::TransportHints&) Subscriber subscribe(const std::string& topic, uint32_t queue_size, void(T::*fp)(M), T* obj, How can I solve this problem? Regards Originally posted by Andromeda on ROS Answers with karma: 893 on 2014-09-06 Post score: 0 Original comments Comment by Dirk Thomas on 2014-09-06: Besides your question you should move your header file into a separate "include" folder - actually in a subfolder "include/usb_simulator". You must then also add "include_directories(include)" to your CMake and reference the header in in your code like "#include "usb_simulator/joystick.h"". Comment by Andromeda on 2014-09-06: thanks, Should I copy even the joystick.cpp into the include/usb_simulator folder or just the .h file? In that file how should I modify the CMkaeLists.txt ?? Thanks again
Hi everybody, I got from Yaskawa the MotoPlus runtime package and I installed the motoman_driver packages. I also used the move_to_joint.py to move the robot and wrote my own c++-Application sending the robot (publishing it in the joint_path_command topic) a JointTrajectory defined by a simple JointTrajectoryPoint. This works quite good. I have also some experience IkFast to make the Ik ond FK- Transformations. But now I want to be able to send an whole path to the robot and to plan the path. I have basically no idea how I could do this. I think I should use MoveIt!, but there are no specefications on the MoveIt! Homepage for my robot. Could you explain me which packages I may need to install for this and which kind of message I have to publish whereever? Or is there an example or Tutorial for this? Thank you! Originally posted by Sarah D.R. on ROS Answers with karma: 1 on 2014-09-06 Post score: 0
Is it possible in ROS to record current weather conditions from a website or weather-indicator in Ubuntu? I would like to record current atmosphere temperature, humidity, etc for some experiments. Thanks. Originally posted by AsifA on ROS Answers with karma: 231 on 2014-09-06 Post score: 0 Original comments Comment by bvbdort on 2014-09-06: google "waether api with c++ wrapper" , your question is not ROS specific.
I'm trying to publish a string under the topic, name. But I'm getting compile error and I can't figure out where exactly the problem lies also. Could someone help me out. This is my pubname.cpp file. #include <ros/ros.h> #include <std_msgs/String.h> int main(int argc, char **argv) { ros::init(argc,argv,"pubname"); //node name is pubname ros::NodeHandle nh; ros::Publisher pub = nh.advertise<std_msgs::String>("name",1000); //topic is name ros::Rate rate(2); while(ros::ok()) { std_msgs::String msg("Patrick"); pub.publish(msg); ROS_INFO_STREAM("Sending Name "); rate.sleep(); } } This is my CMakeLists.txt, cmake_minimum_required(VERSION 2.8.3) project(assignment2) find_package(catkin REQUIRED COMPONENTS roscpp std_msgs) catkin_package() include_directories(include ${catkin_INCLUDE_DIRS}) add_executable(pubname pubname.cpp) target_link_libraries(pubname ${catkin_LIBRARIES}) Error: Scanning dependencies of target pubname [100%] Building CXX object assignment2/CMakeFiles/pubname.dir/pubname.cpp.o /home/Patrick/ROSthings/Auro2/src/assignment2/pubname.cpp: In function ‘int main(int, char**)’: /home/Patrick/ROSthings/Auro2/src/assignment2/pubname.cpp:16:39: error: no matching function for call to ‘std_msgs::String_<std::allocator<void> >::String_(const char [16])’ std_msgs::String msg("Patrick"); ^ /home/Patrick/ROSthings/Auro2/src/assignment2/pubname.cpp:16:39: note: candidates are: In file included from /home/Patrick/ROSthings/Auro2/src/assignment2/pubname.cpp:2:0: /opt/ros/indigo/include/std_msgs/String.h:62:3: note: std_msgs::String_<ContainerAllocator>::String_(const ContainerAllocator&) [with ContainerAllocator = std::allocator<void>] String_(const ContainerAllocator& _alloc) ^ /opt/ros/indigo/include/std_msgs/String.h:62:3: note: no known conversion for argument 1 from ‘const char [16]’ to ‘const std::allocator<void>&’ /opt/ros/indigo/include/std_msgs/String.h:59:3: note: std_msgs::String_<ContainerAllocator>::String_() [with ContainerAllocator = std::allocator<void>] String_() ^ /opt/ros/indigo/include/std_msgs/String.h:59:3: note: candidate expects 0 arguments, 1 provided /opt/ros/indigo/include/std_msgs/String.h:55:8: note: std_msgs::String_<std::allocator<void> >::String_(const std_msgs::String_<std::allocator<void> >&) struct String_ ^ /opt/ros/indigo/include/std_msgs/String.h:55:8: note: no known conversion for argument 1 from ‘const char [16]’ to ‘const std_msgs::String_<std::allocator<void> >&’ make[2]: *** [assignment2/CMakeFiles/pubname.dir/pubname.cpp.o] Error 1 make[1]: *** [assignment2/CMakeFiles/pubname.dir/all] Error 2 make: *** [all] Error 2 Invoking "make" failed Originally posted by lffox on ROS Answers with karma: 7 on 2014-09-06 Post score: 0 Original comments Comment by bvbdort on 2014-09-06: please post error message Comment by lffox on 2014-09-06: hello, edited.
Hello, I am using UDOO board and a sick lms 200. I get an error when i run the sicktoolbox_wrapper which says "failed to detect baud rate". If not that the program waits indefintely at startup. *** Attempting to initialize the Sick LMS... Attempting to open device @ /dev/ttyUSB0 the program waits here forever or it says "failed to detect the baud rate". I've tried the same serial to usb converter cable on my x86 machine and it works perfectly. I sometimes get the following error " *** Attempting to initialize the Sick LMS... Attempting to open device @ /dev/ttyUSB0 Device opened! Attempting to start buffer monitor... Buffer monitor started! Attempting to set requested baud rate... A Timeout Occurred! 2 tries remaining A Timeout Occurred! 1 tries remaining A Timeout Occurred - SickLIDAR::_sendMessageAndGetReply: Attempted max number of tries w/o success! Failed to set requested baud rate... Attempting to detect LMS baud rate... Checking 19200bps... ERROR: I/O exception - SickLMS2xx::_setTerminalBaud: Unable to set device attributes! ERROR: I/O exception - SickLMS2xx::_setTerminalBaud: Unable to set device attributes! ERROR: I/O exception - SickLMS2xx::_setTerminalBaud: Unable to set device attributes! /opt/ros/hydro/lib/sicktoolbox_wrapper/sicklms: symbol lookup error: /opt/ros/hydro/lib/sicktoolbox_wrapper/sicklms: undefined symbol: _ZN3ros7console5printEPNS0_10FilterBaseEPvNS0_6levels5LevelEPKciS7_S7_z Originally posted by asusrog on ROS Answers with karma: 63 on 2014-09-06 Post score: 0 Original comments Comment by ahendrix on 2014-09-06: You have two open questions and an open bug about your problems already. Please update those before asking a new question. Comment by asusrog on 2014-09-06: sorryy.. forgot to update them.
Hello, In the sources for the navigation stack, there's a sample costmap_2d config file at navigation/costmap_2d/launch/example_params.yaml. In the part pertaining to the base_scan source, there's an undocumented parameter called 'expected_update_rate': observation_sources: base_scan base_scan: {data_type: LaserScan, expected_update_rate: 0.4, observation_persistence: 0.0, marking: true, clearing: true, max_obstacle_height: 0.4, min_obstacle_height: 0.08} Is this what it sounds like (laser update rate in Hz)? 0.4 is kind of a weird value for a scanning laser so thought I'd check. Thanks, Rick Originally posted by Rick Armstrong on ROS Answers with karma: 567 on 2014-09-06 Post score: 0
I've been following this tutorial, http://wiki.ros.org/hector_slam/Tutorials/MappingUsingLoggedData, but I never got past step 4. My OS version - Ubuntu 14.04 and I'm running ROS Indigo. I get the following error: Patrick@grimreaper:~$ rosbag play Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag --clock [ INFO] [1410114868.718453773]: Opening Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag [FATAL] [1410114868.719106803]: Error opening file: Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag [EDIT] Patrick@grimreaper:~$ rosbag info Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag ERROR reading Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag: [Errno 2] No such file or directory: 'Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag' But the file was successfully downloaded, Patrick@grimreaper:~/ROSthings$ wget http://tu-darmstadt-ros-pkg.googlecode.com/files/Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag --2014-09-07 23:23:24-- http://tu-darmstadt-ros-pkg.googlecode.com/files/Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag Resolving tu-darmstadt-ros-pkg.googlecode.com (tu-darmstadt-ros-pkg.googlecode.com)... 74.125.130.82, 2404:6800:4003:c01::52 Connecting to tu-darmstadt-ros-pkg.googlecode.com (tu-darmstadt-ros-pkg.googlecode.com)|74.125.130.82|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 81363927 (78M) [application/octet-stream] Saving to: ‘Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag’ 100%[=========================================================================================================>] 8,13,63,927 72.2KB/s in 12m 24s 2014-09-07 23:35:49 (107 KB/s) - ‘Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag’ saved [81363927/81363927] Any thoughts as to why this is happening? Originally posted by lffox on ROS Answers with karma: 7 on 2014-09-07 Post score: 0 Original comments Comment by bvbdort on 2014-09-07: what about result of rosbag info Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag Comment by lffox on 2014-09-07: @bvbdort edited.
Hello, When we run move_base with dwa_local_planner, doing a rostopic list shows a topic named /move_base/DWAPlannerROS/trajectory_cloud, and another named /move_base/DWAPlannerROS/cost_cloud. However, nothing ever seems to get posted to these topics, even when there's an active nav goal in play. Should we be seeing output on these topics? We're debugging some strange behavior and would sure like to see what the planner is thinking. Thanks, Rick Originally posted by Rick Armstrong on ROS Answers with karma: 567 on 2014-09-07 Post score: 0 Original comments Comment by ahendrix on 2014-09-07: I think there are parameters that you have to set to enable these topics.
Using the stdr_simulator tutorial Using turtlebot for teleoperation the command: viki@c3po:~/catkin_ws/src/stdr_tele/launch$ roslaunch stdr_tele stdr_keyboard.launch receives the message: [stdr_keyboard.launch] is neither a launch file in package [stdr_tele] nor is [stdr_tele] a launch file name The launch file: <launch> <!-- turtlebot_teleop_key already has its own built in velocity smoother --> <node pkg="turtlebot_teleop" type="turtlebot_teleop_key" name="turtlebot_teleop_keyboard" output="screen"> <param name="scale_linear" value="0.5" type="double"/> <param name="scale_angular" value="1.5" type="double"/> <remap from="turtlebot_teleop_keyboard/cmd_vel" to="robot0/dmd_vel"/> </node> </launch> What am I doing wrong? Originally posted by Joseph Landau on ROS Answers with karma: 51 on 2014-09-07 Post score: 0 Original comments Comment by bvbdort on 2014-09-08: do roslaunch in folder where you have launch file. Comment by Joseph Landau on 2014-09-08: That doesn't seem to work. viki@c3po:~/catkin_ws/src/stdr_tele/launch$ roslaunch stdr_tele stdr_keyboard.launch [stdr_keyboard.launch] is neither a launch file in package [stdr_tele] nor is [stdr_tele] a launch file name Also fails when I attempt the roslaunch from the parent folder.
so i was following the SLAM Map Building with TurtleBot. The problem is there is no map received error in rviz. anyone know how to overcome this problem? Originally posted by lfyhmdn on ROS Answers with karma: 36 on 2014-09-08 Post score: 0 Original comments Comment by bvbdort on 2014-09-08: Please add more info about what error you are getting
Hi, I followed the tutorial Installing on Raspberry PI/Raspbian from source and have a problem at point 5.6. When I try the command "sudo rosdep check --from-paths src --ignore-src --rosdistro groovy" I get the error "ERROR: your rosdep installation has not been initialized yet. Please run: rosdep update". The command "rosdep update" has no effect and error message comes again. I run "sudo rosdep init" before. Thanks for help. UPDATE 1: rosdep update Hit https://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml 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 Query rosdistro index https://raw.github.com/ros/rosdistro/master/index.yaml Add distro "groovy" Add distro "hydro" Add distro "indigo" updated cache in /root/.ros/rosdep/sources.cache With the sudo command (sudo rosdep update) it works and I could run after some fixes in the file "gbpdistro_support.py" the following command: sudo rosdep check --from-paths src --ignore-src --rosdistro groovy --os=debian:wheezy but got another problem: System dependencies have not been satisified: apt ros-groovy-urdf sudo apt-get install ros-groovy-urdf 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-urdf : Depends: ros-groovy-collada-parser but it is not going to be installed E: Unable to correct problems, you have held broken packages. sudo apt-get install ros-groovy-collada-parser 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-collada-parser : Depends: collada-dom2.4-dp-base (>= 2.4.0.16+rpi1) but it is not installable E: Unable to correct problems, you have held broken packages. I have built and installed the collada package successfully how it was described in point 5.5. UPDATE 2: The result is not much different. sudo rosdep install --from-paths src --ignore-src --rosdistro groovy -yr --os=debian:wheezy executing command [sudo apt-get install -y ros-groovy-urdf] 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-urdf : Depends: ros-groovy-collada-parser but it is not going to be installed E: Unable to correct problems, you have held broken packages. ERROR: the following rosdeps failed to install apt: command [sudo apt-get install -y ros-groovy-urdf] failed apt: Failed to detect successful installation of [ros-groovy-urdf] UPDATE 3: I need the package "collada-dom2.4-dp-base (>= 2.4.0.16+rpi1)" but there is no source or package via apt-get available. sudo rosdep install --from-paths src --ignore-src --rosdistro groovy -yr --os=debian:wheezy --skip-keys=collada-dom The following packages have unmet dependencies: ros-groovy-urdf : Depends: ros-groovy-collada-parser but it is not going to be installed E: Unable to correct problems, you have held broken packages. ERROR: the following rosdeps failed to install apt: command [sudo apt-get install -y ros-groovy-urdf] failed apt: Failed to detect successful installation of [ros-groovy-urdf] Originally posted by gus484 on ROS Answers with karma: 1 on 2014-09-08 Post score: 0 Original comments Comment by tfoote on 2014-09-08: Please show your commands and the console output from running them. Comment by BennyRe on 2014-09-09: To install system dependencies use rosdep install instead of check.
Hi Im currently using rviz to detect an object's relative position to robot. Any help? Originally posted by Chirstina on ROS Answers with karma: 1 on 2014-09-08 Post score: 0
Using Gazebo, I place a husky robot in a completely unknown environment (currently the willowgarage map). My basic objective is to make the husky autonomously navigate itself through the entire world with the sole aim of mapping the entire area. Basically, if anyone could tell me how to combine an exploration algorithm such as frontier_exploration with gmapping, I would greatly appreciate it. Most tutorials out there use teleoperation, which really defeats the purpose I'm trying to achieve. Thank You! Originally posted by Ashwin27 on ROS Answers with karma: 34 on 2014-09-08 Post score: 1 Original comments Comment by Nikhil16 on 2016-03-22: Hi! Did you manage to do it? Comment by Ashwin27 on 2016-03-22: Hello Nikhil, I moved forward with the Nav2d package by Sebastien mentioned in the answer below. I highly recommend it, it's a great place to start.
Hi, I'm trying to write a little client to access osm maps. What I did so far is: ros::init(argc, argv, "Geo"); ros::NodeHandle n; ros::ServiceClient client = n.serviceClient<geographic_msgs::GetGeographicMap>("geographic_msgs"); geographic_msgs::GetGeographicMap srv; srv.request.url = "http://openstreetmap.org/node/123456"; if(client.call(srv)) { ROS_INFO("connected"); } else { ROS_ERROR("failed"); } If I run the programm I always get "failed" as an output. Could anyone tell me how to connect to the maps correctly? Thanks in advance, Chris Originally posted by chris on ROS Answers with karma: 13 on 2014-09-08 Post score: 1 Original comments Comment by BennyRe on 2014-09-08: Is the service running? Comment by chris on 2014-09-09: Unfortunately the service seems not to be running. I tried to run it with rosrun, but there was no executable found. I compiled the Package with catkin_make before and I had no error as a result. In addition the Package seems to be a Metapackage. So how could I start the service?
Hi. I want to know whether Eclipse or any other IDE offers autocomplete features for rospy library. For example if we write "rospy." the the IDE should automatically suggest the different functions that we can use. Does any IDE offer this feature? Kindly, help me. Thanks Originally posted by ish45 on ROS Answers with karma: 151 on 2014-09-08 Post score: 2 Original comments Comment by jarvisschultz on 2014-09-08: Lately, I've been having great success using jedi for all Python completions, including rospy, in emacs.
Hello! Is there any way to use only some functions of move_base? I want to use in my node only the global costmap created with move_base and nothing else (no planners) Originally posted by alex920a on ROS Answers with karma: 35 on 2014-09-08 Post score: 0
Hi, I'm trying to connect a simple driver for a proximity sensor that only returns a Boolean answer for a preset range. It seems that all the messages under sensor_msgs require a more complex answer like: "what is the range". Well, I don't have that answer, I only have "yes/no". Am I missing something? Thanks, Moshe Originally posted by MosheS on ROS Answers with karma: 5 on 2014-09-08 Post score: 0
Hi, I am using APC220 Radio Communication Module on my arduino atmega2560, in order to communicate with my computer wirelessly. i have written a simple publisher/subscriber node for my arduino using arduino ide and ros_lib, it's works fine using usb to serial cable, but when i'm using APC220(which is actually acts as an serial interface, conntected toRX/TX pins), i am getting following errors: [ERROR] [WallTime: 1410187017.536715] Tried to publish before configured, topic id 125 [ERROR] [WallTime: 1410187017.538328] Tried to publish before configured, topic id 125 [WARN] [WallTime: 1410187017.549967] Serial Port read returned short (expected 16 bytes, received 13 instead). [WARN] [WallTime: 1410187017.550437] Serial Port read failure: [INFO] [WallTime: 1410187017.550810] Packet Failed : Failed to read msg data [INFO] [WallTime: 1410187017.551095] msg len is 16 I am almost sure about my hardware settings and baud rates, because it's works with a single publisher, my problem is a node with subscriber and publisher working simultaneously. Is there any tips about using rosserial_arduino with wireless modules? Is there any body who has experienced APC220 modules with ROS and Arduino? Originally posted by Alireza on ROS Answers with karma: 717 on 2014-09-08 Post score: 0
Looking into many codes and programs I see not rarely some nodes which are called toghether with a private name. For istance: ros::NodeHandle nh; ros::NodeHandle nh_private("~"); finding out this tutorial I read that: // Use a private node handle so that multiple instances of the node can // be run simultaneously while using different parameters. // Parameters defined in the .cfg file do not need to be initialized here // as the dynamic_reconfigure::Server does this for you. ya ok, but I would ask now: Why?!? In which case should I need to run simultaneously many istances of the same node? Is the risiko, that some nodes publishing on the some topics create a lot of confusion running the main prog, too big? Since im trying to write more complicated drivers for my robot and I look into the coe of other users, I see that private nodes are normal. Regards Originally posted by Andromeda on ROS Answers with karma: 893 on 2014-09-08 Post score: 1
Hi, I am using the base_local_planner package with the holonomic flag set to false. However, I want to know if there will be any difference in performance between a car like robot and a skid steer robot? If yes, then what care do we need to take to switch between the two. Thank you. Originally posted by 2ROS0 on ROS Answers with karma: 1133 on 2014-09-08 Post score: 0
I have installed ros-indigo-rqt-common-plugins, but when I run rqt --list-plugins, it does not show anything. What is the problem? Note: I know the answer and am in the process of posting it. I didn't see a good place to add this to the ROS wiki, so I'm posting it here. Originally posted by scpeters on ROS Answers with karma: 111 on 2014-09-08 Post score: 0
I found the LMS1xx package, but, according to the wiki page, it is only tested/good for groovy, despite the fact that there is a ros-hydro-lms1xx package available for installation. I tried installing ros-hydro-lms1xx and running the LMS1xx.launch script, but it fails to find the LMS1xx_node in the LMS1xx package, because LMS1xx is spelled lms1xx in the .deb file. It's relatively trivial to fix that, or even to download and recompile the source code from github, but I wonder if I'm heading down an unmaintained path. So I figured it wouldn't hurt to ask what folks are using nowadays in the Hydro era (which is where I live), or perhaps in the Indigo era, which is arguably, where I should live. --wpd Originally posted by wpd on ROS Answers with karma: 249 on 2014-09-08 Post score: 0
Hey guys, I'm detecting cylindrical objects in a point cloud and want to use a service to save all the data of the cylinders and make them accessible to other nodes. What i'm having trouble with is that i want to visualize the cylinders in rviz and therefor i need the center point and the quaternion, but the segmentation function of pcl gives me two vectors, bottom point and a direction vector. I already managed to compensate the offset from the bottom point to center point by simple vector calculations and to get the quaternion from the two vectors but i need the bottom point and don't want to save all of this information. Is there a way to save just the bottom point and the quaternion and "slide" the bottom point along the quaternion up for half the cylinder hight, whenever i want to visualize it in rviz? Or do you think that the data size wouldn't be problematic if i have to save up to 1000 cylinder datasets containing two 3Dvectors and quaternion? cheers Alex Edit: To sum it up: Is it possible to calculate the center point with just the bottom point and the quaternion? Originally posted by AlexKolb on ROS Answers with karma: 30 on 2014-09-08 Post score: 0
Hi, In my deferentially steered drive system based robot my values for acceleration and deceleration are different (that was the best option, based on experimentation). How does this affect: acc_lim_x: acc_lim_y: in terms of performance? How can I include the separation between acceleration and deceleration? Is it recommended to always have the same value for both acceleration and deceleration? If so, why? Thanks Originally posted by Pototo on ROS Answers with karma: 803 on 2014-09-08 Post score: 0
I'm running through the msg and srv tutorial and get a template file not found error during catkin_make. As far as I can tell, I have done everything according to the tutorial so am not sure what might be wrong. I am running Arch Linux instead of Ubuntu, but so far everything else I have done has worked well. Here is the full catkin_make [ryantr@lappyICSL catkin_ws]$ catkin_make Base path: /home/ryantr/Software/ros/catkin_ws Source space: /home/ryantr/Software/ros/catkin_ws/src Build space: /home/ryantr/Software/ros/catkin_ws/build Devel space: /home/ryantr/Software/ros/catkin_ws/devel Install space: /home/ryantr/Software/ros/catkin_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/ryantr/Software/ros/catkin_ws/build" #### #### #### Running command: "make -j8 -l8" in "/home/ryantr/Software/ros/catkin_ws/build" #### [ 0%] [ 0%] [ 0%] Built target std_msgs_generate_messages_cpp Built target std_msgs_generate_messages_lisp Built target std_msgs_generate_messages_py [ 37%] [ 37%] [ 37%] [ 50%] Generating Lisp code from beginner_tutorials/AddTwoInts.srv Generating C++ code from beginner_tutorials/AddTwoInts.srv Generating Lisp code from beginner_tutorials/Num.msg Generating C++ code from beginner_tutorials/Num.msg Traceback (most recent call last): File "/opt/ros/hydro/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module> import genmsg.template_tools File "/opt/ros/hydro/lib/python2.7/site-packages/genmsg/template_tools.py", line 74 raise RuntimeError, "Template file %s not found in template dir %s" % (template_file_name, template_dir) ^ SyntaxError: invalid syntax Traceback (most recent call last): File "/opt/ros/hydro/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module> import genmsg.template_tools File "/opt/ros/hydro/lib/python2.7/site-packages/genmsg/template_tools.py", line 74 raise RuntimeError, "Template file %s not found in template dir %s" % (template_file_name, template_dir) ^ SyntaxError: invalid syntax beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_cpp.dir/build.make:62: recipe for target '/home/ryantr/Software/ros/catkin_ws/devel/include/beginner_tutorials/AddTwoInts.h' failed make[2]: *** [/home/ryantr/Software/ros/catkin_ws/devel/include/beginner_tutorials/AddTwoInts.h] Error 1 make[2]: *** Waiting for unfinished jobs.... beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_cpp.dir/build.make:54: recipe for target '/home/ryantr/Software/ros/catkin_ws/devel/include/beginner_tutorials/Num.h' failed make[2]: *** [/home/ryantr/Software/ros/catkin_ws/devel/include/beginner_tutorials/Num.h] Error 1 CMakeFiles/Makefile2:282: recipe for target 'beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_cpp.dir/all' failed make[1]: *** [beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_cpp.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Traceback (most recent call last): File "/opt/ros/hydro/lib/python2.7/site-packages/genlisp/genlisp_main.py", line 73, in genmain retcode = generate_srv(options.package, args[1:], options.outdir, search_path) File "/opt/ros/hydro/lib/python2.7/site-packages/genlisp/generate.py", line 732, in generate_srv generate_srv_from_spec(msg_context, spec, search_path, out_dir, pkg, f) File "/opt/ros/hydro/lib/python2.7/site-packages/genlisp/generate.py", line 843, in generate_srv_from_spec write_srv_component(s, spec.request, msg_context, spec) File "/opt/ros/hydro/lib/python2.7/site-packages/genlisp/generate.py", line 690, in write_srv_component write_md5sum(s, context, spec, parent=parent) File "/opt/ros/hydro/lib/python2.7/site-packages/genlisp/generate.py", line 591, in write_md5sum md5sum = genmsg.compute_md5(msg_context, parent or spec) Traceback (most recent call last): File "/opt/ros/hydro/lib/python2.7/site-packages/genmsg/gentools.py", line 119, in compute_md5 return _compute_hash(msg_context, spec, hashlib.md5()) File "/opt/ros/hydro/lib/python2.7/site-packages/genlisp/genlisp_main.py", line 71, in genmain retcode = generate_msg(options.package, args[1:], options.outdir, search_path) File "/opt/ros/hydro/lib/python2.7/site-packages/genmsg/gentools.py", line 105, in _compute_hash hash.update(compute_md5_text(msg_context, spec.request)) TypeError: Unicode-objects must be encoded before hashing ERROR: Unicode-objects must be encoded before hashing File "/opt/ros/hydro/lib/python2.7/site-packages/genlisp/generate.py", line 720, in generate_msg generate_msg_from_spec(msg_context, spec, search_path, out_dir, pkg) File "/opt/ros/hydro/lib/python2.7/site-packages/genlisp/generate.py", line 770, in generate_msg_from_spec write_md5sum(s, msg_context, spec) File "/opt/ros/hydro/lib/python2.7/site-packages/genlisp/generate.py", line 591, in write_md5sum md5sum = genmsg.compute_md5(msg_context, parent or spec) File "/opt/ros/hydro/lib/python2.7/site-packages/genmsg/gentools.py", line 119, in compute_md5 return _compute_hash(msg_context, spec, hashlib.md5()) File "/opt/ros/hydro/lib/python2.7/site-packages/genmsg/gentools.py", line 103, in _compute_hash hash.update(compute_md5_text(msg_context, spec)) TypeError: Unicode-objects must be encoded before hashing ERROR: Unicode-objects must be encoded before hashing beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_lisp.dir/build.make:59: recipe for target '/home/ryantr/Software/ros/catkin_ws/devel/share/common-lisp/ros/beginner_tutorials/srv/AddTwoInts.lisp' failed make[2]: *** [/home/ryantr/Software/ros/catkin_ws/devel/share/common-lisp/ros/beginner_tutorials/srv/AddTwoInts.lisp] Error 3 make[2]: *** Waiting for unfinished jobs.... beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_lisp.dir/build.make:53: recipe for target '/home/ryantr/Software/ros/catkin_ws/devel/share/common-lisp/ros/beginner_tutorials/msg/Num.lisp' failed make[2]: *** [/home/ryantr/Software/ros/catkin_ws/devel/share/common-lisp/ros/beginner_tutorials/msg/Num.lisp] Error 3 CMakeFiles/Makefile2:313: recipe for target 'beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_lisp.dir/all' failed make[1]: *** [beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_lisp.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make" failed Originally posted by ryan0270 on ROS Answers with karma: 26 on 2014-09-08 Post score: 0
I'm in the early stages of building the brains of my robot and have a question about best practices. The nodes that I'm working on have certain values that will change frequently during tuning, so they're stored in the parameter server. In the case of my joystick teleop node, every Joy message uses some scale to determine outputs but if you called getparam for every message, I'm assuming you'd overload the server, given they'll be received multiple times per second. It's the same story for other nodes so I came up with multiple solutions that I'm hoping others have already figured out, and can provide feedback (using the teleop node as an example) Call getParam to look up the scale values with each message (not recommended, could overload server) Call getCached in each message (tutorial seems to suggest this isn't a good idea either, as it has more overhead) Load parameters when the node starts (good, but requires resetting the node to update values) Load parameters at start, but also include an empty service that updates the values while the node is running (useful for complex nodes, like PID controllers) At the moment my more advanced nodes are using #4. Is there another solution I've missed, or perhaps a generally accepted retrieval rate for given hardware? Originally posted by Wes G on ROS Answers with karma: 33 on 2014-09-08 Post score: 1 Original comments Comment by BennyRe on 2014-09-08: How are those parameters changed? If you change them by hand have a look at dynamic reconfigure. This will call a callback function in your node each time a parameter is changed in the dynamic reconfigure rqt plugin. Comment by tfoote on 2014-09-09: Which tutorial suggest that getCachedParam has more overhead? In what way more overhead? Comment by Wes G on 2014-09-09: On the page about the parameter server, it says "Cached parameters are a significant speed increase (after the first call), but should be used sparingly to avoid overloading the master." I'm not sure why it overloads, though Comment by tfoote on 2014-09-09: This is a warning about overusing parameters. You don't want to use parameters for all local variables and store them all on the parameter server. Any individual cached parameter is not going to overload the parameter server, but if everything goes through the paremeter server it will not scale. Comment by Combinacijus on 2020-01-31: Did some testing. I called rospy.get_param() at 100Hz. It added around 9% of CPU usage which is A LOT. Knowing this I can confirm that using parameter server for in-loop updates is very inefficient and should never be used. Parameter server is only for initialization. For frequent updates I would use latched topics instead.
Hello, I am trying to run rosmake robotino for the robotino-ros-pkg in ros-indigo installed from the .torrent file for 64 bit. I have set up my workspace with rosbuild according to this tutorial. My environment variable ROS_PACKAGE_PATH looks like this: ROS_PACKAGE_PATH = /home/viki/indigo_ws/sandbox/robotino-ros-pkg:/home/viki/indigo_ws/sandbox:/opt/ros/indigo/share:/opt/ros/indigo/stacks When I run rosmake I get the following error: [rospack] Error: package 'robotino_local_planner' depends on non-existent package 'nav_core' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update I ran rosdep update but nothing happened. The same goes for the package costmap_2d. When I check the share directory in the ROS_PACKAGE_PATH, these packages are indeed not there. However, I managed to find them on ros-hydro. What am I missing here? Where are these package on ros-indigo or how can these packages be installed? Originally posted by adina on ROS Answers with karma: 3 on 2014-09-09 Post score: 0
Hey, I am really confused about all the options to install a package either from deb (ok, this not really confused about) or source. I tried to figure out how to get the turtlebot simulator working on my current system (Ubuntu 14.04 ros-indigo gazebo_2_2). So first I looked up the branches on the github repositories and found the indigo Branch (Turtlebot-Indigo-Branch). So I tried to install this package but failed. There is a .rosinstall file but i found in several other questions on answers.ros.org also a lot about rosmake, roslocate (which wont work for me somhow), local installtion of ros and so on and I got really confused (The confusing link :)) On the other hand there are also a lot of packages which could be installed (?) like these ones Packages which can be installed So for now I am really really confused about all the installation methods and downloading the packages. Maybe some find this a question for real freshmen but I am a little bit clueless with this. Originally posted by schultza on ROS Answers with karma: 232 on 2014-09-09 Post score: 0 Original comments Comment by Sebastian Kasperski on 2014-09-09: Do you want to install the complete ROS from source or just the turtlebot simulator? PS: The answer in your link refers to using rosbuild. For indigo you will have to create a catkin workspace and build your from-source-package there: http://wiki.ros.org/catkin/Tutorials/using_a_workspace Comment by schultza on 2014-09-09: I already installed Ros via deb so i just want to run turtlebot simulator but I am actually looking for a general answer for installing packages and stacks. Oh thanks i didnt notice this about rosbuild in the link. I already did the tutorials but maybe i missed something with catkin workspaces