Skip to content

Change event messages to hold the old and new state #5

@bit-pirate

Description

@bit-pirate

Currently each program receiving event messages needs to store the old state of the sensor(s) internally to understand what has changed. This means each of them needs to implement this logic to parse the message, store the old state and compare it with the new sate.

Let's move this logic into the kobuki_node and always publish the old and new state to make the life easier for developers creating apps/programs on top of Kobuki (node).

Also, let's use this change to design new messages, which are more suitable for general use, so that they may get integrated into standard ROS message packages in the future (or at least serve as a design seed).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions