GithubHelp home page GithubHelp logo

lgeo3 / carla Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carla-simulator/carla

8.0 8.0 2.0 21.9 MB

Open-source simulator for autonomous driving research.

Home Page: http://carla.org

License: Other

Makefile 0.27% Shell 3.29% Python 24.49% Batchfile 1.03% C++ 67.11% C# 0.40% C 1.48% CMake 1.86% Dockerfile 0.06%

carla's People

Contributors

danil-tolkachev avatar dosovits avatar felipecode avatar hiteboar avatar juaxix avatar lgeo3 avatar marcgpuig avatar nsubiron avatar pjpjq avatar shepelilya avatar thenihilisticrobot avatar thibault-buhet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

carla's Issues

cannot import "carla_server_pb2.py", run the protobuf compiler to generate this file

raise RuntimeError('cannot import "carla_server_pb2.py", run '
RuntimeError: cannot import "carla_server_pb2.py", run the protobuf compiler to generate this file

File "/home/zmr0almost/catkin_carla/src/carla_ros_bridge/src/client.py", line 22, in
from carla.client import make_carla_client
File "/home/zmr0almost/carla/PythonClient/carla/client.py", line 14, in
from . import sensor
File "/home/zmr0almost/carla/PythonClient/carla/sensor.py", line 19, in
from .transform import Transform, Translation, Rotation, Scale
File "/home/zmr0almost/carla/PythonClient/carla/transform.py", line 20, in
raise RuntimeError('cannot import "carla_server_pb2.py", run '
RuntimeError: cannot import "carla_server_pb2.py", run the protobuf compiler to generate this file
[carla_ros_bridge-2] process has died [pid 8926, exit code 1, cmd /home/zmr0almost/catkin_carla/src/carla_ros_bridge/src/client.py __name:=carla_ros_bridge __log:=/home/zmr0almost/.ros/log/9c4fcd08-58c4-11e8-bbae-a0afbd9a4269/carla_ros_bridge-2.log].
log file: /home/zmr0almost/.ros/log/9c4fcd08-58c4-11e8-bbae-a0afbd9a4269/carla_ros_bridge-2*.log

is there any way to sovle these ?

Carla ROS bridge failure

Hello,

I was working with your dev/add_ros_bridge branch and the ROS bridge source code. I followed the README instructions and installed all the necessary dependencies. However, when I run the code with the following command: roslaunch carla_ros_bridge client_with_rviz.launch, I get the following error:

    assert len(raw_data) == 4 * width * height
AssertionError

Here is the whole entire error message:

[INFO] [1526329625.731374, 0.000000]: Trying to connect to localhost:2000
[INFO] [1526329625.731779, 0.000000]: Connection is ok
[INFO] [1526329625.743222, 0.000000]: Adding publisher for sensor camera_depth
[INFO] [1526329625.746817, 0.000000]: Adding publisher for sensor CameraRGB
[INFO] [1526329625.749244, 0.000000]: Adding publisher for sensor lidar_0
[INFO] [1526329625.750340, 0.000000]: Adding publisher for sensor camera_semantic_segmentation
[INFO] [1526329627.734084, 0.000000]: Exiting Bridge
Traceback (most recent call last):
  File "/home/neil/Workspace/self-driving-golf-cart/src/carla_ros_bridge/src/client.py", line 553, in     <module>
    main()
  File "/home/neil/Workspace/self-driving-golf-cart/src/carla_ros_bridge/src/client.py", line 549, in main
    carla_ros_bridge.run()
  File "/home/neil/Workspace/self-driving-golf-cart/src/carla_ros_bridge/src/client.py", line 359, in run
    measurements, sensor_data = self.client.read_data()
  File "/usr/local/lib/python2.7/dist-packages/carla/client.py", line 127, in read_data
    return pb_message, dict(x for x in self._read_sensor_data())
  File "/usr/local/lib/python2.7/dist-packages/carla/client.py", line 127, in <genexpr>
    return pb_message, dict(x for x in self._read_sensor_data())
  File "/usr/local/lib/python2.7/dist-packages/carla/client.py", line 175, in _read_sensor_data
    yield self._parse_sensor_data(data)
  File "/usr/local/lib/python2.7/dist-packages/carla/client.py", line 180, in _parse_sensor_data
    return parser.name, parser.parse_raw_data(data[4:])
  File "/usr/local/lib/python2.7/dist-packages/carla/client.py", line 194, in parse_image
    return sensor.Image(width, height, image_type, fov, data[16:])
  File "/usr/local/lib/python2.7/dist-packages/carla/sensor.py", line 146, in __init__
    assert len(raw_data) == 4 * width * height
AssertionError

Thanks for your time and attention. Thanks for the ROS bridge implemenation. Let me know if you need other details.

Does rosbridge work on Pre-compiled Carla

Hi George,

I am using the pre-compiled version of Carla version 0.8.2 (I have not built it from the scratch in my system).

I was trying to implement carla_ros_bridge by following the steps given in the link #4

But I am getting the below error.

kk@kk-Lenovo-ideapad-320-15ISK:~/ros/catkin_ws_for_carla$ rostest carla_ros_bridge ros_bridge_client.test
[ros_bridge_client.test] is neither a launch file in package [carla_ros_bridge] nor is [carla_ros_bridge] a launch file name
kk@kk-Lenovo-ideapad-320-15ISK:~/ros/catkin_ws_for_carla$ 

Does this method works on the pre-compiled Carla or do I have to build Carla from github code ?

Thank you,
KK

Carla ROS Bridge on ROS Indigo (APOLLO)

Hi George,
I am working on Carla and ROS Bridge. I would like to integrate an updated version of your Bridge inside a Docker. Unfortunately this Docker (coming from APOLLO platform) embeds an older version of ROS which is Indigo (2014) instead of ROS Kinetic.
Do you think is it possible to make the ROS Bridge working on ROS Indigo inside a Docker?

Many thanks for your support,
Regards
Alberto

Question: "ring" data in lidar point cloud

Hi, @laurent-george,
do you have an idea how can I get "ring" data (index of ring similar to what velodyne device provides) for each point of the simulated lidar?
I was looking at your implementation of ros bridge, probably you could point out if is it possible to do in ros bridge or require some efforts on carla code side? I very appreciate any information.

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.