Skip to content

Commit 04a7d72

Browse files
First iteration of arm pose message format (#11)
* Create First Iteration of Common Message Formats * Update autonomy/wato_msgs/common_msgs/package.xml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4844894 commit 04a7d72

File tree

5 files changed

+98
-0
lines changed

5 files changed

+98
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
project(common_msgs)
3+
4+
if(NOT CMAKE_CXX_STANDARD)
5+
set(CMAKE_CXX_STANDARD 17)
6+
endif()
7+
8+
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
9+
add_compile_options(-Wall -Wextra -Wpedantic)
10+
endif()
11+
12+
find_package(ament_cmake REQUIRED)
13+
find_package(rosidl_default_generators REQUIRED)
14+
find_package(std_msgs REQUIRED)
15+
find_package(geometry_msgs REQUIRED)
16+
17+
set(msg_files
18+
msg/ArmPose.msg
19+
msg/HandPose.msg
20+
msg/JointState.msg
21+
)
22+
23+
rosidl_generate_interfaces(${PROJECT_NAME}
24+
${msg_files}
25+
DEPENDENCIES std_msgs geometry_msgs
26+
)
27+
28+
ament_export_dependencies(rosidl_default_runtime)
29+
ament_package()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
std_msgs/Header header
2+
3+
string name
4+
5+
common_msgs/JointState shoulder
6+
common_msgs/JointState elbow
7+
common_msgs/JointState wrist
8+
9+
# Optional Overall Hand Pose
10+
bool include_hand_pose
11+
common_msgs/HandPose hand_pose
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
std_msgs/Header header
2+
3+
string name
4+
5+
# Thumb
6+
common_msgs/JointState thumb_cmc
7+
common_msgs/JointState thumb_mcp
8+
common_msgs/JointState thumb_ip
9+
10+
# Index
11+
common_msgs/JointState index_mcp
12+
common_msgs/JointState index_pip
13+
common_msgs/JointState index_dip
14+
15+
# Middle
16+
common_msgs/JointState middle_mcp
17+
common_msgs/JointState middle_pip
18+
common_msgs/JointState middle_dip
19+
20+
# Ring
21+
common_msgs/JointState ring_mcp
22+
common_msgs/JointState ring_pip
23+
common_msgs/JointState ring_dip
24+
25+
# Pinky
26+
common_msgs/JointState pinky_mcp
27+
common_msgs/JointState pinky_pip
28+
common_msgs/JointState pinky_dip
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
std_msgs/Header header
2+
3+
string name
4+
5+
float64[] position
6+
float64[] velocity
7+
float64[] effort
8+
9+
geometry_msgs/Quaternion orientation
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<package format="3">
3+
<name>common_msgs</name>
4+
<version>0.0.0</version>
5+
<description>Common ROS2 message definitions for the WATO Humanoid project.</description>
6+
7+
<maintainer email="gavintranquilino@gmail.com">Gavin Tranquilino</maintainer>
8+
<license>Apache2.0</license>
9+
10+
<buildtool_depend>ament_cmake</buildtool_depend>
11+
<depend>std_msgs</depend>
12+
<depend>geometry_msgs</depend>
13+
14+
<build_depend>rosidl_default_generators</build_depend>
15+
<exec_depend>rosidl_default_runtime</exec_depend>
16+
<member_of_group>rosidl_interface_packages</member_of_group>
17+
18+
<export>
19+
<build_type>ament_cmake</build_type>
20+
</export>
21+
</package>

0 commit comments

Comments
 (0)