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

rviz problems

asked 2012-07-05 04:54:13 -0500

Astronaut gravatar image

updated 2012-07-05 05:36:46 -0500

Hello

I installed some package and run them , after that should open up the visualisation tool, in which I should be able to see the wheelchair moving in the map created using the some data. But when opened the rviz the wheelchair is not moving, I got some warning like 3D acceleration is not enable. Im running ubuntu 10.4 on a Virtual Box machine from Oracle.

This is my launch file and the data bag file.

Perform AMCL localisation: runs several nodes to generate odometry from laser scans (ICP) & IMU, loads a map of the POW assessment area, runs AMCL, plays back a dataset for localisation, and runs the visualiser with the correct visualisation parameters configured. -->

<launch>

<node name="rosplay" pkg="rosbag" type="play" args="/home/bojan/Desktop/PowRos/Data/user2/pow_pat1_1_2011-04-01-13-48-20.bag            --clock"/>

<node pkg="tf" type="static_transform_publisher" name="baselink_laser" args="0 0 0 0 0 0 /base_link /laser 10"/>
<node pkg="tf" type="static_transform_publisher" name="laser_imu" args="0 0 0 0 0 0 /laser /base_imu 10"/>
<node pkg="tf" type="static_transform_publisher" name="baselink_camera" args="0 0 0 0 0 0 /base_link /camera 10"/>

<!-- Start the map server node and specify the map file (*.pgm) and the map resolution in metres/pixel -->
<node name="map_server" pkg="map_server" type="map_server" args="$(find amcl_listener)/maps/pow_real_time.yaml"         output="screen"/>

<!--Start the Laser_scan_matcher package, to provide odometry from laser data (ICP)-->
<node pkg="laser_scan_matcher" type="laser_scan_matcher_node" 
    name="laser_scan_matcher_node" output="screen">
    <param name="use_alpha_beta" value="true"/>
    <param name="max_iterations" value="10"/>
</node>

<!-- Start the gmapping node -->
<!--node pkg="gmapping" type="slam_gmapping" name="slam_gmapping" output="screen"/-->

<node pkg="amcl" type="amcl" name="amcl" respawn="true" output="screen">
    <param name="base_frame_id" value="base_link"/>
    <param name="odom_frame_id" value="world"/>
    <param name="global_frame_id" value="map"/>
    <param name="update_min_d" value="0.09"/>   
    <param name="update_min_a" value="0.09"/> 
    <param name="initial_pose_x" value="-1"/>
    <param name="initial_pose_y" value="0"/>
    <param name="initial_pose_a" value="-0.1"/>
    <param name="min_particles" value="6000"/> 
    <param name="max_particles" value="8000"/>
    <param name="odom_model_type" value="diff"/>
    <param name="kld_err" value="0.1"/> 
    <param name="resample_interval" value="1"/>
    <param name="odom_alpha1" value="0.2"/>   
    <param name="odom_alpha2" value="0.2"/>
    <param name="odom_alpha3" value="0.5"/>
    <param name="odom_alpha4" value="0.5"/>
    <param name="laser_max_beams" value="30"/>
</node>

<!--Start the "analyzer_packages"-->
<!-- acml_listener broadcasts markers for the position of the wheelchair, to visualize in Rviz-->
<node pkg="amcl_listener" type="amcl_pose_listener" name="amcl_listener" output="screen"/>
<!-- Object node records minimal ranges from laser, speed_node will record travel speed of wheelchair -->
<node pkg="pow_analyzer" type="object_node" name="object_node" output="screen"/>
<node pkg="pow_analyzer" type="speed_node" name="speed_node" output="screen"/>

<!-- Start an rviz node with a custom configuration for the viewpoint, map_server, trajectory, laser scans, etc -->
<node pkg="rviz" type="rviz" output="screen" name="rviz" args="-d $(find pow_analyzer)/launch/pow_rviz.vcg"/>

</launch>

Also in the rviz the ROS elapsed time is zero, which should not be the case Any help¿ Ok will explain in details.

Yes Rviz is working ( eg with a grid), is initializing and so on. I ... (more)

edit retag flag offensive close merge delete

Comments

Is this enough or need more exactly states?

Astronaut gravatar image Astronaut  ( 2012-07-05 05:52:02 -0500 )edit

Any help please?

Astronaut gravatar image Astronaut  ( 2012-07-05 09:35:52 -0500 )edit

How to setup to match the data in the logfile? And how to check if odom frame from amcl is "world" or not?

Astronaut gravatar image Astronaut  ( 2012-07-10 01:38:50 -0500 )edit

I should run the command rosrun tf tf_echo /map /base_link on the terminal before running the launch?

Astronaut gravatar image Astronaut  ( 2012-07-10 01:41:28 -0500 )edit

the rosrun tf tf_echo /map /base_link does not produce nothing. So what should I do?

Astronaut gravatar image Astronaut  ( 2012-07-10 04:25:38 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2012-07-05 05:13:23 -0500

dornhege gravatar image

updated 2012-07-06 00:18:25 -0500

Do you see rviz working (e.g. with a grid) or not? i.e. is the problem that rviz works but nothing is happening, or do you not see anything in rviz.

rviz needs 3D acceleration, so this could be problematic in a virtual machine.

For more details please state exactly what you are doing and seeing, "installed some package", "run them", "got some warning" isn't helpful to debug what is going on.

As you can see the grid and model I will assume that rviz itself is working. I guess therefore there is some misconfiguration. Your setup needs to match the data in the logfile. One error might be that the odom frame for amcl is "world", usually it's odom. What is correct depends on the odom in your logfile.

You can check that amcl is producing something by running rosrun tf tf_echo /map /base_link that should give your the robot pose. If that changes the robot should move.

To test that rviz itself displays correctly you can set the fixed frame to your odom frame and should see odom movement.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-05 04:54:13 -0500

Seen: 968 times

Last updated: Jul 06 '12