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

Problem with Error [Param.cc:451] Unable to set value [-nan -nan -nan 0 -0 0] for key[pose]. Gazebo doesn't open

asked 2017-07-29 13:36:55 -0600

moshimojo gravatar image

updated 2017-07-29 13:42:38 -0600

Hello, when i try to roslaunch my model with the command: roslaunch robot_control robot_diffdrive.launch , i get the following error:

  ... logging to /home/elzombie/.ros/log/68fa861a-7467-11e7-b7d7-d4bed980b116/roslaunch-moshi-moshi-27013.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://moshi-moshi:34495/

SUMMARY
========

PARAMETERS
 * /robot_description: <?xml version="1....
 * /robot_diff_drive_controller/angular/z/has_acceleration_limits: True
 * /robot_diff_drive_controller/angular/z/has_velocity_limits: True
 * /robot_diff_drive_controller/angular/z/max_velocity: 2.0
 * /robot_diff_drive_controller/base_frame_id: chassis
 * /robot_diff_drive_controller/left_wheel: ['front_axle to f...
 * /robot_diff_drive_controller/linear/x/has_acceleration_limits: True
 * /robot_diff_drive_controller/linear/x/has_velocity_limits: True
 * /robot_diff_drive_controller/linear/x/max_acceleration: 0.6
 * /robot_diff_drive_controller/linear/x/max_velocity: 0.2
 * /robot_diff_drive_controller/max_acceleration: 6.0
 * /robot_diff_drive_controller/pose_covariance_diagonal: [0.001, 0.001, 0....
 * /robot_diff_drive_controller/publish_rate: 50
 * /robot_diff_drive_controller/right_wheel: ['front_axle to f...
 * /robot_diff_drive_controller/twist_covariance_diagonal: [0.001, 0.001, 0....
 * /robot_diff_drive_controller/type: diff_drive_contro...
 * /robot_diff_drive_controller/wheel_separation: 0.333
 * /robot_joint_state_controller/publish_rate: 50
 * /robot_joint_state_controller/type: joint_state_contr...
 * /rosdistro: kinetic
 * /rosversion: 1.12.7
 * /rqt_robot_steering/default_topic: /robot_diff_drive...
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)
    robot_controller_spawner (controller_manager/spawner)
    rqt_robot_steering (rqt_robot_steering/rqt_robot_steering)
    rviz (rviz/rviz)
    urdf_spawner (gazebo_ros/spawn_model)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[gazebo-1]: started with pid [27035]
process[gazebo_gui-2]: started with pid [27040]
process[urdf_spawner-3]: started with pid [27045]
process[rviz-4]: started with pid [27046]
process[robot_controller_spawner-5]: started with pid [27047]
process[rqt_robot_steering-6]: started with pid [27048]
SpawnModel script started
[ INFO] [1501350809.257317690]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1501350809.259887899]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[INFO] [1501350809.276150, 0.000000]: Loading model XML from ros parameter
[INFO] [1501350809.281451, 0.000000]: Waiting for service /gazebo/spawn_urdf_model
[INFO] [1501350811.096386, 0.000000]: Calling service /gazebo/spawn_urdf_model
[ INFO] [1501350811.130896442, 0.022000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
Error [Param.cc:451] Unable to set value [-nan -nan -nan 0 -0 0] for key[pose]
Warning [parser.cc:778] XML Element[plugin], child of element[link] not defined in SDF. Ignoring[plugin]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[plugin], child of element[link] not defined in SDF. Ignoring[plugin]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
[INFO] [1501350811.354676, 0.146000]: Spawn status: SpawnModel: Successfully spawned entity
[ INFO] [1501350811.383864095, 0.146000000]: Physics dynamic reconfigure ready.
[ INFO] [1501350811.389576299, 0.146000000]: Loading gazebo_ros_control plugin
[ INFO] [1501350811.389719945, 0.146000000]: Starting gazebo_ros_control plugin in namespace: /robot
[ INFO] [1501350811.393265260, 0.146000000]: gazebo_ros_control plugin is waiting for model URDF in parameter [/robot_description] on the ROS param server.
[urdf_spawner-3] process has finished cleanly
log file: /home/elzombie/.ros/log/68fa861a-7467-11e7-b7d7-d4bed980b116/urdf_spawner-3*.log
[ INFO] [1501350811.575174528, 0.146000000]: Loaded gazebo_ros_control.
gzclient: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreNode.cpp:630: virtual void Ogre::Node::setScale(const Ogre::Vector3&): Assertion `!inScale.isNaN() && "Invalid vector supplied as parameter"' failed.
Aborted (core dumped)
[gazebo_gui-2] process has died [pid 27040, exit code 134, cmd /opt/ros ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-08-05 13:59:12 -0600

moshimojo gravatar image

I fixed the problem by removing all the additional spaces in the <origin> element (in those who had more than one space between the origin values) and giving the <mass> element a value.

edit flag offensive delete link more

Comments

If this was the solution then you should mark it as correct.

jayess gravatar image jayess  ( 2017-08-05 15:00:05 -0600 )edit

it says i don't have enough points to mark my own answer

moshimojo gravatar image moshimojo  ( 2017-08-07 12:17:48 -0600 )edit

i take your advice but not work ~~~

jack37 gravatar image jack37  ( 2018-06-18 22:13:51 -0600 )edit

@jack37 then you should ask a new question, reference this question, and include any errors or whatever you mean by

not work

jayess gravatar image jayess  ( 2018-06-18 22:18:05 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2017-07-29 13:36:55 -0600

Seen: 2,745 times

Last updated: Aug 05 '17