ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

jan's profile - activity

2014-01-28 17:22:36 -0500 marked best answer navigation stack with errors on launch

Hi,

I am using a Pioneer 3dx with a Sick lms 200 Laserscanner. I wanted to access the robot via ROS and the already supported p2os_driver. Everything works fine including the transformation from base_link to laser_scanner and so on. Now my Problem:

I did the navigation stack tutorial and created the files like its told in the tutorial. I started all relevant things (p2os driver for odom and tf, laser_wrapper, transformation from laser to baselink and slam gmapping for the map) after that I launched the move_base.launch file and got some warnings and errors:

[ WARN] [1310979131.605673459]: Planner specifications should now include the package name. You are using a deprecated API. Please switch from NavfnROS to navfn/NavfnROS in your yaml file.

In which file do I have to adjust the path? I can't find it.

[ERROR] [1310979131.801336625]: You are using acc_limit_x where you should be using acc_lim_x. Please change your configuration files appropriately. The documentation used to be wrong on this, sorry for any confusion.

I checked the used yaml-Files and I am using only acc_lim_x variables. The error occurs for x,y and th. Where else can this error come from?

[ WARN] [1310978768.698218184]: Map update loop missed its desired rate of 2.0000Hz... the loop actually took 2.1595 seconds

Whats that? I am totally confused with all these warnings and errors.

Same with that warning:

[ WARN] [1310979131.859018260]: The backup_vel parameter has been deprecated in favor of the escape_vel parameter. To switch, just change the parameter name in your configuration files.

Despite of all warnings I started rviz and was happy to see the occupacy grid map but the rest of the navigation didnt work. There are warnings in rviz that the topics dont recieve any data... I tried to set an estimated pose and navigate to somewhere but no chance of moving the bot. Why? What is wrong with my config?

I read everything about my problem here in the answers.ros.org but couldn't find anything helpful so i created an own question.

thanks for your help.

Jan

Edit:

The code of the config-files:

navigation.launch-File

<launch>
<master auto="start"/>

<!-- Run the map server (you can run it here or in another terminal) -->
<!-- <node name="map_server" pkg="map_server" type="map_server" args="path_to_map.yaml"/> -->

<!--- Run AMCL -->
<include file="$(find p2os_launch)/amcl.launch" />

<node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
    <rosparam file="$(find p2os_launch)/costmap_common_params.yaml" command="load" ns="global_costmap" />
    <rosparam file="$(find p2os_launch)/costmap_common_params.yaml" command="load" ns="local_costmap" />
    <rosparam file="$(find p2os_launch)/local_costmap_params.yaml" command="load" />
    <rosparam file="$(find p2os_launch)/global_costmap_params.yaml" command="load" />
    <rosparam file="$(find p2os_launch)/base_local_planner_params.yaml" command="load" />
    <param name="base_global_planner" type="string" value="navfn/NavfnROS" />
    <!--  <param name="conservative_reset_dist" type="double" value="3.0" /> -->
    <!--  <param name="controller_frequency" type="double" value="15.0" /> -->
</node>

</launch>

I already tried the diff_amcl.launch in the examples but there are even more errors and the map cant be found...

local_costmap_params.yaml:

local_costmap:
global_frame: /odom
robot_base_frame: base_link ...
(more)
2012-12-16 19:41:05 -0500 received badge  Famous Question (source)
2012-12-03 09:47:43 -0500 received badge  Notable Question (source)
2012-12-03 09:47:43 -0500 received badge  Popular Question (source)
2012-08-16 03:06:14 -0500 received badge  Famous Question (source)
2012-08-16 01:09:33 -0500 received badge  Famous Question (source)
2012-07-09 11:46:55 -0500 received badge  Notable Question (source)
2012-02-21 23:40:12 -0500 received badge  Notable Question (source)
2012-02-16 05:24:13 -0500 received badge  Popular Question (source)
2011-09-15 10:00:23 -0500 received badge  Popular Question (source)
2011-09-08 03:32:23 -0500 commented answer errors on launch soundplay_node
I tried this already. The problem is, that the other sound device (NVidia) doesnt work. Not even with normal output. (aplay or mpg123)
2011-09-07 00:02:39 -0500 commented answer errors on launch soundplay_node
Hi Eric, I checked that already and it looks like I am in the audio group. You can have a look at the group rights. I edited my post. It is just the sound_play node which doesnt want to work. The normal soundoutput works fine.
2011-09-06 09:24:17 -0500 received badge  Student (source)
2011-09-05 22:34:11 -0500 asked a question errors on launch soundplay_node

I got some problems using the soundplay_node of the sound_drivers stack.

First of all: My speakers are Logitech USB speakers and are connected, activated, not muted, volume is adjusted, no red LED and THEY ARE WORKING. I used aplay to play some .wav files and I also successfully used the mpg123-player to listen to .mp3 tracks.

When I startup with

roslaunch sound_play soundplay_node.launch

I always get this error message:

[ERROR] [WallTime: 1315304498.071437] Exception in sound startup, will retry once per second. Is the speaker connected? Have you configured ALSA? Can aplay play sound? See the wiki if there is a red light on the Logitech speaker. Have a look at http://pr.willowgarage.com/wiki/sound_play/Troubleshooting Error message: No available audio device

If I start in an extra terminal

rosrun sound_play say.py "hello world"

no errors occur but you can't hear anything.

The message is

Saying: hello world

and it is exiting normally.

I tried a lot of things I found in the world wide web but nothing helped. I did the troubleshoot more than 10 times but nothing helped. I read everything about alsa and how to configure. I configured alsa that it uses the correct device (device 1). Here you can see my /etc/asound.conf (I tried a lot with these parameters perhaps I made some mistakes...):

defaults.pcm.card 1
defaults.ctl.card 0
defaults.pcm.device 0
defaults.pcm.subdevice 0
defaults.pcm.nonblock 1
defaults.pcm.ipc_key 5678293
defaults.pcm.ipc_gid audio
defaults.pcm.ipc_perm 0660
defaults.pcm.dmix.max_periods 0
defaults.pcm.dmix.rate 48000
defaults.pcm.dmix.format "unchanged"
defaults.pcm.dmix.card defaults.pcm.card
defaults.pcm.dmix.device defaults.pcm.device
defaults.pcm.dsnoop.card defaults.pcm.card
defaults.pcm.dsnoop.device defaults.pcm.device
defaults.pcm.front.card defaults.pcm.card
defaults.pcm.front.device defaults.pcm.device
defaults.pcm.rear.card defaults.pcm.card
defaults.pcm.rear.device defaults.pcm.device
defaults.pcm.center_lfe.card defaults.pcm.card
defaults.pcm.center_lfe.device defaults.pcm.device
defaults.pcm.side.card defaults.pcm.card
defaults.pcm.side.device defaults.pcm.device
defaults.pcm.surround40.card defaults.pcm.card
defaults.pcm.surround40.device defaults.pcm.device
defaults.pcm.surround41.card defaults.pcm.card
defaults.pcm.surround41.device defaults.pcm.device
defaults.pcm.surround50.card defaults.pcm.card
defaults.pcm.surround50.device defaults.pcm.device
defaults.pcm.surround51.card defaults.pcm.card
defaults.pcm.surround51.device defaults.pcm.device
defaults.pcm.surround71.card defaults.pcm.card
defaults.pcm.surround71.device defaults.pcm.device
defaults.pcm.iec958.card defaults.pcm.card
defaults.pcm.iec958.device defaults.pcm.device
defaults.pcm.modem.card defaults.pcm.card
defaults.pcm.modem.device defaults.pcm.device

I configured the asound.conf file directly. Before this I edited the ~/.asoundrc-file but without success.

Can you help me get the sound output work?

EDIT: Here the group-rights of my pioneer bot. Is this ok?

uid=1000(pioneer) gid=1000(pioneer) Gruppen=4(adm),20(dialout),24(cdrom),29(audio),46(plugdev),105(lpadmin),112(netdev),116(pulse-access),119(admin),122(sambashare),1000(pioneer)

2011-08-23 21:46:15 -0500 commented answer p3dx urdf model isn't shown correctly in rviz
I will try the turtle bot thing first. I overread that. Sorry.
2011-08-23 21:43:39 -0500 received badge  Scholar (source)
2011-08-23 21:43:39 -0500 marked best answer p3dx urdf model isn't shown correctly in rviz

We are running a similar setup, and at the moment actively developing ROS integration for the Katana arm. The arm we use is the Katana 450, so in order to use the Katana 300 you will have to modify some things. Anyway, the katana_driver stack could be a good place to start.

Could you post your URDF files, so we can have a look at it?

Edit: Thanks for posting the files. They are the unchanged files from p2os_urdf, so I did the following:

svn co https://usc-ros-pkg.svn.sourceforge.net/svnroot/usc-ros-pkg/trunk/p2os
cd p2os/
rosmake
roslaunch p2os_urdf/launch/pioneer3dx_urdf.launch
rosrun rviz rviz

For me, the model looks perfectly alright. Did you make sure to click on "global frame" in RViz and select some existing frame (e.g., base_link)?

