Skip to content

Suggestion to streamline the implementation of new sensors #16

@AdelGuiot

Description

@AdelGuiot

Depth sensors can only measure the distance up to a sample. As such, this information must be translated in the robot's workspace to be usable. This is currently done within the get_data function of the sensor class. More precisely, the get_rectified_data function, which itself is called out of the class (which, as a sidenote, probably hinders modularity).

I see two ways to go about improving this:

  • Only return the raw distance measured by the sensor from get_data, and leave anything to do with the robot outside of the sensor class. Positions will only be set ad-hoc or within the robot class in that case.
  • Or change the template by adding a get_rectified_data function, or such, which will use data from measured from get_data to send a new position for the robot.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions