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

Turtlebot RaySensor race condition

asked 2012-10-15 19:12:07 -0500

ChengXiang gravatar image

updated 2014-01-28 17:13:56 -0500

ngrennan gravatar image

Hi. When running turtlebot i keep getting a warning message

 Warning [RaySensor.cc:206] ranges not constructed yet (zero sized)

I understand from this website that it can be solved by moving a small part of the code upward. However, when I did a "locate" on the file RaySensor.cc, all the RaySensor.cc appears to be in the trash folder

chengxiang@ubuntu:~$ locate RaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.0.1/src/physics/bullet 
/BulletRaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.0.1/src/sensors/GpuRaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.0.1/src/sensors/RaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.2.0.1/src/physics/bullet   
/BulletRaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.2.0.1/src/sensors 
/GpuRaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.2.0.1/src/sensors/RaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.3.0.1/src/physics/bullet 
/BulletRaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.3.0.1/src/sensors 
/GpuRaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.3.0.1/src/sensors/RaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.4.0.1/build/src/sensors  
/CMakeFiles/gazebo_sensors.dir/GpuRaySensor.cc.o
/home/chengxiang/.local/share/Trash/files/gazebo-1.4.0.1/build/src/sensors 
/CMakeFiles/gazebo_sensors.dir/RaySensor.cc.o
/home/chengxiang/.local/share/Trash/files/gazebo-1.4.0.1/src/physics/bullet  
/BulletRaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.4.0.1/src/sensors 
/GpuRaySensor.cc
/home/chengxiang/.local/share/Trash/files/gazebo-1.4.0.1/src/sensors/RaySensor.cc

May i know how can i find the file or is there another way of solving this issue? I am using ROS fuerte with Ubuntu 12.04. Thank you in advance.

update 1

An error occurs when launching turtlebot after i install from source using

rosws set simulator_gazebo --svn https://code.ros.org/svn/ros-pkg/stacks
/simulator_gazebo/trunk

Error message :

[spawn_turtlebot_model-3] process has died [pid 7428, exit code 1, cmd  
/home/chengxiang/sim_workspace/simulator_gazebo/gazebo/scripts/spawn_model  
-unpause -urdf -param robot_description -model turtlebot  
__name:=spawn_turtlebot_model __log:=/home/chengxiang/.ros/log/277d87f4-1c4d- 
11e2-92d5-0017c4794a79/spawn_turtlebot_model-3.log].
log file: /home/chengxiang/.ros/log/277d87f4-1c4d-11e2-92d5-0017c4794a79  
/spawn_turtlebot_model-3*.log
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-10-18 05:33:15 -0500

hsu gravatar image

I've applied the patch in Gazebo's fuerte branch. Should be out in the next release. Or you can try compiling simulator_gazebo from source.

edit flag offensive delete link more

Comments

Thanks! I will compile it.

ChengXiang gravatar image ChengXiang  ( 2012-10-18 06:32:06 -0500 )edit

Sorry. May I know how do I compile it from source? I used : rosws set simulator_gazebo --svn https://code.ros.org/svn/ros-pkg/stacks/simulator_gazebo/trunk to install it from source, am I doing it right? After I did that, error came out when I roslaunch turtlebot.(Please see update 1).

ChengXiang gravatar image ChengXiang  ( 2012-10-22 03:44:19 -0500 )edit

Hi. Can anyone tell me how exactly to compile simulator gazebo from source? I used svn co to checkout (https://code.ros.org/svn/ros-pkg/stacks/simulator_gazebo/tags/simulator_gazebo-1.6.16/) and rosmake it. However, it didn't work and gazebo can't start. Anyone can enlighten me?

ChengXiang gravatar image ChengXiang  ( 2012-10-29 01:24:06 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2012-10-15 19:12:07 -0500

Seen: 917 times

Last updated: Oct 22 '12