Go to file
wittenator 5ae995ec36 Added synchronisation between camera and data collection 2024-03-18 17:07:34 +01:00
description Added synchronisation between camera and data collection 2024-03-18 17:07:34 +01:00
env-hooks Added first version of Sensorsim 2023-11-29 23:09:05 +01:00
launch Added cone simulation and bbox capturing 2023-12-17 14:56:35 +01:00
sensor_sim Added first version of Sensorsim 2023-11-29 23:09:05 +01:00
src Added synchronisation between camera and data collection 2024-03-18 17:07:34 +01:00
worlds Added synchronisation between camera and data collection 2024-03-18 17:07:34 +01:00
CMakeLists.txt Updated CMake 2024-01-07 18:20:23 +01:00
LICENSE.md Added first version of Sensorsim 2023-11-29 23:09:05 +01:00
README.md Added small docs 2023-11-29 23:17:23 +01:00
package.xml Added first version of Sensorsim 2023-11-29 23:09:05 +01:00

README.md

Robot Package Template

Installation

sudo apt-get install ros-iron-ros-gz ros-iron-robot-state-publisher

Then normal ROS2 install and buidl procedure.

Execution

ros2 launch sensor_sim launch_sim.py

Changing the position of lidar and camera

In /description/lidar.xacro there is a block looking like this:

<joint name="laser_joint" type="fixed">
    <parent link="chassis"/>
    <child link="laser_frame"/>
    <origin xyz="-1.1 0.0 1.0" rpy="0 0 0"/>
</joint>

Modifying the origin key changes the position of the lidar (relative to the center of the front axle of the car). The simulation needs to be restarted. There is a similar block in /description/bbox_camera.xacro looking like

<joint name="camera_joint" type="fixed">
    <parent link="laser_frame"/>
    <child link="camera_link"/>
    <origin xyz="0 -0.2 0" rpy="0 0 0"/>
</joint>

Modifying the origin yields the same result, but the camera is relative to the position of the lidar.