Coder Social home page Coder Social logo

No camera image about telecarla HOT 12 CLOSED

hofbi avatar hofbi commented on June 10, 2024
No camera image

from telecarla.

Comments (12)

hofbi avatar hofbi commented on June 10, 2024

Which version of the ROS bridge are you using? Is it also 9.10.1? I know that on the latest master there were some breaking changes in the sensor creation and renaming of topic names which is currently not integrated in telecarla as they are still ongoing. But with the release it should work.

If not, what happens if you run roslaunch carla_ros_bridge carla_ros_bridge_with_example_ego_vehicle.launch. If this also opens a UI window without showing the image, then the issue is related to the ros bridge itself. If you see a valid image here you could try a rostopic info to see under which topic the ros bridge is publishing the image.

from telecarla.

Lu7913 avatar Lu7913 commented on June 10, 2024

I'm using ROS melodic, ROS bridge is the latest master. Launching example mentioned above works normally (apart of awful framerate that I am getting due to some problems with synchronous mode), image from camera is visible. Image is posted to /carla/ego_vehicle/camera/rgb/front/image_color, which is also on the list, when running telecarla example.
I have just tried with ROS bridge 9.10.1 with same results, but now, there is an error, when launching telecarla example: Sensor sensor.camera.rgb/front will not be spawned, attribute 'height' not found . I will try with 9.10. If that helps, otherwise I will add an attribute.

One more question: I'm quite now to the ROS, so I'm a bit confused, should I watch for some problems when sourcing telecarla workspace? Should I have ros bridge and telecara workspaces combined/extended? Or sourcing just telecarla works fine?

Thank you.

from telecarla.

hofbi avatar hofbi commented on June 10, 2024

Ok so not directly sure what might cause this problem. I will try myself if I can reproduce it using the same versions.

When you change the ros bridge version, do you also change the related python API carla egg file?

You should only have a single workspace. Either have both, the carla ros bridge and telecarla in the same workspace if you build the ros bridge from source. If you followed the telecarla setup iknstructions, the ros bridge will be installed from its ppa. This means you don't to have it in your workspace, but you need to additionally source /opt/carla-ros-bridge/melodic/setup.bash

from telecarla.

Lu7913 avatar Lu7913 commented on June 10, 2024

I have also tried with Carla 9.10 and ROS bridge https://github.com/carla-simulator/ros-bridge/commit/ee524bb50a7328402b4fe537a7e92d7927020bf8, again no picture from the camera and no error. I know some changes were made to camera attributes in rosbridge, after latest telecarla commit.

When you change the ros bridge version, do you also change the related python API carla egg file

Depends on the ROS bridge version I'm trying to work with. For the latest test I tried with carla 9.10 and rosbridge commit about that time.

from telecarla.

hofbi avatar hofbi commented on June 10, 2024

I found the issue. In carla 0.9.10.1 the sensor config for defining camera widht and height has been changed to image_size_x and image_size_y. I opened the PR #18 which contains the fix. Could you try if it works for you with this fix. Once you confirm I will merge this PR.

from telecarla.

Lu7913 avatar Lu7913 commented on June 10, 2024

I have tried with Carla 0.9.10.1, ROS bridge 0.9.10.1 and latest telecarla and I got: [FATAL] :Sensor will not be spawned, because sensor spec is invalid: ''width''

from telecarla.

hofbi avatar hofbi commented on June 10, 2024

But this is exactly the fix I provide with #18. Did you used the branch carla_0_9_10_1 or latest master of telecarla?

from telecarla.

Lu7913 avatar Lu7913 commented on June 10, 2024

But this is exactly the fix I provide with #18. Did you used the branch carla_0_9_10_1 or latest master of telecarla?

I checked two times, reinstall everything, installed correct .egg files, since it was weird to me too. I will try again today, delete all other Carla version i have installed, but I doubt it will be any better, but I leave the possibility. I will try with precompiled releases.

from telecarla.

hofbi avatar hofbi commented on June 10, 2024

You don't need to change the carla version itself. I created a branch in this repo named carla_0_9_10_1 as it contains the fixes for this carla version. I wanted to know if you used telecarla on branch master or if you tried the branch carla_0_9_10_1?

from telecarla.

hofbi avatar hofbi commented on June 10, 2024

I have tried with Carla 0.9.10.1, ROS bridge 0.9.10.1 and latest telecarla and I got: [FATAL] :Sensor will not be spawned, because sensor spec is invalid: ''width''

I tired to reproduce you issue again, but I failed. The error itself is already strange as this is exactly the error that should be fixed on the branch and on my machine it works. The only way why this error still appears could be some build artefacts.

from telecarla.

Lu7913 avatar Lu7913 commented on June 10, 2024

I reinstalled everything and it works now. I'm sorry for the inconvenience and thank you for you help.

from telecarla.

hofbi avatar hofbi commented on June 10, 2024

Thanks for reporting. I merged the PR and added a tag to simplify the the link of CARLA version and TELECARLA version.

from telecarla.

Related Issues (10)

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.