-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
Configur lidar camera in 0.9.1 #995
Comments
Hi @bigsheep2018, Please check out #835. The 3D bounding box can be retrieved from the vehicle actor in Python. For instance, for vehicle in world.get_actors().filter('vehicle.*'):
print(vehicle.bounding_box) |
Hello @nsubiron , I have checked the #835 and figure out how to change the configuration in Deprecated/PythonClient/client_example.py and manual_control.py however, the server crashed down when I tried to run these examples under Deprecated/PythonClient/. Btw, I can run the examples under PythonAPI/ without any errors. Thanks in advance, |
The files under "Deprecated" folder are not compatible with the last version, we're just keeping them until we port everything to the new API. You should see the examples in "PythonAPI". In the new API you can adjust the frequency in the lidar blueprint bp = blueprint_library.find('sensor.lidar.ray_cast')
bp.set_attribute('rotation_frequency', '10') |
I see. Thanks. This helps a lot. |
Yes, take a look at how the current lidar is implemented at RayCastLidar.h. For a bit more details on how the sensor system works, there is a mini tutorial in #830. |
Hello @nsubiron, I follow your instruction and create another lidar camera in UE4 which derived from ASensor. Register the class in SensorRegistry.h: Basically, I copy the code from RayCastLidar.h/.cpp except that I modify the class name to 'ARayCastLidarV2' and the Definition "MakeLidarDefinition(TEXT("ray_castv2")". Then I try to find the camera in PythonAPI/manual_control.py The result turns out that it cannot find it by this id: May I know if there is anything wrong? Thanks |
Update: But there is another error coming out when I try to run manual_control.py: This happens right after I try to get the lidar image from the server, namely, this function: As I copy the code from RayCastLider.h/.cpp, I am assuming the data serialization and deserialization should be fine for this case, which means the client side should display exact the same lidar image as the original lidar camera displays (I have two lidar camera with same configuration) It seems there is something wrong when I try to get the lidar image from the second lidar camera. Thanks. |
The msgpack serialization is only used for the RPC channel, I would say is not an issue of the serialization of the point cloud but something else. Could you get a stack trace for the exception? You can run the client with GDB
then |
hello @nsubiron ,
|
Btw, @nsubiron May I know where to initialize the (default) descriptions of the lidar sensor (eg. channels, RotationFrequency, etc) from the server side and when will CreateLasers() would be called? Thanks. |
I see, that doesn't give much info. Can you try to catch the exception? with The set function, |
@nsubiron I may possibly work on creating another camera later. I have checked the previous issues like #770 #293 #392, but get no exact solution as the python api in 0.9.1 possibly has possibly be changed a lot. Thanks |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, can you tell what all attributes are present in the LIDAR sensor blueprint? I want to capture LIDAR in a frame similar to other sensors, i.e. through a dashboard camera for point cloud registration between the LIDAR points and semantic segmentation images. Can you tell me how do I have to configure my LIDAR sensor for that? |
Is it possible to save lidar data as .pcap file using carla? |
Hello,
I build the source of 0.9.1 and run the manual_control.py.
I tried to save the point clouds to my disk and found the point cloud is not 360-degree covered.
Like:
May I know how/where to configure the lidar camera such that it could cover the entire 360-degree environment?
And please tell me how to obtain the 3d bounding box or 2d bev bounding box of different objects(e.g., car)
The text was updated successfully, but these errors were encountered: