-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
327 changed files
with
4,780 additions
and
18,796 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "common/third_party/aruco_ros"] | ||
path = common/third_party/aruco_ros | ||
url = [email protected]:pal-robotics/aruco_ros.git | ||
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,25 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>lasr_dialogflow</name> | ||
<name>cv2_pcl</name> | ||
<version>0.0.0</version> | ||
<description>The lasr_dialogflow package</description> | ||
<description>The cv2_pcl package</description> | ||
|
||
<!-- One maintainer tag required, multiple allowed, one person per tag --> | ||
<!-- Example: --> | ||
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> --> | ||
<maintainer email="jared@todo.todo">jared</maintainer> | ||
|
||
<maintainer email="jared[email protected]">Jared Swift</maintainer> | ||
a | ||
|
||
<!-- One license tag required, multiple allowed, one license per tag --> | ||
<!-- Commonly used license strings: --> | ||
<!-- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 --> | ||
<license>TODO</license> | ||
<license>MIT</license> | ||
|
||
|
||
<!-- Url tags are optional, but multiple are allowed, one per tag --> | ||
<!-- Optional attribute type can be: website, bugtracker, or repository --> | ||
<!-- Example: --> | ||
<!-- <url type="website">http://wiki.ros.org/lasr_dialogflow</url> --> | ||
<!-- <url type="website">http://wiki.ros.org/cv2_pcl</url> --> | ||
|
||
|
||
<!-- Author tags are optional, multiple are allowed, one per tag --> | ||
|
@@ -49,6 +49,7 @@ | |
<!-- Use doc_depend for packages you need only for building documentation: --> | ||
<!-- <doc_depend>doxygen</doc_depend> --> | ||
<buildtool_depend>catkin</buildtool_depend> | ||
<depend>sensor_msgs</depend> | ||
|
||
|
||
<!-- The export tag contains other, unspecified, tags --> | ||
|
8 changes: 2 additions & 6 deletions
8
legacy/common_math/setup.py → common/helpers/cv2_pcl/setup.py
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,12 +1,8 @@ | ||
|
||
#!/usr/bin/env python3 | ||
|
||
from distutils.core import setup | ||
from catkin_pkg.python_setup import generate_distutils_setup | ||
|
||
setup_args = generate_distutils_setup( | ||
packages=['common_math'], | ||
package_dir={'': 'src'} | ||
) | ||
setup_args = generate_distutils_setup(packages=["cv2_pcl"], package_dir={"": "src"}) | ||
|
||
setup(**setup_args) | ||
setup(**setup_args) |
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 |
---|---|---|
|
@@ -7,13 +7,13 @@ | |
<!-- One maintainer tag required, multiple allowed, one person per tag --> | ||
<!-- Example: --> | ||
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> --> | ||
<maintainer email="[email protected]">nicole</maintainer> | ||
<maintainer email="[email protected]">Jared Swift</maintainer> | ||
|
||
|
||
<!-- One license tag required, multiple allowed, one license per tag --> | ||
<!-- Commonly used license strings: --> | ||
<!-- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 --> | ||
<license>TODO</license> | ||
<license>MIT</license> | ||
|
||
|
||
<!-- Url tags are optional, but multiple are allowed, one per tag --> | ||
|
@@ -49,19 +49,15 @@ | |
<!-- Use doc_depend for packages you need only for building documentation: --> | ||
<!-- <doc_depend>doxygen</doc_depend> --> | ||
<buildtool_depend>catkin</buildtool_depend> | ||
<build_depend>geometry_msgs</build_depend> | ||
<build_depend>message_generation</build_depend> | ||
<build_depend>roscpp</build_depend> | ||
<build_depend>rospy</build_depend> | ||
<build_depend>std_msgs</build_depend> | ||
<build_export_depend>geometry_msgs</build_export_depend> | ||
<build_export_depend>roscpp</build_export_depend> | ||
<build_depend>visualization_msgs</build_depend> | ||
<build_depend>geometry_msgs</build_depend> | ||
<build_export_depend>rospy</build_export_depend> | ||
<build_export_depend>std_msgs</build_export_depend> | ||
<exec_depend>geometry_msgs</exec_depend> | ||
<exec_depend>roscpp</exec_depend> | ||
<build_export_depend>visualization_msgs</build_export_depend> | ||
<build_export_depend>geometry_msgs</build_export_depend> | ||
<exec_depend>rospy</exec_depend> | ||
<exec_depend>std_msgs</exec_depend> | ||
<exec_depend>visualization_msgs</exec_depend> | ||
<exec_depend>geometry_msgs</exec_depend> | ||
|
||
|
||
<!-- The export tag contains other, unspecified, tags --> | ||
|
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import rospy | ||
|
||
from visualization_msgs.msg import Marker | ||
from geometry_msgs.msg import PointStamped | ||
|
||
from collections import defaultdict | ||
|
||
from typing import Union | ||
|
||
publisher_counts = defaultdict(int) | ||
|
||
|
||
def create_marker( | ||
point_stamped: PointStamped, | ||
idx: int, | ||
r: float = 0.0, | ||
g: float = 1.0, | ||
b: float = 0.0, | ||
): | ||
marker_msg = Marker() | ||
marker_msg.header.frame_id = point_stamped.header.frame_id | ||
marker_msg.header.stamp = point_stamped.header.stamp | ||
marker_msg.id = idx | ||
marker_msg.type = Marker.SPHERE | ||
marker_msg.action = Marker.ADD | ||
marker_msg.pose.position = point_stamped.point | ||
marker_msg.pose.orientation.w = 1.0 | ||
marker_msg.scale.x = 0.1 | ||
marker_msg.scale.y = 0.1 | ||
marker_msg.scale.z = 0.1 | ||
marker_msg.color.a = 1.0 | ||
marker_msg.color.r = r | ||
marker_msg.color.g = g | ||
marker_msg.color.b = b | ||
return marker_msg | ||
|
||
|
||
def create_and_publish_marker( | ||
publisher: rospy.Publisher, | ||
point_stamped: PointStamped, | ||
idx: Union[int, None] = None, | ||
r: float = 0.0, | ||
g: float = 1.0, | ||
b: float = 0.0, | ||
): | ||
if idx is None: | ||
global publisher_counts | ||
idx = publisher_counts[publisher] | ||
publisher_counts[publisher] += 1 | ||
|
||
marker_msg = create_marker(point_stamped, idx, r, g, b) | ||
publisher.publish(marker_msg) |
Oops, something went wrong.