PythonAPI
PythonAPI copied to clipboard
Problem with connection to Apollo 5.0 Dreamview
Hi, I am having troubles at connecting the simulator to Apollo 5.0 by means of Python API. I typed "ego.connect_bridge("localhost", 9090)" in order to connect the bridge and if I check the connection with "ego.bridge_connected" I receive True as output. As I open Dreamview though, It doesn't receive information about car initial position and map data. Can you help me? Thanks
@nike-96 Are you selecting the proper HD map and vehicle in dreamview and enabling localization?
There are many possible issues, including firewall issues and other subtle configuration issues. Please check our Apollo hands-on tutorial to see if that helps you as there are some troubleshooting tips there.
You can check cyber-monitor to see if localization data is being received, and if you selected an "interactive" simulation be sure that you have clicked the "play" button in the simulator to actually enable the simulation (and transmission of sensor data).
Ok I have solved the issue, thanks. Now I can see the path of the car on Dreamview too, but I can't select the module "CanBus" (it temporarely checks, but after a while it goes away); I have controlled and the sensor is present (I am using the Lincoln2017MKZ) and it is enabled. What could be the problem?
@nike-96 sorry for the late reply. You don't need to enable the CanBus sensor (or any sensor for that matter) in Apollo when using it with the simulator. We have simulated the CanBus sensor inside the simulator and it will be enabled and publishing as long as you include it in the json config for the simulator and the Cyber bridge is running.