-
Notifications
You must be signed in to change notification settings - Fork 229
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
Single package.xml file for both ROS1 and ROS2 #48
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
bbcad31
Single package.xml file for both ROS1 and ROS2
Timple 6c6e27a
Adhere to rosdep definitions
Timple 9cc5af0
pcl_ros is also a dependency
Timple abcb799
pcl dependencies only for ROS1
Timple 21e10d0
Fix rebase
Timple f046c54
Merge branch 'dev' into ros12
Timple a373e15
No need to set COMPILE_METHOD
Timple e4e5095
Update steps in README
Timple e058d25
roslib only for ROS1
Timple 7bdf9f8
Merge remote-tracking branch 'robosense/main' into ros12
Timple f22e467
Restore libpcap as it's header is included
Timple d3f8cad
Allow --config-path as argument for now as ROS2 nodes are inconsistent
Timple 2ed132e
Merge branch 'main' into ros12
Timple 7198d6a
Drop manual argument parsing
Timple File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<package format="3"> | ||
<name>rslidar_sdk</name> | ||
<version>1.5.15</version> | ||
<description>The rslidar_sdk package</description> | ||
<maintainer email="ron.zheng@robosense.cn">robosense</maintainer> | ||
<license>BSD</license> | ||
<buildtool_depend>catkin</buildtool_depend> | ||
|
||
<build_depend>roscpp</build_depend> | ||
<build_depend>sensor_msgs</build_depend> | ||
<build_depend>roslib</build_depend> | ||
<buildtool_depend condition="$ROS_VERSION == 1">catkin</buildtool_depend> | ||
<buildtool_depend condition="$ROS_VERSION == 2">ament_cmake</buildtool_depend> | ||
|
||
<run_depend>roscpp</run_depend> | ||
<run_depend>sensor_msgs</run_depend> | ||
<run_depend>roslib</run_depend> | ||
<depend>libpcap</depend> | ||
<depend condition="$ROS_VERSION == 1">pcl_ros</depend> | ||
<depend condition="$ROS_VERSION == 2">rclcpp</depend> | ||
<depend condition="$ROS_VERSION == 1">roscpp</depend> | ||
<depend condition="$ROS_VERSION == 1">roslib</depend> | ||
<depend condition="$ROS_VERSION == 2">rslidar_msg</depend> | ||
<depend>sensor_msgs</depend> | ||
<depend>std_msgs</depend> | ||
<depend>yaml-cpp</depend> | ||
|
||
<export> | ||
<build_type condition="$ROS_VERSION == 2">ament_cmake</build_type> | ||
</export> | ||
</package> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition, why is the restriction of ros version removed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not sure, but as this software is C++17 compatible, @Timple set it c++17 as default.
For new ROS2 distros you would need to add it here (iron, jazzy and rolling) if new distros are released.
Also, as you are using cmake version > 3.1. Is better define these variables:
set (CMAKE_CXX_STANDARD 17)
https://cmake.org/cmake/help/latest/variable/CMAKE_CXX_STANDARD.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not removed, it is still implicitly there. But the statement overlooked
iron
,jazzy
androlling
. Currentlyhumble
is the oldest supported distro at the moment: ros_clock. So all can usec++17