Skip to content

Commit 2d7f315

Browse files
committed
Add bringup package for the real hardware
1 parent d0a420d commit 2d7f315

File tree

6 files changed

+175
-0
lines changed

6 files changed

+175
-0
lines changed
File renamed without changes.

ar4_realbot_bringup/CMakeLists.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# BSD 3-Clause License
2+
#
3+
# Copyright 2025 Ekumen, Inc.
4+
# All rights reserved.
5+
#
6+
# Redistribution and use in source and binary forms, with or without
7+
# modification, are permitted provided that the following conditions are met:
8+
#
9+
# 1. Redistributions of source code must retain the above copyright notice, this
10+
# list of conditions and the following disclaimer.
11+
#
12+
# 2. Redistributions in binary form must reproduce the above copyright notice,
13+
# this list of conditions and the following disclaimer in the documentation
14+
# and/or other materials provided with the distribution.
15+
#
16+
# 3. Neither the name of the copyright holder nor the names of its
17+
# contributors may be used to endorse or promote products derived from
18+
# this software without specific prior written permission.
19+
#
20+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30+
31+
cmake_minimum_required(VERSION 3.7)
32+
project(ar4_realbot_bringup)
33+
34+
find_package(ament_cmake REQUIRED)
35+
36+
install(DIRECTORY launch DESTINATION share/${PROJECT_NAME}/)
37+
38+
ament_package()

ar4_realbot_bringup/LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2025, Ekumen Inc.
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

ar4_realbot_bringup/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Description
2+
A Gazebo simulation of the AR4 Package.
3+
4+
To build the package, run
5+
`colcon build`
6+
7+
To run the simulation, source and run
8+
`ros2 launch ar4_realbot_bringup ar4_sim.launch.py`
9+
10+
#### Launch file arguments
11+
- 'rsp':
12+
- Run [`robot state publisher`](https://github.com/ros/robot_state_publisher) node. (default: 'false')
13+
- 'rviz':
14+
- Start RViz. (default: 'false')
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# BSD 3-Clause License
2+
#
3+
# Copyright 2025 Ekumen, Inc.
4+
# All rights reserved.
5+
#
6+
# Redistribution and use in source and binary forms, with or without
7+
# modification, are permitted provided that the following conditions are met:
8+
#
9+
# 1. Redistributions of source code must retain the above copyright notice, this
10+
# list of conditions and the following disclaimer.
11+
#
12+
# 2. Redistributions in binary form must reproduce the above copyright notice,
13+
# this list of conditions and the following disclaimer in the documentation
14+
# and/or other materials provided with the distribution.
15+
#
16+
# 3. Neither the name of the copyright holder nor the names of its
17+
# contributors may be used to endorse or promote products derived from
18+
# this software without specific prior written permission.
19+
#
20+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30+
31+
"""launch file for integrating Gazebo with MoveIt for the AR4 robot."""
32+
33+
from launch import LaunchDescription
34+
from launch_ros.actions import SetParameter
35+
from launch_ros.substitutions import FindPackageShare
36+
from launch.actions import IncludeLaunchDescription
37+
from launch.launch_description_sources import PythonLaunchDescriptionSource
38+
from launch.substitutions import PathJoinSubstitution
39+
40+
41+
def generate_launch_description():
42+
"""Launch the AR4 robot in Gazebo and MoveIt."""
43+
use_sim_time_param = SetParameter(name="use_sim_time", value=True)
44+
45+
common_stack_include = IncludeLaunchDescription(
46+
PythonLaunchDescriptionSource(
47+
PathJoinSubstitution(
48+
[
49+
FindPackageShare("ar4_common"),
50+
"launch",
51+
"main.launch.py",
52+
]
53+
)
54+
)
55+
)
56+
57+
real_hardware_include = IncludeLaunchDescription(
58+
PythonLaunchDescriptionSource(
59+
PathJoinSubstitution(
60+
[
61+
FindPackageShare("ar4_hardware_interface"),
62+
"launch",
63+
"main.launch.py",
64+
]
65+
)
66+
)
67+
)
68+
69+
return LaunchDescription(
70+
[
71+
use_sim_time_param,
72+
common_stack_include,
73+
real_hardware_include,
74+
]
75+
)

ar4_realbot_bringup/package.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<package format="3">
3+
<name>ar4_realbot_bringup</name>
4+
<version>0.0.1</version>
5+
<description>Launch the software stack for the realbot AR4.</description>
6+
<author email="glpuga@ekumenlabs.com">Gerardo Puga</author>
7+
<maintainer email="glpuga@ekumenlabs.com">Gerardo Puga</maintainer>
8+
<license file="LICENSE">BSD-3-Clause</license>
9+
10+
<buildtool_depend>ament_cmake</buildtool_depend>
11+
12+
<exec_depend>ar4_common</exec_depend>
13+
<exec_depend>ar4_hardware_interface</exec_depend>
14+
<exec_depend>ros2launch</exec_depend>
15+
16+
<export>
17+
<build_type>ament_cmake</build_type>
18+
</export>
19+
</package>

0 commit comments

Comments
 (0)