Skip to content

Update message_filter.h#91

Merged
tfoote merged 3 commits intoros2:ros2from
sagniknitr:ros2
Feb 15, 2019
Merged

Update message_filter.h#91
tfoote merged 3 commits intoros2:ros2from
sagniknitr:ros2

Conversation

@sagniknitr
Copy link
Contributor

The rclcpp::Time Clock "now" call seemed wrong. This is the correct way to do it seems.

@tfoote tfoote added the in review Waiting for review (Kanban column) label Feb 4, 2019
@tfoote tfoote self-requested a review February 6, 2019 08:52
Copy link
Contributor

@tfoote tfoote left a comment

Choose a reason for hiding this comment

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

Yes, using the static method is sub-optimal, it won't get . The correct solution is not to construct a new Clock object but call get_clock() on the member node_. Or the convenience method now() on the node which does that under the hood

Constructing a Clock object but not attaching a time source to it is basically the same as the static method. I believe that API didn't exist when this was first implemented.

@sagniknitr
Copy link
Contributor Author

@tfoote Thanks for the review. Sorry couldn't apply the changes earlier.

@tfoote
Copy link
Contributor

tfoote commented Feb 15, 2019

Thanks for the update @sagniknitr

Triggering CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@tfoote tfoote merged commit aaae4cf into ros2:ros2 Feb 15, 2019
@tfoote tfoote removed the in review Waiting for review (Kanban column) label Feb 15, 2019
nuclearsandwich added a commit to ros/rosdistro that referenced this pull request Apr 14, 2019
Increasing version of package(s) in repository `geometry2` to `0.11.0-1`:

- upstream repository: https://github.com/ros2/geometry2.git
- release repository: https://github.com/ros2-gbp/geometry2-release.git
- distro file: `dashing/distribution.yaml`
- bloom version: `0.8.0`
- previous version for package: `null`

## tf2

- No changes

## tf2_eigen

```
* Updated to use ament_target_dependencies where possible. (#98 <ros2/geometry2#98>)
* Contributors: ivanpauno
```

## tf2_geometry_msgs

```
* Updated to use ament_target_dependencies where possible. (#98 <ros2/geometry2#98>)
```

## tf2_msgs

- No changes

## tf2_ros

```
* Updated to use node inteface pointers in the MessageFilter class. (#96 <ros2/geometry2#96>)
* Updated message_filter.h. (#91 <ros2/geometry2#91>)
* Contributors: Michael Jeronimo, Sagnik Basu
```

## tf2_sensor_msgs

- No changes
vmayoral pushed a commit to AcutronicRobotics/geometry2 that referenced this pull request Apr 26, 2019
* Use correct method to get node time.
andre-rosa pushed a commit to andre-rosa/rosdistro that referenced this pull request May 3, 2019
Increasing version of package(s) in repository `geometry2` to `0.11.0-1`:

- upstream repository: https://github.com/ros2/geometry2.git
- release repository: https://github.com/ros2-gbp/geometry2-release.git
- distro file: `dashing/distribution.yaml`
- bloom version: `0.8.0`
- previous version for package: `null`

## tf2

- No changes

## tf2_eigen

```
* Updated to use ament_target_dependencies where possible. (ros#98 <ros2/geometry2#98>)
* Contributors: ivanpauno
```

## tf2_geometry_msgs

```
* Updated to use ament_target_dependencies where possible. (ros#98 <ros2/geometry2#98>)
```

## tf2_msgs

- No changes

## tf2_ros

```
* Updated to use node inteface pointers in the MessageFilter class. (ros#96 <ros2/geometry2#96>)
* Updated message_filter.h. (ros#91 <ros2/geometry2#91>)
* Contributors: Michael Jeronimo, Sagnik Basu
```

## tf2_sensor_msgs

- No changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants