lgeo3 / carla Goto Github PK
View Code? Open in Web Editor NEWThis project forked from carla-simulator/carla
Open-source simulator for autonomous driving research.
Home Page: http://carla.org
License: Other
This project forked from carla-simulator/carla
Open-source simulator for autonomous driving research.
Home Page: http://carla.org
License: Other
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.
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
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 ?
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.