Updating for deprecated API after gazebo 1.5.0
Remove warning due to API change.