Comments (5)
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.
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.
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.
@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.
@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.
@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)
- ROS2 colcon build fails on Humble with cmake error include could not find requested file: DefaultBuildType HOT 2
- colcon build error -- "module 'em' has no attribute 'Interpreter'" HOT 1
- Ouster support for Apollo? HOT 7
- ROS2 crashes when standby mode is set and then set to normal HOT 2
- PTP Time is not integrated into the IMU Topic Header HOT 4
- Obtaining an organized point cloud from OS0 sensor HOT 5
- Unexpected udp packet length HOT 7
- Nodelet runs out of memory and dies HOT 11
- OS1-28 /ouster/signal_image /camera_info
- Where and when is the timestamp generated? HOT 1
- Ouster launch in docker HOT 2
- How do I change the QOS in ROS2? HOT 2
- deprecated declarations
- Unexpected UDP packet length HOT 2
- Lidar points dropped in ros bag record HOT 5
- The problem of point cloud rotation depending on the installation angle of LiDAR HOT 1
- Phase lock angle setup
- Sensor data cannot be received while ping is working (Ros2, Ubuntu 22.04, OS1) HOT 3
- How can I get an absolute unix timestamp to use for time synchronization with other sensors. HOT 1
- Lidar/GPS Synchronisation problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ouster-ros.