GithubHelp home page GithubHelp logo

mjxu96 / carlaviz Goto Github PK

View Code? Open in Web Editor NEW
243.0 7.0 58.0 3.11 MB

Visualize carla in the web browser

License: MIT License

CMake 1.36% Dockerfile 0.92% Shell 0.30% C++ 84.23% HTML 0.20% JavaScript 9.65% CSS 1.32% Python 2.02%
carla browser visualization remote cloud

carlaviz's Introduction

CarlaViz Build Status Deployment

Visualize carla in the web browser.

nothing

Version Supported

Platform Supported Carla Version Docker/Source
Ubuntu 0.9.6 - 0.9.15 Docker image and source
Windows 0.9.9.2 - 0.9.15 Docker image and source

Instructions

Docker image

Docker image is provided. Run following command to pull this image (including frontend and backend).

# pull the image based on your carla version
docker pull mjxu96/carlaviz:0.9.15

How to run it?

Here is a simple example to run it.

Build from source

Although the container image is out-of-box to use, you are also welcome to build on your own!

Refer to this page for building instructions.

Contribution

Please read this.

Author and Collaboration

Minjun Xu [email protected]

Please contact me via email if you want more collaborations.

carlaviz's People

Contributors

anonymous-submission-conf avatar jewes avatar kael53 avatar luminarlenz avatar mjxu96 avatar umateusz avatar wuhanstudio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

carlaviz's Issues

Carla 0.9.13 in remote Docker: "Launch the backend and refresh"

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

Connection to Carla Server is failed - Carla 0.9.12

carlaviz_issue

Hello,

Anyone know what happened above? The status are below:

Thank You

Newest CarlaViz Version with old Carla Version

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

Apply static data to Carlaviz

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?

add different port option

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.

small bug in parameters setting

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.

failed with source build

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?

Can't display carla information just frontend, using Carla 0.9.9.2

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

carlaViz with carla 0.9.14

I am trying to use CarlaViz with Carla 0.9.14.
image
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.
image

Do you have any idea? Does it have to do with the newer Carla version?

Best regards,
Martin

Carlaviz is not working in 0.9.10.1 version

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)

carlaviz error

Can I run separately, the server runs the carla server notebook runs the docker carlaviz

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
question

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

Draw polygons with carla painter

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?

How to remove the graphics of these buildings

image
carla: 0.9.14
carlaviz: 0.9.14
These buildings block the perspective of the car, how should we remove them?
I am a beginner who has just used Carlar. If you can answer, thank you very much。

Buildings too high

I'm not really sure why this is. But i have updated my carla version to 0.9.14, then I updated the carlaviz version to match. Now when a map is loaded, the buildings seem very high.
Screenshot from 2023-08-02 15-29-20

lmk if i can be of any further assist.

Have a lovely day!

bug in readme.

The readme says that the environment IP variable for connecting is CARLA_SERVER_IP but it'
s in fact CARLA_SERVER_HOST.

time-out while waiting for the simulator

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?

carla out of memory

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

All traffic lights in carlaviz turn green

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.

Launch backend and refresh

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

How can I customize my lader, lidar, camera data?

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.

Low frame rate of the video

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.

CMake Error: include could not find load file

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

carlaviz 8081 port closed after a while in k8s env

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.

Can't display carla information just frontend in http://127.0.0.1:8080/

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.
image

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.

does the "y" position misstakely flipped?

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?

broken when changing map

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?

sending vehicle control input to server

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.

Unable to see Carlaviz on the web browser

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:

  1. ./CarlaUE4.sh
  2. Pull and launch docker image
    status:
    docker pull mjxu96/carlaviz:0.9.9
    0.9.9: Pulling from mjxu96/carlaviz
    Digest: sha256:d3e64f97afe0bf158f4897c262e1a271b8737ee8521fb2ae554243ada7afe5bd
    Status: Image is up to date for mjxu96/carlaviz:0.9.9
  3. docker on Linux and Carla server is running on localhost:2000
    docker run -it --network="host" -e CARLAVIZ_HOST_IP=localhost -e CARLA_SERVER_IP=localhost -e CARLA_SERVER_PORT=2000 mjxu96/carlaviz:0.9.9
4. Open the localhost: http://127.0.0.1:8080/ 5. python3 spawn_npc.py -n 10 -w 5 ERROR: Spawn failed because of collision at spawn position ERROR: Spawn failed because of collision at spawn position spawned 10 vehicles and 3 walkers, press Ctrl+C to exit. 6. python3 manual_control.py

Finally, Unable to see Carlaviz on the web browser.

Thanks & Regards,
Saravanan

carlaviz
While_Simulation
While_Simulation1

Frontend does not connect to backend when Carla is running on another machine

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?

Websocket connection to 127.0.0.1:8081 failed

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
Screenshot from 2021-10-26 11-25-33

This is output from sudo netstat -nlp
Screenshot from 2021-10-26 11-29-32

This is output from netstat -int
Screenshot from 2021-10-26 11-29-44

No visualization from CARLA

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?

0.9.12 for Carla viz

./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
段错误 (核心已转储)

New Vehicle

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

carlaviz stops/crashes when multiple frontend react server request for connection

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.

License

Thank you for your great work on carlaviz!
Could you please add the licensing info to the repo?

Version mismatch issue

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

Port mapping for Carlaviz

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

Changing port

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.

No map visualization in CarlaViz

I've tried the instructions here and here with docker, but the map doesn't seem to visualize on the front end (see image below). Everything else seems to be working (camera visualization, sensor data, etc.)

Versions
Carla: 0.9.9.4
CarlaViz: 0.9.9

image

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.