Judging from your TF tree, you seem to have other stuff running, too (like the openni_kinect drivers).

You should probably spend some time doing the URDF tutorials, they are really good. This should also answer your question why there are only .xacro files and no .urdf files.

After doing that, you can have a look at the turtlebot_description package to see how they added a Kinect to the robot.

2011-08-23 21:43:34 -0500 commented answer p3dx urdf model isn't shown correctly in rviz
Thank you for your fast response. I did the same like you and it worked. I don't know why but a new checkout made it :D. Now my last question is how to combine e.g. the Katana model with the pioneer base? I did the tutorials but I have problems with the robot_state_publisher if I start both models..
2011-08-23 19:06:47 -0500 commented answer p3dx urdf model isn't shown correctly in rviz
I posted the files above. Do you need the .xacro files too?
2011-08-23 19:06:47 -0500 received badge  Commentator
2011-08-21 18:52:49 -0500 commented question p3dx urdf model isn't shown correctly in rviz
Yeah that might be possible but I dont know where to start in all these files. I will post a picture of the tf-tree soon.
2011-08-15 19:58:53 -0500 asked a question p3dx urdf model isn't shown correctly in rviz

Hi all,

I am reffering to the question below:

pioneer 3dx simulation using rviz and stage

My problem is the same as described in the other question but the answers did not help me solving it. I am not using amcl because I use the gmapping for the navigation stack to run. Is there a possibility to get those wheels at the right position without using amcl?

I think my big problem is that I am not good at the whole transform and urdf thing. Where can I adjust some things in the model or add for example a kinect to the top of the bot or a laserscanner. In the end I would like to have a complete simulation of my real robot. (I am using a pioneer 3dx with a SICK LMS 200 and a Katana 300 manipulation arm)

EDIT:

Here you can see my TF-tree. The wheels are missing. I think they have an other specification than the other elements of the robot. Where can i change this spec?

tf-frames.pdf

This is the urdf-model publisher.cc file. Why are there only 4 joints? Is this a problem? How can I add something?

#include <ros/ros.h>
#include <sensor_msgs/JointState.h>

int main( int argc, char* argv[] )
{
  ros::init(argc, argv, "p2os_publisher" );
  ros::NodeHandle n;

  ros::Publisher joint_state_publisher = n.advertise<sensor_msgs::JointState>("joint_states",1000);
  ros::Rate loop_rate(15);
  sensor_msgs::JointState js;

    js.name.push_back(std::string("base_swivel_joint"));
    js.position.push_back(0);
    js.name.push_back(std::string("swivel_hubcap_joint"));
    js.position.push_back(0);
    js.name.push_back(std::string("base_left_hubcap_joint"));
    js.position.push_back(0);
    js.name.push_back(std::string("base_right_hubcap_joint"));
    js.position.push_back(0);

    while( n.ok() )
    {
    js.header.frame_id="/base_link";
    js.header.stamp = ros::Time::now();
        joint_state_publisher.publish(js);
        ros::spinOnce();
        loop_rate.sleep();
    }
}

This is the launch file (pioneer3dx_urdf.launch):

<launch>
    <include file="$(find p2os_urdf)/launch/upload_pioneer3dx.xml"/>
  <node pkg="robot_state_publisher" type="state_publisher" name="robot_state_publisher">
    <remap from="joint_state" to="joint_state"/>
    <param name="publish_frequency" type="double" value="15.0"/>
    <param name="tf_prefix" type="string" value=""/>
  </node>
    <node pkg="p2os_urdf" type="publisher" name="publisher"/>
</launch>

What else do you need?

I am just wondering that I cant find some URDF-specifications in this stack only .xacro-files?! Do you wish to see these files too? Thats a lot of code...

2011-08-15 19:14:48 -0500 answered a question navigation stack with errors on launch

Ok I solved the problem. I had to set the ROS_IP to my own ip. I am using two Ubuntu machines cause the pc on the bot is not powerful enough for rviz and so on. All I had to do was setting the ROS_IP to my local machines IP and the set_2d_nav_goal of rviz worked!

Thank you all for your help

2011-08-15 19:12:53 -0500 answered a question navigation stack with errors on launch

Ok I solved the problem. I had to set the ROS_IP to my own ip. I am using two Ubuntu machines cause the pc on the bot is not powerful enough for rviz and so on. All I had to do was setting the ROS_IP to my local machines IP and the set_2d_nav_goal of rviz worked!

Thank you all for your help

2011-07-28 18:51:50 -0500 commented answer Slam gmapping tutorial troubleshooting
Hm I dont know. Normally I did it every time when I let a rosbag-file play. @ Khiya I tried to reproduce the error but it works on my system without a problem. Have you tried to install a normal Ubuntu not in a VM?
2011-07-28 06:37:32 -0500 commented answer navigation stack with errors on launch
Do I have to start the simple_navigation_goals for using the navigaton stack? Now I am a bit confused... I thought the simple_navigation_goals example is just for moving the bot 1 meter. But do I need to start this too if i want to set the goal in rviz?
2011-07-28 06:34:55 -0500 commented answer navigation stack with errors on launch
I have two machines running Ubuntu and the same ROS version. 1 PC is connected to the bot and one PC is connected to the other over ethernet. All my nodes are started on the robot PC. By using the ROS_MASTER_URI I connect to the bot via ethernet and let rviz run on my pc cause of the graphics card..
2011-07-27 18:35:32 -0500 commented answer navigation stack with errors on launch
My actual problem is the setting a goal in rviz doesnt work. When i do so the value is set in debug information of rviz but no path is planned and the robot isnt moving. I did the same like in the tutorial video of navigation and rviz. Did I forget to start something?
2011-07-27 18:33:50 -0500 commented answer navigation stack with errors on launch
I think if have to specify my actual problem. The simple_navigation_goals example works. Not perfect but there is a path planned an arrow is shown in rviz and the robot moves to the given position.
2011-07-26 23:57:15 -0500 commented answer navigation stack with errors on launch
I tried all your hints but nothing worked at all.
2011-07-26 19:34:59 -0500 answered a question navigation stack with errors on launch

You should make sure that your "inflation_radius" parameter is set to be larger than the radius of the robot. I'm actually surprised that you're not getting a warning about this because you should be.

I get a warning about the inflation_radius but this was not an important warning to me. I set the inflattion to a lower value because there would be no space to move my bot if i do it as big as the robots shape or bigger. This was my first thought to lower the inflation so that it would be possible for the bot to move.

Have you tried to "rostopic echo cmd_vel" to see if move_base is trying to publish velocity commands.

I did echo the cmd_vel but nothing is publsihed. When I start the simple_navigation_goals there is a speed value published on the cmd_vel topic.

Why are you running both gmapping and AMCL? It should probably be one or the other.

I am not sure which topics, nodes and so on to run. I tried it like that. So if I start the gmapping I should not start AMCL with the navigation? Ok I will try this now.

Does the global plan created by the navigation stack look reasonable in rviz?

In RVIZ there is no Global or Local Plan created when I set a navigation goal. So I cant tell you if it is a good plan or not. The plan that is created by the simple_navigation_goals function looks pretty good.

Have you looked at the navigation tuning guide to make sure that things are set up more or less correctly for navigation.

I will do that now but the things have to be set correctly cause I use the param-Files of the p2os_launch stack.

