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

Changing the FOV of the Lidar in ROS #227

Closed
Vineet-Pandey opened this issue Oct 10, 2023 · 6 comments
Closed

Changing the FOV of the Lidar in ROS #227

Vineet-Pandey opened this issue Oct 10, 2023 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@Vineet-Pandey
Copy link

Vineet-Pandey commented Oct 10, 2023

I want to change the FOV of the Ouster OS0-32 from [0-360] to [0, 180000] and in the Software User guide i see the use of set_config_param azimuth_window How can i set this param in ros? I don't see this particular rosparam in rosparam list.

Platform :

  • Ouster Sensor: OS-0-32
  • ROS version/distro Melodic
  • Operating System? Ubuntu 18
@Vineet-Pandey Vineet-Pandey added the question Further information is requested label Oct 10, 2023
@Samahu
Copy link
Contributor

Samahu commented Oct 12, 2023

We don't expose the ability to set azimuth window via ros launch file. We have /ouster/set_config/ (described here which could be used for this purpose but due to sensor re-initialization this is unlikely to work for ROS1 driver. It does work though for the ROS2 implementation since it implements Node LifeCycle.

@Samahu Samahu self-assigned this Oct 12, 2023
@imdsafi09
Copy link

Hi @Samahu
Could you please further elaborate how we can change the configuration to set the azimuth window up to 180 ° in ROS-2?

@Samahu
Copy link
Contributor

Samahu commented Mar 14, 2024

Sure, create a config file in some known path and add the following content:

{
    "azimuth_window": 
    [
        0,
        180000
    ],
}

This config would set the azimuth window to 180 degrees. Let's name the file os-xxx.json. Now to apply this config file you can do so by invoking the command:

ros2 service call /ouster/set_config ouster_sensor_msgs/srv/SetConfig "{config_file: /path/to/file/os-xxx.json}"

Make sure to set the correct path of your file. If the call was successful you should get the following response:

ouster_sensor_msgs.srv.SetConfig_Response(config='{\n    "azimuth_window": \n    [\n        0,\n        180000\n    ]\n}')

The driver will stop momentarily and and restart with new the new azimuth window configuration.

@imdsafi09
Copy link

Hi @Samahu,

Thank you for your response. I would like to know whether the above configuration will only limit the field of view of the point cloud or image information (signal image, etc.) as well?

Best regards,

@Samahu
Copy link
Contributor

Samahu commented Mar 16, 2024

It will affect both simultaneously

@Samahu
Copy link
Contributor

Samahu commented Aug 21, 2024

addressed in #357 and #358

@Samahu Samahu closed this as completed Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants