389 Commits

Author SHA1 Message Date
Rich Mattes
755f566356
pcl_ros: Use vec.data() instead of &vec[0] (#348)
Update pcl_ros to use the data() member function of STL containers to
get the pointer to the underlying storage, instead of dereferencing the
zeroth element and taking its reference.  When a container is of size 0,
dereferencing element 0 with operator[]() is undefined behavior, and
will trigger assertions when features like _GLIBCXX_ASSERTIONS are
enabled.

Fixes #333.
2021-09-27 14:28:26 -07:00
Steve Macenski
834eb111e8 bumping rolling from 2.3.1 to 2.4.0 2021-09-14 14:21:14 -07:00
Kenji Miyake
1a214ccc6e
Fix obsolete header (#342)
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
2021-08-30 11:08:25 -07:00
Steve Macenski
051c6df956
adding -fPIC compiler flag per warning suggestion (#335) 2021-07-01 16:54:20 -07:00
Steve Macenski
5d63abd06e
Revert "shared library bug fix (#331)" (#334)
This reverts commit 35a9f258487585e7a10e1d30a4d72f4b2f9bd16e.
2021-07-01 16:20:31 -07:00
Markus Vieth
461a66ca08
Use complete namespace for traits members (#332)
This prevents errors like this: error: ‘name’ is not a member of ‘pcl::detail::traits’; did you mean ‘pcl::traits::name’?
The error appears for newer PCL versions (everything after commit d39d3d3300), but this change should also be fully compatible with older PCL versions.
2021-06-30 12:44:28 -07:00
Patrick Musau
35a9f25848
shared library bug fix (#331)
Signed-off-by: Patrick Musau <pmusau13ster@gmail.com>
2021-06-28 09:37:50 -07:00
Steve Macenski
d63143da27 bump to 2.3.1 for release updates based on build farm fixes 2021-05-20 15:58:46 -07:00
Steve Macenski
4156c71c02
replace ament_cmake_ros with ament_cmake to build in build farm (#326) 2021-05-20 15:57:37 -07:00
Steve Macenski
487957aebc bumping to 2.3.0 for release 2021-05-20 13:34:08 -07:00
Markus Vieth
135a2c29e3
Correct conversion of time stamp (#319)
* Add test to verify that stamps are correctly converted

* Fix bug in fromPCL function for headers
The time stamp was not set.
2020-12-04 10:57:37 -08:00
Markus Vieth
2d21467423
Change conversions of Vertices for new PCL versions (#316)
In ad00c7bee2, the vertices field of pcl::Vertices changed from std::vector<std::uint32_t> to std::vector<pcl::index_t>, where index_t is an index type with configurable size (currently by default int). This commit makes conversions from and to pcl_msgs::Vertices possible again, moving the vector contents if possible.
2020-11-09 11:09:17 -08:00
Markus Vieth
706c020528
Deprecate use_polynomial_fit (#305)
The pcl function setPolynomialFit is deprecated, setPolynomialOrder should be used instead
2020-08-22 11:04:21 -07:00
Sean Kelly
d7a79b927f
Port transforms library to ROS2 (#301)
* Port transforms library to ROS2

- Port the transforms library to ROS2
- Update CMakeLists
- Update package.xml
- Enable the package

Signed-off-by: Sean Kelly <sean@seankelly.dev>

* Feedback from PR
2020-08-12 12:12:51 -07:00
Sean Kelly
420f5b032b
Make ament_cpplint pass (#298)
Collection of hand-made changes to make ament_cpplint pass consisting of:
- whitespace between comments
- line length
- header ordering
- include guard formats
- remove a couple `using namespace std;`
- using c++ casts instead of c-style casts

Signed-off-by: Sean Kelly <sean@seankelly.dev>
2020-08-09 16:47:21 -07:00
Sean Kelly
9689971aee
Make ament_flake8 pass (#299)
Set of hand-made changes to let ament_flake8 pass
2020-08-09 16:47:01 -07:00
Sean Kelly
63cee139f1
Apply ament_uncrustify --reformat (#297)
Signed-off-by: Sean Kelly <sean@seankelly.dev>
2020-08-06 12:28:29 -07:00
Sean Kelly
0ac6810688
Rename headers from .h to .hpp (#296)
* Rename headers from .h to .hpp per ROS2 guidelines

This change is the result of the following command run from pcl_ros dir:

$ find -name *.h | xargs -I {} mv {} {}pp

Signed-off-by: Sean Kelly <sean@seankelly.dev>

* Update internal includes for the renamed headers

This change was the result of the following bash script:

$ find -name *.h -o -name *.cpp -o -name *.hpp | xargs -I {} sed -i 's/\(pcl_ros\/.*\)\(h\)\([">]\)$/\1\2pp\3/g' {}

Signed-off-by: Sean Kelly <sean@seankelly.dev>
2020-08-06 11:13:01 -07:00
Markus Vieth
21cf907c46
Add missing include for new PCL versions (#293)
After this change 6df3e602a7 (diff-24324a084e511502d7f34054ec31b353L50), an explicit include for KdTree is needed.
It was formerly a transitive include via pcl/surface/mls.h - pcl/search/pcl_search.h - pcl/search/kdtree.h - pcl/kdtree/kdtree_flann.h.
2020-07-30 11:52:57 -07:00
Shivam Pandey
4ed0d3ecef
link pcl library to targets (#287)
* link pcl library to targets

* changes OS_CODE_NAME to focal in travis config file
2020-07-01 12:13:29 -07:00
Steve Macenski
5e27157ec2
Updating CI and versions for foxy release (#280)
* changing CI to foxy from eloquent

* increment up version
2020-05-13 11:39:16 -07:00
Kunal Tyagi
2b770b15ed
Changes in preparation for PCL 1.11 (#273) (#279)
* Deriving typedef from pcl type

* Explicit boost shared_ptr for function parameters

* Use boost::shared_ptr instead of PCL::Ptr

* Implementing boost-std compatibility

* Using the compatibility layer
2020-05-11 18:50:15 -07:00
Ruffin
36eb607be7
Use std::uint* types. (#265) (#266)
Co-authored-by: Mike Purvis <mike@uwmike.com>
2020-03-16 13:08:48 -07:00
Steven Macenski
1273c7581d
changing base version to 2.1.0 for first ros2 sync [eloquent] (#253)
* changing base version to 2.0.0 for first ros2 sync

* changing industrial CI to use eloquent

* increment 2.0.0 to 2.1.0 for eloquent release
2019-12-02 09:39:11 -08:00
Andreas Klintberg
a1fd4d2a09 Updated ROS2 PR: pcl_conversion only to ROS2 (dashing) (#244)
* pcl_conversion to ros2

* travis for ros2 and fixed cmakelists

* exporting dependencies

* updated travis

* fixed smaller things

* added colcon ignore to meta package

* merge pcl_conversions.h with version released in Dashing

* merge test script, CMakeListst, package.xml

* append authors, clean up

* PR feedback

* fixed PR comments

* fixed PR comments, cmakelists message_filters, reverted type masq, added maintainer

* removed dashing and made ros_distro matrix env
2019-10-30 07:10:32 +08:00
James Xu
a8ba2c790d use <chrono> and <thread> on Windows (#221)
* Changing from usleep to c++14 style sleep_for for Windows support
2019-04-05 10:50:10 -04:00
Kentaro Wada
12482e555d 1.6.2 2018-05-20 04:14:40 +09:00
Kentaro Wada
99f7caacb9 Update CHANGELOG.rst 2018-05-20 04:14:16 +09:00
Jiri Horner
f8fee6128a pcl_ros: fix exported includes in Ubuntu Artful
pcl_ros needs the same fix as pcl_conversions
2018-05-20 04:12:55 +09:00
James Ward
cd3720923a Increase limits on CropBox filter parameters
Min and max of CropBox filter was +/- 5m. For a pointcloud from a Velodyne, for example, this is not enough.
Increased to +/- 1000m.
2018-05-08 22:17:42 +09:00
Kentaro Wada
32d3e6a459 1.6.1 2018-05-08 18:56:16 +09:00
Kentaro Wada
283782b420 Update CHANGELOG.rst 2018-05-08 18:56:01 +09:00
Kentaro Wada
9dee4fb36d Add 1.6.0 section to CHANGELOG.rst 2018-05-08 18:54:33 +09:00
Kentaro Wada
80131757e8 Remove no need ROS_PARALLEL_JOBS env in .travis.yml 2018-05-08 17:45:53 +09:00
Kentaro Wada
9b4d31c912 Add NOT_TEST_INSTALL option to .travis.sh 2018-05-08 17:45:53 +09:00
Kentaro Wada
25c86b2115 Update travis badge in README.md 2018-05-08 17:45:53 +09:00
Kentaro Wada
3be6003f1b sudo -E to enable DEBIAN_FRONTEND=noninteractive 2018-05-08 17:45:53 +09:00
Kentaro Wada
090e105e77 Add DEBIAN_FRONTEND=noninteractive 2018-05-08 17:45:53 +09:00
Kentaro Wada
cd2a12af43 Use foreach + string regex to implement list(filter on old cmake 2018-05-08 17:45:53 +09:00
Kentaro Wada
d61aa376ec Downgrade the required cmake version for backward compatibility
I think 3.7 is not required currently and requiring 2.8 is better.
2018-05-08 17:45:53 +09:00
Kentaro Wada
19cd3cfd75 Test backward compatibility for users who build from source 2018-05-08 17:45:53 +09:00
Kentaro Wada
595067b122 Just update .travis.yml for melodic
To divide the build failure problem to following:

1. current industrial_ci config is bad?
2. perception_pcl cannot be built on stretch, artful, and bionic?
2018-05-08 17:45:53 +09:00
Paul Bovbel
a21e3ee28a
Merge pull request #198 from mikaelarguedas/fix_pcl_conversions_links
Fix pcl conversions links
2018-05-07 15:00:01 -04:00
Mikael Arguedas
0b4ad1f1d6 update package.xml links to point to new repository 2018-05-07 08:13:36 -07:00
Mikael Arguedas
235612cca9 CMake 3.6.3 is sufficient 2018-05-07 08:13:20 -07:00
Paul Bovbel
f335c169df
Merge pull request #196 from clalancette/fix-artful
Fix a bug building on artful.
2018-05-02 11:10:24 -04:00
Chris Lalancette
242ce31b32 Fix a bug building on artful.
The comment explains it in more detail.  While we are at it,
fix the link in the README.rst to point to the right repository.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
2018-05-02 14:59:26 +00:00
Kentaro Wada
3e97d7ce9c Fix the use of Eigen3 in cmake
(cherry picked from commit 27c02d1f49468f450c4f91992ddaf5f3e8698b56)
2018-05-02 11:09:44 +09:00
Paul Bovbel
2be69aee71 Fixup pcl_conversions test 2018-05-02 11:09:44 +09:00
Paul Bovbel
e0a6c06448 1.6.0 2018-04-30 12:10:14 -04:00