mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-09-13 03:30:18 +08:00
fix the forceip settings failed
This commit is contained in:
@@ -188,7 +188,7 @@ def generate_launch_description():
|
||||
DeclareLaunchArgument('enumerate_net_device', default_value='true'),
|
||||
DeclareLaunchArgument('net_device_ip', default_value=''),
|
||||
DeclareLaunchArgument('net_device_port', default_value='0'),
|
||||
DeclareLaunchArgument('device_access_mode', default_value='Default'), # Default, EA, CA or MR . only for 335le
|
||||
DeclareLaunchArgument('device_access_mode', default_value='Default'), # Default, EA or CA . only for 335le
|
||||
DeclareLaunchArgument('exposure_range_mode', default_value='default'),#default, ultimate or regular
|
||||
DeclareLaunchArgument('log_level', default_value='none'),
|
||||
DeclareLaunchArgument('log_file_name', default_value=''),
|
||||
|
||||
@@ -217,12 +217,12 @@ void OBCameraNodeDriver::init() {
|
||||
force_ip_address_ = declare_parameter<std::string>("force_ip_address", "192.168.1.10");
|
||||
force_ip_subnet_mask_ = declare_parameter<std::string>("force_ip_subnet_mask", "255.255.255.0");
|
||||
force_ip_gateway_ = declare_parameter<std::string>("force_ip_gateway", "192.168.1.1");
|
||||
applyForceIpConfig();
|
||||
if (config_path_.empty()) {
|
||||
ctx_ = std::make_unique<ob::Context>();
|
||||
} else {
|
||||
ctx_ = std::make_unique<ob::Context>(config_path_.c_str());
|
||||
}
|
||||
applyForceIpConfig();
|
||||
|
||||
device_type_ = declare_parameter<std::string>("device_type", "camera");
|
||||
connection_delay_ = static_cast<int>(declare_parameter<int>("connection_delay", 100));
|
||||
|
||||
Reference in New Issue
Block a user