mjxu96 / carlaviz Goto Github PK
View Code? Open in Web Editor NEWVisualize carla in the web browser
License: MIT License
Visualize carla in the web browser
License: MIT License
Hello,
my setup is the following: I have 2 computers, one running Windows and a CARLA build from source. The other one is running Ubuntu 16.04, where I built carlaviz v0.9.9 from source. I am trying to run backend and frontend of carlaviz v0.9.9 on the Ubuntu 16.04 machine. Therefore I start the backend on the Linux machine using
/path/to/carlaviz/backend/bin/backend WINDOWS-HOSTNAME 2000
and the backend successfully connects to CARLA running on Windows. On the Windows machine, I can start the frontend using the mjxu96/carlaviz:0.9.9
docker image with CARLAVIZ_HOST_IP=LINUX-HOSTNAME
and it works perfectly.
However, when I want to start the frontend on the Linux machine using
cd /path/to/carlaviz/frontend/ && yarn start
the frontend cannot connect to the backend and the output is the same as in #5.
Am I missing something?
I am trying to build the backend
cd backend
mkdir build
cd build
cmake ../
but I get the following error:
CMake Error at CMakeLists.txt:9 (include):
include could not find load file:
third_party/LibCarla/cmake/CMakeLists.txt.in
Dear Mjxu96,
I am trying to explore the Carla On Linux platform(Ubuntu 18.04).
Please find attachment, unable to see the Carla Visualizer in the web browser.
I followed your steps, for your reference see below the website
Reference website:
https://github.com/wx9698/carlaviz#carlaviz-
https://github.com/wx9698/carlaviz/tree/master/examples
https://carla.readthedocs.io/en/latest/plugins_carlaviz/#carlaviz
I don't know what I have missed, I am not able to see the carlaviz on the web.
Can you please advise me, what to do next step?
Test Platform:
Carla Version: 0.9.9
Linux-Ubuntu: 18.04
Python 3.7
Steps followed:
Finally, Unable to see Carlaviz on the web browser.
Thanks & Regards,
Saravanan
Carla: 0.9.10-1
Carlaviz: 0.9.10
I am getting a Launch backend and refresh issue. I am attempting to run Carla and Carlaviz on an Azure Linux vm and use Carlaviz to stream the sessions to a website connected to the virtual machine. I have both Carla and Carlaviz running and can see Carlaviz in the browser at localhost:8080 working correctly.
When I connect to the website though and direct it to the Carlaviz portion all I can see is the Carlaviz message that says launch backend and refresh. Even though Carlaviz is running correctly when I view it directly on the vm.
Any help would be appreciated. Even if the response is that Carlaviz will not function correctly in the environment I am trying to use it in.
Thank you
The readme says that the environment IP variable for connecting is CARLA_SERVER_IP
but it'
s in fact CARLA_SERVER_HOST
.
Hey. I have the same issues as Issue:5 but I have the correct versions.
Versions
Carla: 0.9.9.2
Carlaviz: 0.9.9
What I am doing
./CarlaUE4.sh
docker run -it --network="host" --rm mjxu96/carlaviz:0.9.9
Result
./CarlaUE4.sh
4.24.3-0+++UE4+Release-4.24 518 0
Disabling core dumps.
docker run -it --network="host" --rm mjxu96/carlaviz:0.9.9
Make sure you have launched the carla server.
Launching backend.
2020-09-08 06:53:30 [INFO] Connecting to Carla Server on localhost:2000...
2020-09-08 06:53:30 [INFO] Connected to Carla Server, Server version is: 4dc4cb81
WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API WARNING: Client API version = 0.9.9
WARNING: Simulator API version = 4dc4cb81
2020-09-08 06:53:35 [INFO] Waiting for a drawing client to connect. Listening to port 8089....
2020-09-08 06:53:35 [INFO] Waiting for a frontend to connect. Listening to port 8081....
Backend launched.
Launching frontend
yarn run v1.22.4
warning package.json: No license field
$ webpack-dev-server --host 0.0.0.0 --disable-host-check --env.live --progress --hot --open
10% building 1/1 modules 0 activeℹ 「wds」: Project is running at http://0.0.0.0:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/carla/carlaviz/frontend
10% building 3/4 modules 1 active ...d/node_modules/source-map-loader/index.js!/home/carla/carlaviz/frontend/src/app.jsBrowserslist: caniuse-lite is outdated. Please run the following command: `yarn upgrade
67% building 771/809 modules 38 active ...node_modules/react-motion/node_modules/performance-now/lib/performance-now.jsFrontend launched. Please open your browser
ℹ 「wdm」: Hash: 0e269bd408f4fb0a1571
Version: webpack 4.42.0
Time: 20649m
Built at: 09/08/2020 6:54:00 AM
Asset Size Chunks Chunk Names
573fe91c6c748074195655e1f0159864.png 7.61 KiB [emitted]
bundle.js 9.36 MiB app [emitted] app
bundle.js.map 11.5 MiB app [emitted] [dev] app
Entrypoint app = bundle.js bundle.js.map
[0] multi (webpack)-dev-server/client?http://0.0.0.0:8080 (webpack)/hot/dev-server.js ./src/app.js 52 bytes {app} [built] [./node_modules/@deck.gl/core/dist/esm/index.js] 2.78 KiB {app} [built]
[./node_modules/@deck.gl/layers/dist/esm/index.js] 1.01 KiB {app} [built]
[./node_modules/@streetscape.gl/monochrome/dist/esm/index.js] 560 bytes {app} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {app} [built]
[./node_modules/react/index.js] 190 bytes {app} [built]
[./node_modules/streetscape.gl/dist/esm/index.js] 78 bytes {app} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {app} [built]
[./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:8080] (webpack)-dev-server/client?http://0.0.0.0:8080 4.29 KiB {app} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {app} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {app} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {app} [built]
[./src/app.js] 10.6 KiB {app} [built]
+ 1454 hidden modules
ℹ 「wdm」: Compiled successfully.
I hope you can help. Is it problematic that I am running inside a proxy?
Can I change the vehicle model in Carlaviz??
I executed the manual_control.py and Carlaviz, then I changed my vehicle model pushing the backspace button.
However, the vehicle model didn't change in the carlaviz.(localhost:8080)
I need this information because I want to add a new vehicle and run it.
Please help me
Hello, my host is ubuntu 18.04 and carla version is 0.9.9
And I follow the instuction of the readme run with rocker ,but unfortunately it doesn't work for me.
It seems that backend meet something wrong when it launch.
Make sure you have launched the carla server.
Launching backend.
2020-08-01 06:49:07 [INFO] Connecting to Carla Server on localhost:2000...
2020-08-01 06:49:07 [INFO] Connected to Carla Server, Server version is: 0.9.9
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
./run.sh: line 16: 6 Aborted (core dumped) ./carlaviz/backend/bin/backend ${CARLA_SERVER_IP} ${CARLA_SERVER_PORT}
Backend launched.
Launching frontend
yarn run v1.22.4
warning package.json: No license field
$ webpack-dev-server --host 0.0.0.0 --disable-host-check --env.live --progress --hot --open
10% building 1/1 modules 0 activeℹ 「wds」: Project is running at http://0.0.0.0:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/carla/carlaviz/frontend
93% after chunk asset optimization SourceMapDevToolPluginFrontend launched. Please open your browser
ℹ 「wdm」: Hash: 0e269bd408f4fb0a1571
Version: webpack 4.42.0
Time: 11520ms
Built at: 08/01/2020 6:49:26 AM
Asset Size Chunks Chunk Names
573fe91c6c748074195655e1f0159864.png 7.61 KiB [emitted]
bundle.js 9.36 MiB app [emitted] app
bundle.js.map 11.5 MiB app [emitted] [dev] app
Entrypoint app = bundle.js bundle.js.map
[0] multi (webpack)-dev-server/client?http://0.0.0.0:8080 (webpack)/hot/dev-server.js ./src/app.js 52 bytes {app} [built]
[./node_modules/@deck.gl/core/dist/esm/index.js] 2.78 KiB {app} [built]
[./node_modules/@deck.gl/layers/dist/esm/index.js] 1.01 KiB {app} [built]
[./node_modules/@streetscape.gl/monochrome/dist/esm/index.js] 560 bytes {app} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {app} [built]
[./node_modules/react/index.js] 190 bytes {app} [built]
[./node_modules/streetscape.gl/dist/esm/index.js] 78 bytes {app} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {app} [built]
[./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:8080] (webpack)-dev-server/client?http://0.0.0.0:8080 4.29 KiB {app} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {app} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {app} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {app} [built]
[./src/app.js] 10.6 KiB {app} [built]
+ 1454 hidden modules
ℹ 「wdm」: Compiled successfully.
we built our own docker image having only carlaviz in it and running the react client seperately and providing the serverURL accordingly. We found that this architecture works perfectly as well but the issue is when we have the carla and carlaviz running in remote server and provide the public serverURL to the two react server in the 2 different local system ,the carlaviz crashes i,e. there is no handshake taking place with the new request and old connection also breaks. does carlaviz is built to handle single connection or it can handle multiple request??. If it handles single connection how can we achieve to make it accept multiple connection.
I did everything and everything went right just like the instructions and in the video on youtube, but when I open http://localhost:8089/ in the browser I get this error message both in the browser and in the terminal saying : The WebSocket handshake Connection field is missing the upgrade token.
And I have no clue what's wrong !!
Help por favor if you know what may be wrong !!
Is carlaviz only for visualization ? Is there anyway to control the vehicles by sending control input to the server to steer/accelerate it? I couldn't find any related document to it. Please provide example or documentation if available.
Hi, wx9698,
thank you for your work with Carlaviz.
I noticed that the default port is 8080 as in:
"3. Open the localhost Open your web browser and go to http://127.0.0.1:8080/. carlaviz runs by default in port 8080. The output should be similar to the following."
Are there any ways to change this port to a different one directly from the Run command? (I wanted to change into 8003 as requested)
Thank you.
Hi, I'm using Carla Simulator built from source.
When I run Carla Simulator (make launch then hit play), then I run docker image with docker run -it --network="host" -e CARLAVIZ_HOST_IP=localhost -e CARLA_SERVER_IP=localhost -e CARLA_SERVER_PORT=2000 mjxu96/carlaviz:latest
I got this error in the browser
Hey,
I've just updated Carla simulator and Carlaviz version 0.9.9 to 0.9.10.1.
Since I upgraded, Carlaviz is not working.
I guess it is due to the version mismatch problem, simulator api version is 784d9b9f, not 0.9.10.1.
It is right that version mismatch cause this problem?
Anyone can run Carlaviz on 0.9.10.1?
(I ran Carla simulator before Carlaviz)
Could you tell me the license mode of carlaviz?
Thanks :)
Hello,
Anyone know what happened above? The status are below:
Thank You
Hi,
just like #6, I have the issue of my browser window staying empty exept for the message "CarlaViz Launch the backend and refresh". I have tried the fixes proposed in the two other issues, but they do not seem to work for me.
I am running both Carla and CarlaViz in a remote docker container and accessing the browser page through a VPN into their network.
My terminal output is:
Make sure you have launched the Carla server.
Launching backend.
cat: output.txt: No such file or directory
2023-02-14 16:28:24 [INFO] Connecting to Carla Server on 172.17.0.16:2000...
2023-02-14 16:28:24 [INFO] Connected to Carla Server, Server version is: 0.9.13
2023-02-14 16:28:24 [INFO] Waiting for a drawing client to connect. Listening to port 8089....
2023-02-14 16:28:24 [INFO] Waiting for a frontend to connect. Listening to port 8081....
Backend launched.
Launching frontend
Restarting nginx: nginx2023/02/14 16:28:25 [notice] 282#282: using the "epoll" event method
2023/02/14 16:28:25 [notice] 282#282: nginx/1.20.2
2023/02/14 16:28:25 [notice] 282#282: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
2023/02/14 16:28:25 [notice] 282#282: OS: Linux 5.4.0-91-generic
2023/02/14 16:28:25 [notice] 282#282: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023/02/14 16:28:25 [notice] 283#283: start worker processes
2023/02/14 16:28:25 [notice] 283#283: start worker process 285
2023/02/14 16:28:25 [notice] 283#283: start worker process 286
2023/02/14 16:28:25 [notice] 283#283: start worker process 287
2023/02/14 16:28:25 [notice] 283#283: start worker process 288
2023/02/14 16:28:25 [notice] 283#283: start worker process 290
2023/02/14 16:28:25 [notice] 283#283: start worker process 291
2023/02/14 16:28:25 [notice] 283#283: start worker process 292
2023/02/14 16:28:25 [notice] 283#283: start worker process 293
2023/02/14 16:28:25 [notice] 283#283: start worker process 294
2023/02/14 16:28:25 [notice] 283#283: start worker process 296
2023/02/14 16:28:25 [notice] 283#283: start worker process 297
2023/02/14 16:28:25 [notice] 283#283: start worker process 298
2023/02/14 16:28:25 [notice] 283#283: start worker process 299
2023/02/14 16:28:25 [notice] 283#283: start worker process 301
2023/02/14 16:28:25 [notice] 283#283: start worker process 302
2023/02/14 16:28:25 [notice] 283#283: start worker process 303
2023/02/14 16:28:25 [notice] 283#283: start worker process 304
2023/02/14 16:28:25 [notice] 283#283: start worker process 305
2023/02/14 16:28:25 [notice] 283#283: start worker process 307
2023/02/14 16:28:25 [notice] 283#283: start worker process 308
2023/02/14 16:28:25 [notice] 283#283: start worker process 309
.
2023/02/14 16:28:25 [notice] 283#283: start worker process 310
Frontend launched. Please open your browser
2023/02/14 16:28:25 [notice] 283#283: start worker process 312
2023/02/14 16:28:25 [notice] 283#283: start worker process 313
2023/02/14 16:28:25 [notice] 283#283: start worker process 314
2023/02/14 16:28:25 [notice] 283#283: start worker process 315
...............bunch more of these..............
2023/02/14 16:28:25 [notice] 283#283: start worker process 545
141.83.86.40 - - [14/Feb/2023:16:29:20 +0000] "GET / HTTP/1.1" 200 266 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
141.83.86.40 - - [14/Feb/2023:16:29:21 +0000] "GET /bundle.js HTTP/1.1" 200 3222259 "http://141.83.108.201:49316/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
141.83.86.40 - - [14/Feb/2023:16:29:21 +0000] "GET /573fe91c6c748074195655e1f0159864.png HTTP/1.1" 200 7788 "http://141.83.108.201:49316/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
141.83.86.40 - - [14/Feb/2023:16:29:21 +0000] "GET /favicon.ico HTTP/1.1" 404 555 "http://141.83.108.201:49316/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
141.83.86.40 - - [14/Feb/2023:16:29:23 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
141.83.86.40 - - [14/Feb/2023:16:38:18 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
2023-02-14 16:42:44 [INFO] Drawing client 0 connected
I am especially curious about the line cat: output.txt: No such file or directory
right after the Backend tries to start. After this nginx seems to restart - I am not sure if this is the desired chain of events. Is the backend maybe crashing while it starts?
Thanks
Hey everyone,
I would like to collect some ideas from you about new features and bug fixes for CarlaViz 0.9.14. Please leave some comments in this discussion if you have any idea.
HI,
I am trying to proceed with the project of sending carlaviz to actual cars in real time.
I have a 'rosbag' file with vehicle sensor values, but I would like to know how to use it.
This 'rosbag' file contains data for lidar.
I wanted to create an object in 'carlaproxy.cpp', but I'm having trouble connecting it with a pointer.
When I try to apply such static data to carlaviz, I wonder which "cpp" file I have to touch. And could you tell me about the process?
Today my server runs the carla server notebook runs the docker carlaviz, but has been saying that the server is not open, I ran the carla's own manual.control.py can run, but carlaviz can not run .help sincerely
my order:
docker run -it --network="host" -e CARLAVIZ_HOST_IP="192.168.31.208" -e CARLA_SERVER_IP="192.168.31.249" -e CARLA_SERVER_PORT=2000 mjxu96/carlaviz:0.9.13
Make sure you have launched the Carla server.
Launching backend.
cat: output.txt: No such file or directory
2022-04-17 10:01:10 [INFO] Connecting to Carla Server on localhost:2000...
Backend is not launched. Please check if you have already started the Carla server.
Killed Backend process 7
I haven't worked a lot with carlaviz and was wondering about the capabilities of adding my own graphic elements to the visualization. I found that the carla painter supports drawing polylines, points and text, but no polygons. The backend uses xviz for the drawing, which does support polygons, circles, images and whatnot. Is there a reason for this limitation that I should know of or could I simply extend the functionality? Or is this even already planned/implemented?
follow the CarlaViz example, when I run example.py, the UE4Editor will consume all memory(31G).
[2022.02.25-16.22.31:555][ 32]LogVulkanRHI: Warning: Failed to allocate Device Memory, Requested=10.00Kb MemTypeIndex=7
[2022.02.25-16.22.31:555][ 32]LogVulkanRHI: Warning: Failed to allocate Device Memory, Requested=8192.00Kb MemTypeIndex=7
[2022.02.25-16.22.31:555][ 32]LogVulkanRHI: Warning: Failed to allocate Device Memory, Requested=10.00Kb MemTypeIndex=7
[2022.02.25-16.22.31:555][ 32]LogVulkanRHI: Warning: Failed to allocate Device Memory, Requested=8192.00Kb MemTypeIndex=7
[2022.02.25-16.22.31:555][ 32]LogVulkanRHI: Warning: Failed to allocate Device Memory, Requested=8.00Kb MemTypeIndex=7
[2022.02.25-16.22.31:555][ 32]LogVulkanRHI: Warning: Failed to allocate Device Memory, Requested=5488.00Kb MemTypeIndex=7
[2022.02.25-16.22.31:558][ 32]LogVulkanRHI: Warning: Failed to allocate Device Memory, Requested=8192.00Kb MemTypeIndex=7
[2022.02.25-16.22.31:558][ 32]LogVulkanRHI: Warning: Failed to allocate Device Memory, Requested=2.00Kb MemTypeIndex=7
memory released when stop example.py.
ubuntu 20.04, carla 0.9.13, carlaviz docker image latest.
RTX2080ti, mem:32G
In some cases, pure black image is shown regularly in the camera image stream(like once a second, a pure black image is shown followed by correct camera image, and so on....)
Hi,
thanks for your great work! I tried and success! but I found a small bug, when change the connector_port, it seems that only change the backend service ip, while the frontend still use the default 8081 to connect a websocket. I think they should change simultaneously.
Hi Mjxu96,
Thank you for the contribution. I noticed the frontend receives only 2 or 3 frame per second. I want to know how to improve the frame rate of the camera video.
hi, Will you release a new docker which fix for carla version 0.9.12
Helo!
Thanks to your repo. I can visualize example data(example.py) in web application.
ubuntu : 18.04
carla-simualtor : 0.9.9
installation : using docker image
So, I want to customize my lader, lidar, camera data.
But, I installed carlaviz using docker image, where can I find backend folder & sensor-related-folder?
Thanks.
Currently, the pull command docker pull mjxu96/carlaviz:0.9.13
fails since the tag 0.9.13
is missing.
Frontend launched. Please open your browser
2021-04-28 02:34:59 [INFO] Waiting for a drawing client to connect. Listening to port 8089....
2021-04-28 02:34:59 [INFO] Waiting for a frontend to connect. Listening to port 8081....
2021-04-28 02:38:06 [INFO] Frontend connection closed
2021-04-28 02:38:07 [INFO] Frontend connection closed
2021-04-28 02:38:08 [INFO] Frontend connection closed
2021-04-28 02:38:09 [INFO] Frontend connection closed
2021-04-28 02:38:54 [ERROR] Connection reset by peer
carlaviz started, and after a while, port 8081 is closed with the above error message printed. both 0.9.10 and 0.9.11 have this issue.
hello,
I try to use carlaviz with source build and follow the source build instruction, but fail with below error:
RECAST_COMMIT=cdce4e1a270fdf1f3942d4485954cc5e136df1df could not be retrieved, seems no these branch in github. and I change to the master version(RECAST_COMMIT=c5cbd53024c8a9d8d097a4371215e3342d2fdc87)and build again. another error occurred.
error: ‘struct dtCrowdAgentParams’ has no member named ‘obb’
params.obb[0] = box_corner1.x;
is this issue really related to RECAST version? if it is, can you share the expect version to me?
Hello @mjxu96 ,
thanks for providing this amazing tool.
I am running the carlaviz docker (0.9.12) on a Ubuntu server and want to remap port 8081 to something else (e.g. 8082, since 8081 is busy on my windows host machine). It seems with "docker run --net=host" the port mapping will be ignored (according to https://docs.docker.com/network/host/).
Do you have any suggestions to how to map the port? Thx in advance!
P.S.: I thought port-forwarding on my host Windows machine with
"start /b ssh -L 8080:[server_ip]:8080 -L 8082:[server_ip]:8081 -L 8089:[server_ip]:8089 -f -N [user]@[server_ip]" could help . However, I can only see empty carlaviz in my browser. Is it mandatory to connect local 8081 to [server_ip]:8081?
Best regards,
Yue
./backend/bin/backend
2021-11-08 23:47:57 [INFO] Connecting to Carla Server on localhost:2000...
2021-11-08 23:47:57 [INFO] Connected to Carla Server, Server version is: 0.9.12-1-gbb4b95e
WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API
WARNING: Client API version = 0.9.11
WARNING: Simulator API version = 0.9.12-1-gbb4b95e
段错误 (核心已转储)
will you release carlaviz for Carla version 0.9.14?
use the latest version (0.9.13), and the test code is as follow:
import time
import carla
from carla_painter import CarlaPainter
client = carla.Client('localhost', 2000)
client.set_timeout(2.0)
painter = CarlaPainter('localhost', 8089)
painter.draw_texts("hihi",[7.0, 8.0, 9.0])
time.sleep(200)
carla client and carla-viz were started as default, but the "hihi" is show as
is this right?
I'm trying to run Carla with Sumo and Carlaviz. I've managed to synchronize Carla (client) and Sumo (server), so the vehicles move in Carla based on the routes from Sumo. However, all the traffic lights in Carlaviz are green instead of following the traffic light logic from Sumo. When I run the run_synchronization.py the traffic light manager is Sumo. Shouldn't those changes be depicted on Carlaviz too? I'm using Carla 0.9.11 and Sumo 1.7.0.
Similar to issue 5 at #5, except we are using Carla 0.9.9.2. Just like in Issue 5, we navigate to localhost:8083 but still have the "Launch the backend and refresh" issue.
Output is below, noting that we don't have the same error that closes the backend:
Make sure you have launched the carla server.
Launching backend.
2020-08-04 14:56:01 [INFO] Connecting to Carla Server on localhost:2000...
2020-08-04 14:56:01 [INFO] Connected to Carla Server, Server version is: 4dc4cb81
WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API
WARNING: Client API version = 0.9.9
WARNING: Simulator API version = 4dc4cb81
2020-08-04 14:56:03 [INFO] Waiting for a drawing client to connect. Listening to port 8089....
2020-08-04 14:56:03 [INFO] Waiting for a frontend to connect. Listening to port 8081....
Backend launched.
Launching frontend
yarn run v1.22.4
warning package.json: No license field
$ webpack-dev-server --host 0.0.0.0 --disable-host-check --env.live --progress --hot --open
10% building 1/1 modules 0 activeℹ 「wds」: Project is running at http://0.0.0.0:8083/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/carla/carlaviz/frontend
ℹ 「wdm」: Hash: 24084e845cfb1f730fbb
Version: webpack 4.42.0
Time: 6970ms
Built at: 08/04/2020 2:56:16 PM
Asset Size Chunks Chunk Names
573fe91c6c748074195655e1f0159864.png 7.61 KiB [emitted]
bundle.js 9.36 MiB app [emitted] app
bundle.js.map 11.5 MiB app [emitted] [dev] app
Entrypoint app = bundle.js bundle.js.map
[0] multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./src/app.js 52 bytes {app} [built]
[./node_modules/@deck.gl/core/dist/esm/index.js] 2.78 KiB {app} [built]
[./node_modules/@deck.gl/layers/dist/esm/index.js] 1.01 KiB {app} [built]
[./node_modules/@streetscape.gl/monochrome/dist/esm/index.js] 560 bytes {app} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {app} [built]
[./node_modules/react/index.js] 190 bytes {app} [built]
[./node_modules/streetscape.gl/dist/esm/index.js] 78 bytes {app} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {app} [built]
[./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:8083] (webpack)-dev-server/client?http://0.0.0.0:8083 4.29 KiB {app} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {app} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {app} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {app} [built]
[./src/app.js] 10.6 KiB {app} [built]
+ 1454 hidden modules
ℹ 「wdm」: Compiled successfully.
Frontend launched. Please open your browser
I can confirm the version using apt-cache
, as follows:
$ apt-cache policy carla-simulator
carla-simulator:
Installed: 0.9.9.2-1
Candidate: 0.9.9.2-1
Version table:
*** 0.9.9.2-1 500
500 http://dist.carla.org/carla-0.9.9 all/main amd64 Packages
100 /var/lib/dpkg/status
Is it possible that this 0.9.9.2-1
is somehow different than 0.9.9.2
? Has anyone else had this issue and found a way to fix it? I should also note that the simulator version is listed as 4dc4cb81
, which I found strange. If anyone else is having this issue, we may be able to find a solution together here
I am trying to use CarlaViz with Carla 0.9.14.
Nothing gets displayed in the browser.
When i try to run the example.py of the latest carlaviz release, I get the following error and cant figure out what the issue might be.
Do you have any idea? Does it have to do with the newer Carla version?
Best regards,
Martin
CARLA 0.9.11 running remotely on ubuntu 20.04 with docker on port 2000 using below command:
docker run -it --privileged --gpus all -p 2000:2000 -p 2001:2001 -p 2002:2002 -v /tmp/.X11-unix:/tmp/.X11-unix:rw carlasim/carla:0.9.11 /bin/bash
which works perfectly fine and after which I run SDL_VIDEODRIVER=offscreen ./CarlaUE4.sh -nosound
for headless carla server start which gives following output with a harmless warning:
4.24.3-0+++UE4+Release-4.24 518 0
Disabling core dumps.
sh: 1: xdg-user-dir: not found
Finally, I start the carlaviz docker container using:
docker run -it --network="host" -e CARLAVIZ_HOST_IP=localhost -e CARLA_SERVER_HOST="remote-machine-domain" -e CARLA_SERVER_PORT=2000 mjxu96/carlaviz:0.9.11
which runs fine:
Make sure you have launched the Carla server.
Launching backend.
2022-02-14 11:48:56 [INFO] Connecting to Carla Server on "remote-machine-domain":2000...
2022-02-14 11:48:56 [INFO] Connected to Carla Server, Server version is: 0.9.11
Backend launched.
Launching frontend
* Restarting nginx nginx [ OK ]
Frontend launched. Please open your browser
2022-02-14 14:41:01 [INFO] Waiting for a drawing client to connect. Listening to port 8089....
2022-02-14 14:41:01 [INFO] Waiting for a frontend to connect. Listening to port 8081....
Install carla client:
pip install carla-client-unofficial==0.9.11
and run python3 exapmle.py
from carlaviz repo which has the below issue:
[INFO] [PAINTER] [2022-02-14 20:11:11,688] : Begin to connect to drawing server at localhost:8089
[INFO] [PAINTER] [2022-02-14 20:11:11,690] : Connected to drawing server at localhost:8089
connecting...
WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API
WARNING: Client API version = 0.9.11-1-gf3282be1
WARNING: Simulator API version = 0.9.11
getting world
Traceback (most recent call last):
File "example.py", line 27, in main
spawn_points = world.get_map().get_spawn_points()
RuntimeError: time-out of 10000ms while waiting for the simulator, make sure the simulator is ready and connected to "remote-machine-server":2000
Any idea what might be causing this issue?
Hey,
many thanks for creating this tool. I struggled by setting up your latest version of carlaviz with the carla version 0.9.13. You're using a conan repository for the carla dependency, may you can add carla 0.9.13 ? Or explain in a little readme how your new build system works? Or does carlaviz not working when the carla version downgrades? I would like to create a DockerFile to integrate this project into another project which we made from university.
Kind Regards
Thank you for your great work on carlaviz!
Could you please add the licensing info to the repo?
Can you please add an option that the api can run on another port.
i would like to run carlaviz behind a reverse proxy and https without having to release port 8080.
Hi,
Im trying to run this with my compiled carla. But I cant get your backend to work, this is the following error I get while running:
WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API WARNING: Client API version = 0.9.9 WARNING: Simulator API version = 0.9.9-12-gb67ba6c3-dirty terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc ./run.sh: line 16: 6 Aborted (core dumped) ./carlaviz/backend/bin/backend ${CARLA_SERVER_IP} ${CARLA_SERVER_PORT}
As you can see the version is right, my compiled one just has extra things on it (Not sure why) But im sure its 0.9.9
Running from official dockers
carla:0.9.10.1
carlaviz:latest
carla:0.9.10.1 has sumo 1.8 installed via
RUN add-apt-repository ppa:sumo/stable
RUN apt-get install -y sumo
ENV SUMO_HOME=/usr/share/sumo
After carla and carlaviz have loaded, try to change the map (assuming Town01 is not loaded):
python config.py --map Town01 --host ...
Carlaviz stops working, and the log is continuosly spamming messages
2021-03-05 14:35:28 [WARNING] all traffic lights should be inserted first
2021-03-05 14:35:28 [WARNING] Stop sign 269 should be added first.
Is switching maps supposed to work?
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.