Giter VIP home page Giter VIP logo

Comments (9)

emanef13 avatar emanef13 commented on July 20, 2024

I think I need to first run the start_grabbing service. However, I get the following error in the pylon_camera_node termianal:
[ERROR] [1615808346.473366169]: An exception while setting target image encoding to 'mono8' occurred: Node is not writable
[ERROR] [1615808346.473378920]: Error while start grabbing

from pylon-ros-camera.

m-binev avatar m-binev commented on July 20, 2024

@emanef13 Can you check if your camera supports Mono8 pixel format at all? That is, some USB color cameras do not support monochrome pixel formats at all. In this case, you should try using Bayer8 instead.

from pylon-ros-camera.

emanef13 avatar emanef13 commented on July 20, 2024

Hi, thanks for your reply!
Yes the camera can support mono8 (Mono8 is not recognizable though, when I pass it as a parameter).
[ INFO] [1615808915.912177845]: Cam supports the following [GenAPI|ROS] image encodings: ['Mono8'|'mono8'] ['Mono12'|'mono16'] ['Mono12p'|'NO_ROS_EQUIVALENT']

from pylon-ros-camera.

m-binev avatar m-binev commented on July 20, 2024

@emanef13 Okay, could you post the exact camera model name here, please?

from pylon-ros-camera.

emanef13 avatar emanef13 commented on July 20, 2024

Camera model: acA1920-155um

from pylon-ros-camera.

m-binev avatar m-binev commented on July 20, 2024

@emanef13 ok, thanks. Please make sure the camera is not running already. Actually, after StartGrabbing() is called, all critical payload parameters like Pixel Format, Width, Height etc. are turning from RW to RO.

from pylon-ros-camera.

emanef13 avatar emanef13 commented on July 20, 2024

@m-binev Hello, what do you mean by not running the camera? If I do not run the camrea_node the services are not available. Could you please specify that? Thanks for the help!

from pylon-ros-camera.

m-binev avatar m-binev commented on July 20, 2024

@emanef13 Hi, the forkflow for setting up a camera and grabbing images is as follows: 1) you first configure relevant parameters, e.g., width, height, pixel format, etc. 2) Then allocate ressources, e.g., buffer memory. 3) Then start image acquisition and grab images into the alocated buffers, which are reused for grabbing after releasing the memory.
In pylon, 2) and 3) are pretty simplified and encapsulated in high level functions like StartGrabbing(). At point 2) though, all critical parameters like width, height, pixel format are locked and trurn from RW to RO. So, before setting e.g. pixel format, you have to make sure that StartGrabbing() has not been called, or that you call StopGrabbing().
On a side note: have you checked the following AppNotes: https://www.baslerweb.com/fp-1591878203/media/downloads/documents/application_notes/AW00149103000_Interfacing_Basler_Cameras_with_ROS~1.pdf

from pylon-ros-camera.

emanef13 avatar emanef13 commented on July 20, 2024

Thanks for your insights @m-binev! I was not able to use the start_grabbing service, however I made my own script that subscribes to the topic where raw images are published, and grabs an image by img = rospy.wait_for_message(relative_topic, Image, 2) .Then I am able to do my post-proccesing.

from pylon-ros-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.