Comments (4)
Update: I created a dropbox folder containing a ROS bag . If ros_deep_learning node is subscribed to the topic /rgb_image the issue mentioned above can be reproduced.
Setup info:
Jetson TX2
ROS kinetic
Ubuntu 16.04
Link where ROS bag can be downloaded:
https://www.dropbox.com/s/bkcxj68dr38j50c/video_bag.tar.gz
Any help will be highly appreciate it.
from ros_deep_learning.
I am using ZEDmini on a Jetson TX2, while trying to use the the image topic /zed/rgb/image_rect_color I am getting the error:
failed to convert 1280x720 bgra8 image
I have tried to subscribe the ros_deep_learning node to other zed camera image topics and same error occurs.
[cuda] cudaAllocMapped 131072 bytes, CPU 0x102540000 GPU 0x102540000
[cuda] cudaAllocMapped 32768 bytes, CPU 0x102350000 GPU 0x102350000
[ INFO] [1567098659.557982573]: model hash => 965427319687731864
[ INFO] [1567098659.558040077]: hash string => /usr/local/bin/networks/ped-100/snapshot_iter_70800.caffemodel/usr/local/bin/networks/ped-100/class_labels.txt
[ INFO] [1567098659.560447145]: node namespace => /detectnet
[ INFO] [1567098659.560522857]: class labels => /detectnet/class_labels_965427319687731864
[ INFO] [1567098659.571631642]: detectnet node initialized, waiting for messages
[ INFO] [1567098659.736026296]: converting 1280x720 bgra8 image
[ERROR] [1567098659.736376120]: 1280x720 image is in bgra8 format, expected bgr8
[ INFO] [1567098659.736437304]: failed to convert 1280x720 bgra8 image
[ INFO] [1567098659.768120524]: converting 1280x720 bgra8 image
@JorgeVilchis @dusty-nv I am facing the same issue. Could you find any solution to this? I am stuck in this same problem since a long time. I would really appreciate if you could provide me any help. Thanks!
from ros_deep_learning.
@JorgeVilchis @dipampatel18 @dusty-nv did you solve this problem?
cause I am meeting the same one..
from ros_deep_learning.
@vxgu86 @dipampatel18 @dusty-nv There is a tempory fix for this issue. Write a new ROS node which is subscribing to the image you want to feed into the deep learning node, and in the image callback, you can do the following conversion mentioned in the code snippet, and publish the converted image to another topic.
Feed that converted image as the input of deep learning node. This fix worked for me, I can't share the complete code, but I can share the conversion snippet in the callback.
void imageCallback(const sensor_msgs::ImageConstPtr& msg)
{
try
{
frame = cv_bridge::toCvShare(msg, "bgr8")->image;
sensor_msgs::ImagePtr msg;
msg = cv_bridge::CvImage(std_msgs::Header(), "bgr8", frame).toImageMsg();
pub_converted.publish(msg);
}
catch (cv_bridge::Exception& e)
{
ROS_ERROR("Could not convert from '%s' to 'bgr8'.", msg->encoding.c_str());
}
}
from ros_deep_learning.
Related Issues (20)
- Multi-Threads
- subscriber error HOT 4
- erro in nodelet_imagenet.cpp HOT 5
- DETECTNET_DEFAULT_THRESHOLD HOT 1
- detectnet directly from ros topic HOT 2
- using realsense2 as an input source HOT 1
- Ros Noetic, undefined symbol, Jetson AGX, Jetpack 5.1 HOT 2
- no package ros_deep_learning in docker container ros-noetic-pytorch-l4t-32.7.1 HOT 4
- ros_deep_learning package not found HOT 13
- Format for class labels file and class colors file ? HOT 2
- Using ros2 bag file as an input
- ROS Noetic Distro HOT 1
- Jetson Orin/Jetson Nano Ros Deep Learning HOT 2
- CLI Syntax for input-codec=mjpeg HOT 3
- Jetson inference HOT 5
- failed to find model manifest file 'networks/models.json' HOT 4
- Ros Deep Learning on x86 HOT 3
- using realsense rostopic to stream HOT 2
- Not a bug persay but a question! HOT 6
- bbox information via the /detectnet/detections topic using a subscibrer HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros_deep_learning.