Opening an image file with ros
I want ROS to help me open an image file when a trigger/condition occurs.
For example I have a hello world program, which prints:
hello world [1] hello world [2] hello world [3]
when the hello world program reaches hello world [5] i want ROS to automatically help me open up for example
image1.jpg
or perhaps any file for that matter, maybe word1.docs. All in all, how can i get ros to help open up a file when there is a condition/trigger.
How can i do this? Thanks for any help.
Edit:
so sorry i seemed very unclear to a lot of people and i missed out many key points.
I want to do this on with the c++ language.
And i just wanted to know if there were any packages that i could download that is able to support this functionality, it seems that ROS dosent support this according to the responses.
I tried searching if there were any packages that can has this feature which i mentioned and i couldn’t find any. And i couldn’t find anyone else with who posted a similar question on this forum so i decided to ask here.
Im using Ubuntu 20.04 with ros noetic.
Why do i need this function? Im trying to implement a program where if the program fulfills a certain condition i want the led screen display to change. For example, the robot is about to enter a lift, i want the led screen on the robot to show an image saying, “entering lift with red background” or if i am doing a task which is dangerious i want to show an image to tell people to keep away from the place with an image.
How is the image shown on the led panel? I have hdmi connected to my pc and so i wanted to trigger ros to open an image and the image will be directly displayed onto the led screen.
Once again, i did not find anything while googling this feature so i asked it on this forum.
So sorry for not following the rules of this forum. I’ll be more clearer here on.
This question is not written correctly or does not contain sufficient information. Moreover, ROS is not designed to open a file! Please:
Then we can help you.
ROS Answers is not a place where we expect other people to just do your work for you. Of course, we help you try to get your work done, but we have to see a little effort on your side first.
@sajid1122 When asking this kind of question, you need to tell us what programming language and what operating system you are using. The answer is going to depend on both pieces of information.
You don't need ROS for this... Just go with any image processing library e.g. OpenCV: https://docs.opencv.org/4.x/db/deb/tu...
@GeorgNo: We are not sure what exactly he/she wants. I hope to hear more from @sajid1122
Hi guys, so sorry about what i did. I have updated the post.