Skip to content

Commit

Permalink
Set drawing sensor to false by default to avoid startup issues to hop…
Browse files Browse the repository at this point in the history
…efully fix Cosys-Lab#30.
  • Loading branch information
WouterJansen committed Sep 30, 2024
1 parent d748b85 commit ec143df
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AirLib/include/sensors/MarLocUwb/MarLocUwbSimpleParams.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct MarLocUwbSimpleParams {
bool pause_after_measurement ; // Pause the simulation after each measurement. Useful for API interaction to be synced
bool external = false; // define if a sensor is attached to the vehicle itself(false), or to the world and is an external sensor (true)
bool external_ned = true; // define if the external sensor coordinates should be reported back by the API in local NED or Unreal coordinates
bool draw_sensor; // Draw the physical sensor in the world on the vehicle
bool draw_sensor = false; // Draw the physical sensor in the world on the vehicle


Pose relative_pose {
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/sensors/lidar/GPULidarSimpleParams.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace msr {

bool draw_debug_points = false; // Enable the drawing of debug cubes of the pointcloud. Disable this for real measurements as it is impacted(detected) by the virtual camera!
uint draw_mode = 0; // 0 = no coloring, 1 = instance segmentation, 2 = material, 3 = impact angle, 4 = intensity
bool draw_sensor; // Draw the physical sensor in the world on the vehicle with a 3d colored axis
bool draw_sensor = false; // Draw the physical sensor in the world on the vehicle with a 3d colored axis

real_T update_frequency = 10; // Frequency to update the sensor at in Hz
real_T startup_delay = 1; // Delay until sensor is enabled in seconds
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/sensors/lidar/LidarSimpleParams.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace airlib

bool external = false; // define if a sensor is attached to the vehicle itself(false), or to the world and is an external sensor (true)
bool external_ned = true; // define if the external sensor coordinates should be reported back by the API in local NED or Unreal coordinates
bool draw_sensor;
bool draw_sensor = false;

uint measurement_per_cycle = 512;
uint horizontal_rotation_frequency = 10; // rotations/sec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct SensorTemplateSimpleParams {
bool pause_after_measurement ; // Pause the simulation after each measurement. Useful for API interaction to be synced
bool external = false; // define if a sensor is attached to the vehicle itself(false), or to the world and is an external sensor (true)
bool external_ned = true; // define if the external sensor coordinates should be reported back by the API in local NED or Unreal coordinates
bool draw_sensor; // Draw the physical sensor in the world on the vehicle
bool draw_sensor = false; // Draw the physical sensor in the world on the vehicle

Pose relative_pose {
Vector3r(0,0,-1), // position - a little above vehicle (especially for cars) or Vector3r::Zero()
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/sensors/wifi/WifiSimpleParams.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct WifiSimpleParams {
bool pause_after_measurement ; // Pause the simulation after each measurement. Useful for API interaction to be synced
bool external = false; // define if a sensor is attached to the vehicle itself(false), or to the world and is an external sensor (true)
bool external_ned = true; // define if the external sensor coordinates should be reported back by the API in local NED or Unreal coordinates
bool draw_sensor; // Draw the physical sensor in the world on the vehicle
bool draw_sensor = false; // Draw the physical sensor in the world on the vehicle


Pose relative_pose {
Expand Down

0 comments on commit ec143df

Please sign in to comment.