Commit Graph

122 Commits

Author SHA1 Message Date
LuisPoveda 8ce4ca9ed3
Ros2 (#6862)
* Adding ROS2 manager

* Trying to compile fastDDS in windows, but have problems with dependencies

* Camera sensors connected to ROS2, dependencies disabled temporaly

* Including enum with sensors list

* adding GNSS sensor capture

* adding IMU sensor capture

* adding DVS sensor capture

* adding Lidar sensor capture

* adding SemanticLidar and Radar capture

* adding ObstacleDetector and some fixes

* modify cmakelists, failed to find libatomic

* fixed libatomic

* compile fast-dds with libc++

* fixed compliation fast dds with libcxx

* linked carla with fastdds

* Fixed Fast-DDS lib
Now its compiled to a intermediate lib with a bridge so libstdc++ can be used

* moved all ros2 deps to ros2 folder
renamed types from .cxx to .cpp

* Finally FastDDS compiled and working inside CARLA

* exposed publish function for testing

* fixed code style

* make ros2 optional

* make ros2 optional

* Added defines to compile ROS2 code

* ros image publisher working

* deleted some buffer copies

* Added more topics  and ROS2 types

* Adding sensor Transform as argument, and add function to send buffer or serialize and send buffer

* Removing empty buffer from DVS sensor

* fixed lidar publisher

* fixed lidar publisher

* Fix buffer of RGB in ROS2

* adding timestamp of each frame into ROS2 manager

* sending timestamps with frame to ROS2

* put apart timestamp from frame counter call

* adding BufferView to share buffers

* adding BufferView to share buffers

* adding ros_name attribute to all actors

* mapping ros_name for each actor

* ROS2 is now published in a different thread
Publishers now can be created on demand and be reused
Added subscriber for ego vehicle
Fixed build scripts

* forgot to add this fix

* add ros2 to windows scripts

* fixed default ros topic names

* fix topic name duplication

* Adding functions for enable/disable sensors publishing without listen to it

* Added Camera info and ROI types
RGB Camera now publishes in both topics

* move camera info immutable data to the constructor

* Publish transform for all topics
Create Camera DVS subtopics
Fixed bug with Lidar

* Added flip Y to semantic lidar

* Adding callbacks for subscribers from Unreal

* Adding camera info to ROS2 (resolution and FOV)

* Finished ROS2 naming from python

* Fixed bug with ros names

* Delete topics when deleting the sensors

* setting the rosname same as default no longer rewrites it

* ROS transform fix

* Added all camera topics with the image and camera info
Added vehicle control
Added clock publisher

* Change ros2 topic names for vehicle subscriber and  clock publisher

* Rename vehicle control ros2 topic name

* rename subscriber type to CarlaEgoVehicleControl

* Fix semantic lidar default ros name
Fix sizeof the semantic lidar data buffer

* Changed controller stored as string to pointer

* Back to previous version for default hero ros name
Removed debug prints

* Remvoe callback when ego publisher disconnects

* Serializing DVS data before sending to ROS

* dvs camera image and lidar

* DVS Pointcloud publishing

* Remove unnecessary fields

* Send local transforms to ros

* avoid transform recalculation if not needed

* Optical Flow Camera fixed

* Set fixed branch for Fast-DDS to avoid cmake version change issues

* Finally Working on package

* Fix style from FastDDS auto generated files

* Added ros2 to ubuntu in jenkins

* removed ros2 from jenkins, test

* restore ros2 in jenkins

* fix copy shareds, and removed server dependency from libcarla

* test installing the fastdds dependencies in jenkins

* move installing deps to separate stage

* removed install deps

* Fixing test_benchmark_streaming

* Fixed imu orientation and camera info data

* Fixing test_benchmark_streaming.cpp with BufferView

* Removing DEBUG_ONLY()

* publish collision sensor

* Fixing unit-tests with the new BufferView

* camera info is set once

* Fix echo camera info

* fix transform rotation

* Fixing ros_name attribute creation

* fixed camera info and region of interest publish

* fix IMU compass

* Forgot to add ros2 flag to jenkins package

---------

Co-authored-by: bernatx <bernatx@gmail.com>
2023-11-06 12:34:07 +01:00
Axel cef4489d0f Upgraded boost 1.81 for linux 2022-12-20 13:18:34 +01:00
bernatx 9c9eda84bc Multi GPU first version 2022-07-21 13:24:02 +02:00
Armando Fandango 56b7bfb3f9 fixed the namespace resolution ambiguity with Server and Client class objects in tests 2022-03-31 13:05:49 +02:00
anrp 60709f506b Switch to boost::variant2
boost::variant only supports up to 20 types (MPL limit). boost::variant2
has no such limit; switch to it.
2022-03-28 12:35:11 +02:00
Marc Garcia Puig 0a837ff1a0 Fixed bad_weak_ptr + updated deprecated asio calls 2020-09-16 13:12:02 +02:00
bernat 9b716e1698 All streams are multi stream now 2020-06-30 13:12:22 +02:00
Néstor Subirón 172aa55186 Fix threads not properly stopped on streaming tests 2020-06-04 14:31:18 +02:00
victor.anton 34f993a7c9 Added Contains and Get(World/Local)Vertices to BoundingBox 2020-02-03 09:50:54 +01:00
nsubiron ab2f6f5bb6 Move third-party code in LibCarla to a third-party folder 2019-07-01 19:11:01 +02:00
nsubiron 0466081920 Prepare to upgrade to Boost 1.70 (not upgrading due to bug in Boost.Variant) 2019-05-03 12:53:43 +02:00
nsubiron 413737887f Increase timings for recurrent shared future test 2019-04-30 17:14:19 +02:00
nsubiron c54bba71db Better template deduction when posting tasks to the ThreadPool 2019-04-30 13:46:53 +02:00
nsubiron 6af462472a Merge both thread pool implementations into one 2019-04-30 13:46:53 +02:00
nsubiron 9b13ef9891 Reuse asio's hack in other places 2019-04-30 13:45:19 +02:00
nsubiron ebddbb6f39 Use other levels of asserts through code 2019-04-29 15:35:33 +02:00
nsubiron 75f1f8593b Fix narrowing conversions and add warnings for it 2019-04-29 15:35:33 +02:00
nsubiron 4f3b000225 Compile with more warnings enabled 2019-04-29 15:35:33 +02:00
Marc Garcia Puig 889b3b6a9f Fixed tests 2019-03-29 18:14:01 +01:00
nsubiron d657297770 Remove unused stuff 2019-03-29 17:19:46 +01:00
nsubiron d657c7551c Improve get_waypoint test 2019-03-26 17:29:40 +01:00
nsubiron b039388828 Fix location check 2019-03-26 17:27:36 +01:00
Marc Garcia Puig d8d399494e Merge branch 'marcgpuig/opendrive' into jenkins/opendrive 2019-03-26 14:35:19 +01:00
nsubiron 93ef05ab2e Improve iterate waypoints test 2019-03-26 02:12:15 +01:00
nsubiron 515eba75ab Add distance check 2019-03-26 00:10:39 +01:00
Marc Garcia Puig dd4897faa4 Added lane types to API 2019-03-25 23:52:46 +01:00
nsubiron ec3f2330ae Improve iterate waypoints test 2019-03-25 23:18:25 +01:00
Marc Garcia Puig 565d753505 Fixed Topology positive lanes 2019-03-25 17:39:18 +01:00
nsubiron 00d61d6a89 Add get waypoint test 2019-03-24 10:37:02 +01:00
Marc Garcia Puig 6c0f2a3405 Fixed tests 2019-03-23 22:30:01 +01:00
Marc Garcia Puig 4e1275ef4c backup with doubles 2019-03-22 23:50:45 +01:00
Marc Garcia Puig fa9828aced Merge remote-tracking branch 'origin/opendrive_testing' into marcgpuig/opendrive 2019-03-22 16:54:09 +01:00
bernatx 7f62ce5af8 Now road has vector of next and previous roads 2019-03-22 15:32:40 +01:00
nsubiron b8f9772022 Refactor to use section id and return by ref when possible 2019-03-22 13:08:42 +01:00
bernatx b8856d658b Add section.id to internal file 2019-03-22 12:50:22 +01:00
bernatx 122fc14470 Fixed previous lane pointers 2019-03-22 12:25:05 +01:00
bernatx 1d7250eed9 Minor changes 2019-03-21 18:30:02 +01:00
Manish 4d3698dcfa remove old junctions test function 2019-03-21 14:14:47 +01:00
bernatx f1c0e06593 Added road link test 2019-03-21 13:13:51 +01:00
Manish afd1d99cbb adding elevation and road mark parsing test 2019-03-21 12:52:11 +01:00
nsubiron 6de2406f3b Better output on test failure 2019-03-21 12:48:47 +01:00
nsubiron af436ef260 Increase version of test content 2019-03-21 12:03:58 +01:00
nsubiron 3ca71ec7d6 Add IsValid function for waypoints 2019-03-21 12:00:10 +01:00
nsubiron 547cb45e9c Add iterate waypoints test 2019-03-21 10:49:16 +01:00
Manish a8d6fb4b01 renamed file to test_opendrive 2019-03-21 10:12:44 +01:00
Marc Garcia Puig e75c3750dd Added informations to final data and fixed tests 2019-03-20 21:14:01 +01:00
Manish 4a5096699e Added Map getter for tests 2019-03-20 19:02:02 +01:00
Manish 38244345aa adding tests 2019-03-20 18:51:22 +01:00
bernatx 4e194a5a44 Fixes and Tests 2019-03-20 18:38:37 +01:00
nsubiron 424441d72c Add unit tests for xodr files 2019-03-19 22:41:42 +01:00