2011-07-26 02:03:57 -0500 answered a question navigation stack with errors on launch
amcl: {gui_publish_rate: 10.0, kld_err: 0.050000000000000003, kld_z: 0.98999999999999999,
      laser_lambda_short: 0.10000000000000001, laser_likelihood_max_dist: 2.0, laser_max_beams: 30,
      laser_model_type: likelihood_field, laser_sigma_hit: 0.20000000000000001, laser_z_hit: 0.5,
      laser_z_max: 0.050000000000000003, laser_z_rand: 0.5, laser_z_short: 0.050000000000000003,
      max_particles: 5000, min_particles: 500, odom_alpha1: 0.20000000000000001, odom_alpha2: 0.20000000000000001,
      odom_alpha3: 0.80000000000000004, odom_alpha4: 0.20000000000000001, odom_alpha5: 0.10000000000000001,
      odom_frame_id: odom, odom_model_type: diff, recovery_alpha_fast: 0.0, recovery_alpha_slow: 0.0,
      resample_interval: 1, transform_tolerance: 0.10000000000000001, update_min_a: 0.5,
      update_min_d: 0.20000000000000001, use_map_topic: true}
    move_base:
      TrajectoryPlannerROS: {acc_lim_th: 3.2000000000000002, acc_lim_x: 2.5, acc_lim_y: 2.5,
        goal_distance_bias: 0.59999999999999998, holonomic_robot: true, max_rotational_vel: 0.59999999999999998,
        max_vel_x: 0.80000000000000004, min_in_place_rotational_vel: 0.5, min_vel_x: 0.20000000000000001,
        path_distance_bias: 0.59999999999999998, sim_time: 2.0}
      aggressive_reset: {reset_distance: 1.8400000000000001}
      base_global_planner: navfn/NavfnROS
      conservative_reset: {reset_distance: 3.0}
      conservative_reset_dist: 3.0
      controller_frequency: 15.0
      global_costmap:
        footprint:
        - [0.254, -0.050799999999999998]
        - [0.17780000000000001, -0.050799999999999998]
        - [0.17780000000000001, -0.17780000000000001]
        - [-0.1905, -0.17780000000000001]
        - [-0.254, 0]
        - [-0.1905, 0.17780000000000001]
        - [0.17780000000000001, 0.17780000000000001]
        - [0.17780000000000001, 0.050799999999999998]
        - [0.254, 0.050799999999999998]
        global_frame: /map
        inflation_radius: 0.10000000000000001
        laser_scan_sensor: {clearing: true, data_type: LaserScan, marking: true, sensor_frame: laser,
          topic: scan}
        map_type: costmap
        observation_sources: laser_scan_sensor
        obstacle_range: 3.5
        raytrace_range: 4.0
        robot_base_frame: base_link
        rolling_window: true
        static_map: false
        transform_tolerance: 0.20000000000000001
        update_frequency: 5.0
      local_costmap:
        footprint:
        - [0.254, -0.050799999999999998]
        - [0.17780000000000001, -0.050799999999999998]
        - [0.17780000000000001, -0.17780000000000001]
        - [-0.1905, -0.17780000000000001]
        - [-0.254, 0]
        - [-0.1905, 0.17780000000000001]
        - [0.17780000000000001, 0.17780000000000001]
        - [0.17780000000000001, 0.050799999999999998]
        - [0.254, 0.050799999999999998]
        global_frame: /odom
        height: 5.0
        inflation_radius: 0.10000000000000001
        laser_scan_sensor: {clearing: true, data_type: LaserScan, marking: true, sensor_frame: laser,
          topic: scan}
        map_type: costmap
        observation_sources: laser_scan_sensor
        obstacle_range: 3.5
        publish_frequency: 2.0
        raytrace_range: 4.0
        resolution: 0.050000000000000003
        robot_base_frame: base_link
        rolling_window: true
        static_map: false
        transform_tolerance: 0.20000000000000001
        update_frequency: 5.0
        width: 5.0
    robot_description: "<?xml version=\"1.0\" ?>\n<!-- ===================================================================================\
      \ -->\n<!-- |    This document was autogenerated by xacro from /opt/ros/diamondback/stacks/usc-ros-pkg/p2os/p2os_urdf/defs/pioneer3dx.xacro\
      \ | -->\n<!-- |    EDITING THIS FILE BY HAND IS NOT RECOMMENDED                \
      \                 | -->\n<!-- ===================================================================================\
      \ -->\n<robot name=\"pioneer3dx\" xmlns:controller=\"http://playerstage.sourceforge.net/gazebo/xmlschema/#controller\"\
      \ xmlns:interface=\"http://playerstage.sourceforge.net/gazebo/xmlschema/#interface\"\
      \ xmlns:sensor=\"http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor\" xmlns:xacro=\"\
      http://ros.org/wiki/xacro\">\n  <!-- Chassis -->\n  <link name=\"base_link\">\n\
      \    <inertial>\n      <mass value=\"3.5\"/>\n      <!--<origin xyz=\"-0.025 0 -0.223\"\
      />-->\n      <origin xyz=\"-0.05 0 0\"/>\n      <inertia ixx=\"1\" ixy=\"0\" ixz=\"\
      0\" iyy=\"1\" iyz=\"0\" izz=\"1\"/>\n    </inertial>\n    <visual name=\"base_visual\"\
      >\n      <origin rpy=\"0 0 0\" xyz=\"-0.045 0 0.148\"/>\n      <geometry name=\"\
      pioneer_geom\">\n        <mesh filename=\"package://p2os_urdf/meshes/p3dx_meshes/chassis.stl\"\
      />\n      </geometry>\n      <material name=\"ChassisRed\">\n        <color rgba=\"\
      0.851 0.0 0.0 1.0\"/>\n      </material>\n    </visual>\n    <collision>\n     \
      \ <origin rpy=\"0 0 0\" xyz=\"-0.045 0 0.145\"/>\n      <geometry>\n        <box\
      \ size=\"0.35 0.25 0.14\"/>\n      </geometry>\n    </collision>\n  </link>\n  <gazebo\
      \ reference=\"base_link\">\n    <material value=\"Gazebo/Red\"/>\n  </gazebo>\n\
      \  <!-- Top ...
(more)
2011-07-26 01:15:00 -0500 commented answer navigation stack with errors on launch
First of all I tried to move the bot with the simple navigation goals function and the problem was the teleop_joy node running at the same time. After that I tried to let the bot move with the goal setting in rviz. But still no movement.