Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical Camera Sensor Information Is Wrong #90

Open
osrf-migration opened this issue Apr 16, 2019 · 0 comments
Open

Logical Camera Sensor Information Is Wrong #90

osrf-migration opened this issue Apr 16, 2019 · 0 comments
Labels
bug Something isn't working trivial

Comments

@osrf-migration
Copy link

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

#!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.

@osrf-migration osrf-migration added trivial bug Something isn't working labels Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working trivial
Projects
None yet
Development

No branches or pull requests

1 participant