Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ release will remove the deprecated code.
1. Header files under `ignition/...` are deprecated and will be removed in future versions.
Use `gz/...` instead.

1. **CameraSensor**: the default anti-aliasing value has changed from `2` to `4`.

## Gazebo Sensors 6.0.1 to 6.1.0

### Modifications
Expand Down
2 changes: 1 addition & 1 deletion src/CameraSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ bool CameraSensor::CreateCamera()
}

// \todo(nkoeng) these parameters via sdf
this->dataPtr->camera->SetAntiAliasing(2);
this->dataPtr->camera->SetAntiAliasing(cameraSdf->AntiAliasingValue());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the default value in SDFormat is 4, so this will represent a behavior change

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm it may be worth putting a note in the migration guide about this change, otherwise changes look good to me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


math::Angle angle = cameraSdf->HorizontalFov();
if (angle < 0.01 || angle > IGN_PI*2)
Expand Down