Ask Your Question

error running hector_quadrotor tutorial [closed]

asked 2013-07-01 06:50:44 -0600

jpcallus gravatar image

Hi all,

I'm trying to run the hector_quadrotor tutorials. After building all the packages required I ran the following code:

root@ubuntu:/opt/ros/groovy/share# roslaunch hector_quadrotor_demo outdoor_flight_gazebo.launch

When the program tries to run I get the following errors:

Msg Publicized address:

Error [Events.hh:141] Events::ConnectWorldUpdateStart is deprecated in v 1.5.0. Please use Events::ConnectWorldUpdateBegin

Error [Events.hh:141] Events::ConnectWorldUpdateStart is deprecated in v 1.5.0. Please use Events::ConnectWorldUpdateBegin

Error [Events.hh:141] Events::ConnectWorldUpdateStart is deprecated in v 1.5.0. Please use Events::ConnectWorldUpdateBegin

loading model xml from ros parameter

[INFO] [WallTime: 1372696419.943976] [0.000000] waiting for service /gazebo/spawn_urdf_model

Warning [] SDF has no <sdf> element in file[data-string]

Dbg extension [<sensor name="sonar" type="ray"><always_on>true</always_on><update_rate>10</update_rate><pose>0 0 0 0 0 0</pose><visualize>false</visualize><ray><scan><horizontal><samples>3</samples><resolution>1</resolution><min_angle>-0.349065850399</min_angle><max_angle>0.349065850399</max_angle></horizontal><vertical><samples>3</samples><resolution>1</resolution><min_angle>-0.349065850399</min_angle><max_angle>0.349065850399</max_angle></vertical></scan><range><min>0.03</min><max>3.0</max><resolution>0.01</resolution></range></ray><plugin filename="" name="gazebo_ros_sonar_controller"><gaussiannoise>0.005</gaussiannoise><topicname>sonar_height</topicname><frameid>sonar_link</frameid></plugin></sensor>] not converted. Dbg extension [<sensor name="laser0" type="ray"><always_on>true</always_on><update_rate>40</update_rate><pose>0 0 0 0 0 0</pose><visualize>false</visualize><ray><scan><horizontal><samples>1081</samples><resolution>1</resolution><min_angle>135</min_angle><max_angle>-135</max_angle></horizontal></scan><range><min>0.08</min><max>30.0</max><resolution>0.01</resolution></range></ray><plugin filename="" name="gazebo_ros_laser0_controller"><gaussiannoise>0.005</gaussiannoise><alwayson>true</alwayson><updaterate>40</updaterate><topicname>scan</topicname><framename>laser0_frame</framename></plugin></sensor>] not converted. Dbg extension [<sensor name="front_cam_camera_sensor" type="camera"><update_rate>10</update_rate><camera><horizontal_fov>1.57079632679</horizontal_fov><image><format>R8G8B8</format><width>320</width><height>240</height></image><clip><near>0.01</near><far>100</far></clip></camera><plugin filename="" name="front_cam_camera_controller"><cameraname>front_cam</cameraname><alwayson>true</alwayson><updaterate>10</updaterate><imagetopicname>camera/image</imagetopicname><camerainfotopicname>camera/camera_info</camerainfotopicname><framename>front_cam_optical_frame</framename></plugin></sensor>] not converted.

Dbg [base_link] has no parent joint

Warning [] urdf2gazebo: link[front_cam_optical_frame] has no inertia, parent joint [front_cam_optical_joint] ignored

.Warning [] urdf2gazebo: link[front_cam_optical_frame] has no inertia, not modeled in gazebo

Warning [] parse from urdf.

Error [] Missing element description for [CxPrime]

spawn status: SpawnModel: successfully spawned model

[spawn_robot-4] process has finished cleanly log file: /home/jpcallus/.ros/log/fad70168-e26b-11e2-aec9-000c29033514/spawn_robot-4*.log

From what I can understand the error is due to some code which needs to be changed in the events.hh file, but I have no idea where to find said file, could someone kindly help? Also gazebo actually runs and the quadrotor appears but it stays on the ground and rviz does not show the camera feed. Could ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2019-10-15 02:12:58.459988


The warnings and error messages you posted look normal to me (some could be removed by us, others are built-in in Gazebo). They should not affect the simulation results. The quadrotor has been spawned successfully in your example. Did you have any other problems beside these messages?

Johannes Meyer gravatar image Johannes Meyer  ( 2013-07-02 02:33:24 -0600 )edit

Cheers for your reply. The problem is that the camera feed is not appearing in rviz...could it be related to this error? Error [] Missing element description for [CxPrime] That is now being followed by various lines which state that the Camera plugin is missing <CxPrime defaults to 0>

jpcallus gravatar image jpcallus  ( 2013-07-03 03:13:43 -0600 )edit

@Johannes Meyer What you commented means that getting those errors about the missing element description are normal? That means that it is not possible to tell gazebo what topic to publish the information. You can not tell Gazebo to change the frame name for a camera for example?Thx!

agonzamart gravatar image agonzamart  ( 2013-07-10 02:10:59 -0600 )edit

Gazebo plugins are configured using XML parameters in the enclosing plugin tag. The "Missing element description" is generated by a faulty check in the GazeboRosCameraUtils class in package gazebo_plugins, which has been fixed in later versions.

Johannes Meyer gravatar image Johannes Meyer  ( 2013-07-10 09:36:10 -0600 )edit

@agonzamart The camera frame_id can be configured by setting the <frameName>...</frameName> parameter in the plugin's description (at least for In hector_sensors_description it is hardcoded to ${name}_optical_frame where ${name} is given in in the name= macro argument.

Johannes Meyer gravatar image Johannes Meyer  ( 2013-07-10 09:40:06 -0600 )edit

@jpcallus Could you please add the full console output of the roslaunch command? The camera image should be published as /front_cam/camera/image if you are using the outdoor_flight_gazebo.launch launch file.

Johannes Meyer gravatar image Johannes Meyer  ( 2013-07-10 09:49:09 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-11-26 07:47:51 -0600

Hallo Johannes wie geht's? :)

I have the same problem, I'm spawning with kinect because I need the RGBD, the only errors I get in the entire code are like these ones. Nothing appears on rviz :(. Do you have any ideia about the problem?

Thanks!!! Best Regards!

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-07-01 06:50:44 -0600

Seen: 572 times

Last updated: Nov 26 '13