From feb55b3f30336b970ecd892c78655fe04e105248 Mon Sep 17 00:00:00 2001 From: aPR0T0 Date: Wed, 20 Sep 2023 14:03:54 +0800 Subject: [PATCH] [ Minor Debugging ] : Changes topic from /camera to /tello --- Examples/ROS/.vscode/settings.json | 5 ----- Examples/ROS/ORB_SLAM3/src/ros_mono.cc | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 Examples/ROS/.vscode/settings.json diff --git a/Examples/ROS/.vscode/settings.json b/Examples/ROS/.vscode/settings.json deleted file mode 100644 index f6ed1f45aa..0000000000 --- a/Examples/ROS/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "files.associations": { - "dense": "cpp" - } -} \ No newline at end of file diff --git a/Examples/ROS/ORB_SLAM3/src/ros_mono.cc b/Examples/ROS/ORB_SLAM3/src/ros_mono.cc index a689294f41..f8c396d6b4 100644 --- a/Examples/ROS/ORB_SLAM3/src/ros_mono.cc +++ b/Examples/ROS/ORB_SLAM3/src/ros_mono.cc @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include "../../../include/System.h" @@ -54,7 +54,7 @@ int main(int argc, char** argv) ImageGrabber igb(&SLAM); ros::NodeHandle nodeHandler; - ros::Subscriber sub = nodeHandler.subscribe("/camera/image_raw/compressed", 1, &ImageGrabber::GrabImage, &igb); + ros::Subscriber sub = nodeHandler.subscribe("/tello/image_raw/compressed", 1, &ImageGrabber::GrabImage, &igb); ros::spin(); @@ -75,7 +75,7 @@ void ImageGrabber::GrabImage(const sensor_msgs::CompressedImageConstPtr& msg) cv_bridge::CvImageConstPtr cv_ptr; try { - cv_ptr = cv_bridge::toCvCopy(msg,image_transport::ImageEncodings::BGR8 ); + cv_ptr = cv_bridge::toCvCopy(msg,sensor_msgs::image_encodings::BGR8 ); } catch (cv_bridge::Exception& e) {