Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up warnings and errors from latest Rolling releases. #99

Merged
merged 2 commits into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ros2_ouster/include/ros2_ouster/conversions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "sensor_msgs/msg/imu.hpp"
#include "sensor_msgs/msg/laser_scan.hpp"
#include "tf2/LinearMath/Transform.h"
#include "tf2_geometry_msgs/tf2_geometry_msgs.h"
#include "tf2_geometry_msgs/tf2_geometry_msgs.hpp"
#include "ouster_msgs/msg/metadata.hpp"

#include "ros2_ouster/client/client.h"
Expand Down
4 changes: 2 additions & 2 deletions ros2_ouster/src/ouster_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ OusterDriver::OusterDriver(
this->declare_parameter("proc_mask", std::string("IMG|PCL|IMU|SCAN"));

// Declare parameters used across ALL _sensor_ implementations
this->declare_parameter("lidar_ip");
this->declare_parameter("computer_ip");
this->declare_parameter("lidar_ip", std::string(""));
Copy link
Member

@SteveMacenski SteveMacenski Apr 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intentionally don't want a default, is there not an API that sets the type without setting the value to something? I would like it to crash immediately if its not provided with a valid set of IPs. I don't want to even attempt to connect to a bogus address since the networking aspects of sensors are generally limited and I'm not sure it would successfully exit as invalid.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, maybe. Let me play around with setting the type via templating to see if that is happier.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that works. See 3dbecf1 .

this->declare_parameter("computer_ip", std::string(""));
this->declare_parameter("imu_port", 7503);
this->declare_parameter("lidar_port", 7502);
this->declare_parameter("lidar_mode", std::string("512x10"));
Expand Down