roboception / rc_genicam_api

Roboception convenience layer around GenICam and GigE Vision.
Other
114 stars 45 forks source link

Can't find usb transport layer in docker #22

Closed MomoHsieh closed 4 years ago

MomoHsieh commented 4 years ago

Hi, I just tried success in Ubuntu18.04 with Basler USB camera and libbgapi2_usb.cti. But when I install rc_genicam in ubuntu 18.04 docker, I can't get transport layer in docker.

This is in x86 ubuntu18.04 host with gc_info -l

Transport Layer /usr/local/lib/rc_genicam_api/libbgapi2_gige.cti_2.9.22968.22969
Vendor:         Baumer
Model:          bgapi2_gige
Vendor version: 2.9.22968.22969
TL type:        GEV
Name:           libbgapi2_gige.cti
Pathname:       /usr/local/lib/rc_genicam_api/libbgapi2_gige.cti
Display name:   Baumer GEV TL
GenTL version   1.5

    Interface     eno2
    Display name: eno2
    TL type:      GEV

    Interface     docker0
    Display name: docker0
    TL type:      GEV

    Interface     veth00d9670
    Display name: veth00d9670
    TL type:      GEV

Transport Layer /usr/local/lib/rc_genicam_api/libbgapi2_usb.cti_2.9.22669.22969
Vendor:         Baumer
Model:          bgapi2_usb
Vendor version: 2.9.22669.22969
TL type:        U3V
Name:           libbgapi2_usb.cti
Pathname:       /usr/local/lib/rc_genicam_api/libbgapi2_usb.cti
Display name:   Baumer U3V TL
GenTL version   1.5

    Interface     USB
    Display name: USB HOST
    TL type:      U3V

        Device             267601C9DC7B
        Vendor:            Basler
        Model:             acA1920-150uc
        TL type:           U3V
        Display name:      acA1920-150uc
        User defined name: 
        Access status:     ReadWrite
        Serial number:     40011777
        Version:           
        TS Frequency:      0

But in docker container only see

Transport Layer /usr/local/lib/rc_genicam_api/libbgapi2_gige.cti_2.9.22968.22969
Vendor:         Baumer
Model:          bgapi2_gige
Vendor version: 2.9.22968.22969
TL type:        GEV
Name:           libbgapi2_gige.cti
Pathname:       /usr/local/lib/rc_genicam_api/libbgapi2_gige.cti
Display name:   Baumer GEV TL
GenTL version   1.5

    Interface     eno2
    Display name: eno2
    TL type:      GEV

    Interface     docker0
    Display name: docker0
    TL type:      GEV

    Interface     veth00d9670
    Display name: veth00d9670
    TL type:      GEV

DOCKERFILE below

FROM ubuntu:18.04

RUN apt update
RUN DEBIAN_FRONTEND=noninteractive \
    apt-get install -y --fix-missing \
    apt-get install -y --fix-missing \
    wget \
    unzip \
    git \
    vim \
    cmake \
    build-essential

RUN echo 'export GENICAM_GENTL64_PATH=/usr/local/lib/rc_genicam_api'  >> ~/.bashrc

WORKDIR /home/
RUN git clone https://github.com/roboception/rc_genicam_api.git
WORKDIR /home/rc_genicam_api 
RUN mkdir build
WORKDIR /home/rc_genicam_api/build
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
RUN make -j8
RUN make install
RUN ldconfig
flixr commented 4 years ago

There is already a Dockerfile in the repo, with that Dockerfile it works fine...

flixr commented 4 years ago

@MomoHsieh closing this as it works fine with the provided Dockerfile. Feel free to reopen it if you have further problems.