Skip to content

Commit

Permalink
Merge pull request #287 from FS-Driverless/ros2_bridge_host_param
Browse files Browse the repository at this point in the history
Read host parameter correctly in ROS2 bridge
  • Loading branch information
mateusz-lichota authored Aug 12, 2022
2 parents 5471631 + 9ef0ba7 commit f37660b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ros2/src/fsds_ros2_bridge/src/fsds_ros2_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ int main(int argc, char ** argv)
rclcpp::init(argc, argv);
std::shared_ptr<rclcpp::Node> node = rclcpp::Node::make_shared("fsds_ros2_bridge");

std::string host_ip = "localhost";
node->get_parameter("host_ip", host_ip);
std::string host_ip = node->declare_parameterstd::string("host_ip", "localhost");

AirsimROSWrapper airsim_ros_wrapper(node, host_ip);

// if (airsim_ros_wrapper.is_used_lidar_timer_cb_queue_)
Expand Down

0 comments on commit f37660b

Please sign in to comment.