You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!c++
// msg is of type gazebo::msgs::LogicalCameraImage
// Pose of camera in world coordinates
ignition::math::Pose3d cameraPose = gazebo::msgs::ConvertIgn(msg.pose());
// Pose of first model relative to camera
ignition::math::Pose3d modelRelativePose = gazebo::msgs::ConvertIgn(msg.model(0).pose());
// Pose of first model in world coordinates
ignition::math::Pose3d modelWorldPose = modelRelativePose + cameraPose;
Last line should be like this.
The text was updated successfully, but these errors were encountered:
Original report (archived issue) by Anonymous.
Under the Model Poses title, the given code has an error during the calculation of model's world pose.
Page URL: http://gazebosim.org/tutorials?tut=logical_camera_sensor&cat=sensors#ModelPoses
Last line should be like this.
The text was updated successfully, but these errors were encountered: