Coder Social home page Coder Social logo

Comments (5)

Samahu avatar Samahu commented on July 30, 2024

Hi @bclaw524,

It depends on what you are trying to achieve:

  • If this is only applies to test data then editing the json file should be fine
  • If this applies to a live sensor you would have to apply a rotation to the sensor lidar_to_sensor_transform such that the resulting frame is rotated. If this is within ROS and the sensor is part of a larger composition then you can simply apply the rotation at through the parent transform.

from ouster-ros.

bclaw524 avatar bclaw524 commented on July 30, 2024

It's closer to the latter.

I'm trying to calibrate cameras to the lidar so their point clouds would align properly in rviz.

The calibration package I'm using does the calculations best when the lidar is oriented in the same direction the camera is facing (so both the camera and lidar "front" axis are parallel to one another).

I have 4 cameras pointing in different directions, with the lidar being in the middle (setup similar to the simulation below). I would like to "rotate" the orientation of the ouster without having to physically rotate the lidar.

Screenshot from 2022-11-30 14-38-21

If this is within ROS and the sensor is part of a larger composition then you can simply apply the rotation at through the parent transform.

How do I do this exactly?

from ouster-ros.

Samahu avatar Samahu commented on July 30, 2024

@bclaw524, try adding something like the following to one of the sensor launch file:

  <node pkg="tf" type="static_transform_publisher" name="os_parent" args="0 0 0 -1.57 0 0 os_parent os_sensor 10" />

This would create a parent link name os_parent to the sensor main link os_sensor but with a rotation of 90 degrees CCW. Then you could use this transform when positioning the sensor in your scene or setup.

Hope this helps
Ussama

from ouster-ros.

Samahu avatar Samahu commented on July 30, 2024

@bclaw524 I haven't heard back from you, I hope my answer helped you with the issue you are dealing with. closing the issue.

from ouster-ros.

bclaw524 avatar bclaw524 commented on July 30, 2024

@Samahu sorry for the late reply, was still in the testing phase earlier today.

managed to "solve it" by rotating the pointcloud data directly.

Creating a parent link didn't really work as when I rotated the lidar in rviz, the pointcloud data that was transmitted by the sensor would still rotate with the frame.

Thanks for trying though.

from ouster-ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.