-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Support D555 and its motion profiles #3222
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -295,8 +295,14 @@ void BaseRealSenseNode::startPublishers(const std::vector<stream_profile>& profi | |
rclcpp::QoS(rclcpp::QoSInitialization::from_rmw(qos), qos)); | ||
// Publish Intrinsics: | ||
info_topic_name << "~/" << stream_name << "/imu_info"; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where did we took the QOS before? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. before, we took it from "info_qos", but this was a buggy thing for imu_info. so, I tested it on different cameras, and it's not working as expected. So, I changed the QoS to be manually setted. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed to used rmw_qos_profile_latched, like the extrinsics topics. |
||
// IMU Info will have latched QoS, and it will publish its data only once during the ROS Node lifetime. | ||
// intra-process do not support latched QoS, so we need to disable intra-process for this topic | ||
rclcpp::PublisherOptionsWithAllocator<std::allocator<void>> options; | ||
options.use_intra_process_comm = rclcpp::IntraProcessSetting::Disable; | ||
_imu_info_publishers[sip] = _node.create_publisher<IMUInfo>(info_topic_name.str(), | ||
rclcpp::QoS(rclcpp::QoSInitialization::from_rmw(info_qos), info_qos)); | ||
rclcpp::QoS(rclcpp::QoSInitialization::from_rmw(rmw_qos_profile_latched), rmw_qos_profile_latched), | ||
std::move(options)); | ||
IMUInfo info_msg = getImuInfo(profile); | ||
_imu_info_publishers[sip]->publish(info_msg); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user asked for a USB port?
From the code it looks like the code is using it