Skip to content

Commit

Permalink
lasersensor plugin bugfix (#617)
Browse files Browse the repository at this point in the history
* bugfix: m_device_status was not updated
  • Loading branch information
randaz81 authored Mar 22, 2022
1 parent 2e56b59 commit e54707e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ The format of this document is based on [Keep a Changelog](https://keepachangelo
### Changed
- Migrate the example models under the tutorial directory to avoid the use of implicit network wrapper servers, and use the `gazebo_yarp_robotinterface` plugin to spawn their network wrapper servers (https://github.com/robotology/gazebo-yarp-plugins/pull/615 and https://github.com/robotology/gazebo-yarp-plugins/pull/616).

### Fixed
- Fixed value returned by getDeviceStatus method in `gazebo_yarp_laser` plugin (https://github.com/robotology/gazebo-yarp-plugins/pull/617).

## [4.2.0] - 2022-02-28

### Added
Expand Down
1 change: 1 addition & 0 deletions plugins/lasersensor/src/LaserSensorDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ void GazeboYarpLaserSensorDriver::onUpdate(const gazebo::common::UpdateInfo& _in
m_timestamp.update(_info.simTime.Double());

m_first_run = false;
m_device_status = yarp::dev::IRangefinder2D::Device_status::DEVICE_OK_IN_USE;
return;
}

Expand Down

0 comments on commit e54707e

Please sign in to comment.