Skip to content

Commit

Permalink
Merge branch 'main' into hesai-hw-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
amc-nu authored Oct 3, 2023
2 parents 7330ef4 + 3cee32f commit 94cee10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ Status VelodyneHwInterface::InitializeSensorConfiguration(
Status VelodyneHwInterface::SetSensorConfiguration(
std::shared_ptr<SensorConfigurationBase> sensor_configuration)
{
InitializeSensorConfiguration(sensor_configuration);

VelodyneStatus status = CheckAndSetConfigBySnapshotAsync();
Status rt = status;
return rt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ VelodyneHwInterfaceRosWrapper::VelodyneHwInterfaceRosWrapper(const rclcpp::NodeO
RCLCPP_INFO_STREAM(this->get_logger(), "Initialize sensor_configuration");
std::shared_ptr<drivers::SensorConfigurationBase> sensor_cfg_ptr =
std::make_shared<drivers::VelodyneSensorConfiguration>(sensor_configuration_);
RCLCPP_INFO_STREAM(this->get_logger(), "hw_interface_.SetSensorConfiguration");
RCLCPP_INFO_STREAM(this->get_logger(), "hw_interface_.InitializeSensorConfiguration");
hw_interface_.InitializeSensorConfiguration(
std::static_pointer_cast<drivers::SensorConfigurationBase>(sensor_cfg_ptr));

if (this->setup_sensor) {
RCLCPP_INFO_STREAM(this->get_logger(), "hw_interface_.SetSensorConfiguration");
hw_interface_.SetSensorConfiguration(
std::static_pointer_cast<drivers::SensorConfigurationBase>(sensor_cfg_ptr));
updateParameters();
Expand Down

0 comments on commit 94cee10

Please sign in to comment.