-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting destination of apollo not from DreamView / How to create record file #14809
Comments
What I've tried for the questions until now: Destination setting -> Help WantedAfter the investigation, I got to know the way to set destination via websocket: import json
from websocket import create_connection
ip = 'xxx.xxx.xxx.xxx'
port = 'yyyy'
url = "ws://" + ip + ":" + port + "/websocket"
msg = {
"type": "SendRoutingRequest",
"start": {
"x": 92.36650848388672,
"y": -36.36920928955078,
"z": 0,
"heading": -3.141588392532049,
},
"end": {"x": 92.82344955910465, "y": -38.1568439287467, "z": 0},
"waypoint": "[]",
}
ws = create_connection(url)
ws.send(json.dumps(msg))
print(ws.recv()) However, there are no changes on Dreamview UI. msg = {"type": "HMIAction", "action": "CHANGE_MAP", "value": 'Carla Town01'} and it worked properly. But I could not know why that routing request doesn't work!! Creating record file -> RESOLVEDI could find the link on the |
I found the reason: starting point and heading should be same with the current location of ego vehicle. |
Hi,Kim-mins, I also use the carla-apollo-bridge like u. I want to know whether you get the start point by using the cyber_monitor to get the ego vehicle pose. I also want to know how you get the heading. Thanks for your patience. |
Hi @Cyrus-k! |
Thank you for your reply. Now I can get the exact point of the ego vehicle. And I still have a question. Could you tell me how to start the simulation without clicking on the 'setup' button? When I send routing request, the dreamview shows a red line just like I click on the dreamview. But if I want to move the car in Carla simulator, I have to turn on the sim control and the control module. Then the car in Apollo and the car in Carla cannnot move together, it looks like there's something wrong with sim control in the guardstrike bridge.(from: https://github.com/guardstrikelab/carla_apollo_bridge). Can you tell me how you start the simulation by using command line? Thank you very much again! |
@Cyrus-k Good news! I do have a question to you. Did you successfully run Apollo 8.0 on Carla? or just 7.0? If it is 8.0, could you please describe the way to run it with Carla to me? |
Sorry, I just run Apollo 7.0 with Carla 0.9.13. I haven't tried this bridge with Apollo 8.0 till now. |
@Cyrus-k I see.. same situation.. thanks. |
@Kim-mins Thanks for your helping. I do have a question for you. Do you mean that you write some codes like https://github.com/lgsvl/PythonAPI/blob/a1d1524f684d48b3633d60e9d5e9b325932b84b0/lgsvl/dreamview/dreamview.py so that you can run the whole simulation without any click on dreamview? I know I can set_destination but I am now puzzled of starting the co-simulation. Can you tell me your experience? |
@Cyrus-k What I understood was, you cannot enable modules automatically when you initialized apollo. {"type": "HMIAction", "action": "START_MODULE", "value": "Routing"} |
Sorry, maybe I don't explain the question very well. But according to your description, It seems that if I set the modules right and set ego vehicle,destination and send routing request, then the co-simulation will start. But I read the instructions in guardstrike respository, after it sent the routing request, I have to click the 'setup' button. Is that true that when I set the modules, ego vehicle, destination and send the routing request, carla and apollo will work together and I will see the car moving in the dreamview? |
@Cyrus-k Yes I remember that I could run it without clicking the setup button. |
@Kim-mins Hello, I also encountered similar problems after installing carla0.9.1 and apollo7. I just use the following steps:
|
Hi @fpeanut. |
I just open a PR for carla_apollo_bridge, adding a feature to set destination by dreamview websocket. |
System information
apollo.sh config
if onmaster
branch:Questions:
HI I'm new to apollo and I followed the installation instructions and successfully ran the record file(of the tutorial!)
I'm currently using bridge(from: https://github.com/guardstrikelab/carla_apollo_bridge) with apollo, and I got two questions on apollo
1. How can I set the destination for apollo? (other than via DreamView)
To the best of my knowledge, the only way I found for the destination setting is providing destination from DreamView, with Route Editing -> Add Point of interest. But I believe there is the way to provide the destination point via command line or some other way. Could you please tell me how I can set the destination?
2. How can I create record file?
I could know I can run a record file from the tutorial, but I wonder how can I create a record file. There seems a tab for recording on DreamView, but I don't know how to use it. Could you please help?
The text was updated successfully, but these errors were encountered: