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

updates for foxy #132

Merged
merged 7 commits into from
Mar 27, 2021
Merged
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
Prev Previous commit
Next Next commit
minor updates to foxy
  • Loading branch information
flynneva committed Mar 24, 2021
commit 67e6b857755e3a6106836fe41d31bb5412e92e2c
6 changes: 3 additions & 3 deletions nodes/usb_cam_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class UsbCamNode : public rclcpp::Node
// shared image message
sensor_msgs::msg::Image::SharedPtr img_;
rclcpp::Publisher<sensor_msgs::msg::Image>::SharedPtr image_pub_;

// parameters
std::string video_device_name_ = "/dev/video0";
std::string frame_id_ = "map";
Expand Down Expand Up @@ -110,7 +110,7 @@ class UsbCamNode : public rclcpp::Node
// demos/intra_process_demo/include/image_pipeline/camera_node.hpp
img_ = std::make_shared<sensor_msgs::msg::Image>();
// advertise the main image topic
image_pub_ = this->create_publisher<sensor_msgs::msg::Image>("image_raw");
image_pub_ = this->create_publisher<sensor_msgs::msg::Image>("image_raw", 100);
}

void init()
Expand Down Expand Up @@ -299,7 +299,7 @@ class UsbCamNode : public rclcpp::Node
image_pub_.publish(img_, *ci);
#endif
// INFO(img_->data.size() << " " << img_->width << " " << img_->height << " " << img_->step);
image_pub_->publish(img_);
image_pub_->publish(*img_);

return true;
}
Expand Down