Skip to content

Commit

Permalink
Add time update
Browse files Browse the repository at this point in the history
  • Loading branch information
Samahu committed Aug 15, 2024
1 parent 781b603 commit 33ac5bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 2 additions & 0 deletions ouster-ros/launch/replay.independent.launch.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<launch>

<set_parameter name="use_sim_time" value="true" />

<arg name="ouster_ns" default="ouster"
description="Override the default namespace of all ouster nodes"/>
<!-- TODO: revisit the proper behaviour of allowing users override the default timestamp_mode during replay -->
Expand Down
18 changes: 0 additions & 18 deletions ouster-ros/src/os_pcap_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,24 +320,6 @@ class OusterPcap : public OusterSensorNodeBase {

std::atomic<bool> lidar_packets_processing_thread_active = {false};
std::unique_ptr<std::thread> lidar_packets_processing_thread;

bool force_sensor_reinit = false;
bool reset_last_init_id = true;

bool last_init_id_initialized = false;
uint32_t last_init_id;

// TODO: add as a ros parameter
const int max_poll_client_error_count = 10;
int poll_client_error_count = 0;
// TODO: add as a ros parameter
const int max_read_lidar_packet_errors = 60;
int read_lidar_packet_errors = 0;
// TODO: add as a ros parameter
const int max_read_imu_packet_errors = 60;
int read_imu_packet_errors = 0;

bool pause = false;
};

} // namespace ouster_ros
Expand Down

0 comments on commit 33ac5bb

Please sign in to comment.