Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is the picoScan100 reflector define type? #337

Closed
sjeffreydong opened this issue May 27, 2024 · 1 comment
Closed

what is the picoScan100 reflector define type? #337

sjeffreydong opened this issue May 27, 2024 · 1 comment

Comments

@sjeffreydong
Copy link

Dear

Customer is asking us what the picoScan100 reflector define type? int? float? int64?

@rostest
Copy link
Collaborator

rostest commented May 27, 2024

Thanks for your feedback. I assume the customer means the reflector bit, which indicates the detection of a reflector. It is a flag (value 0 or 1) of type sensor_msgs::PointField::INT8 (1 byte). The types are listed in the field description of a PointCloud2 message and can be viewed e.g. with rostopic echo -n 1 /cloud_all_fields_fullframe:

fields: 
  - 
    name: "x"
    offset: 0
    datatype: 7
    count: 1
  - 
    name: "y"
    offset: 4
    datatype: 7
    count: 1
  - 
    name: "z"
    offset: 8
    datatype: 7
    count: 1
  - 
    name: "i"
    offset: 12
    datatype: 7
    count: 1
  - 
...
  - 
    name: "reflector"
    offset: 30
    datatype: 1
    count: 1

Datatype 1 is an INT8, datatype 7 is a FLOAT32. See https://docs.ros.org/en/jade/api/sensor_msgs/html/msg/PointField.html for a complete list of all datatypes of a PointCloud2 message.

@rostest rostest closed this as completed Jul 8, 2024
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

No branches or pull requests

2 participants