Skip to content

Commit 36da3ca

Browse files
committed
Squashed 'src/lab_sim/' content from commit 2ee0461
git-subtree-dir: src/lab_sim git-subtree-split: 2ee0461a27dc2165441ce9362a81db44303177d4
0 parents  commit 36da3ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3704
-0
lines changed

CMakeLists.txt

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
cmake_minimum_required(VERSION 3.22)
2+
project(lab_sim)
3+
4+
find_package(ament_cmake REQUIRED)
5+
find_package(picknik_accessories REQUIRED)
6+
7+
8+
# Install all XML files in directory
9+
set(PICKNIK_ACCESSORIES_SHARE_DIR
10+
"${CMAKE_INSTALL_PREFIX}/../picknik_accessories/share/picknik_accessories/mujoco_assets/"
11+
)
12+
# Destination directory
13+
set(DEST_DIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/description/")
14+
15+
install(DIRECTORY "${PICKNIK_ACCESSORIES_SHARE_DIR}"
16+
DESTINATION "${DEST_DIR}"
17+
FILES_MATCHING PATTERN "*")
18+
19+
# Install individual XML files
20+
# set(EXTERNAL_XML_FILES
21+
# "${PICKNIK_ACCESSORIES_SHARE_DIR}/ur5e/ur5e_globals.xml"
22+
# "${PICKNIK_ACCESSORIES_SHARE_DIR}/ur5e/ur5e.xml"
23+
# # Add additional files here if desired
24+
# )
25+
# foreach(xml_file IN LISTS EXTERNAL_XML_FILES)
26+
# install(FILES "${xml_file}"
27+
# DESTINATION "${DEST_DIR}"
28+
# )
29+
# endforeach()
30+
31+
install(
32+
DIRECTORY
33+
config
34+
description
35+
launch
36+
objectives
37+
waypoints
38+
DESTINATION
39+
share/${PROJECT_NAME}
40+
)
41+
42+
if(BUILD_TESTING)
43+
find_package(ament_lint_auto REQUIRED)
44+
ament_lint_auto_find_test_dependencies()
45+
endif()
46+
47+
ament_package()

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Any contribution that you make to this repository will
2+
be under the 3-Clause BSD License, as dictated by that
3+
[license](https://opensource.org/licenses/BSD-3-Clause).
4+
5+
# Contributing to this Repository
6+
7+
Thanks for getting involved! If you want to add to this repository, please reach out to [email protected].

LICENSE

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

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# lab_sim
2+
3+
A MoveIt Pro simulation for PickNik's Universal Robots (UR) arm in a pharmaceutical environment.
4+
5+
For detailed documentation see: [MoveIt Pro Documentation](https://docs.picknik.ai/)

config/config.yaml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#
2+
# This contains information for a unique instance of a robot.
3+
#
4+
5+
# Name of the package to specialize
6+
based_on_package: "picknik_ur_base_config"
7+
hardware:
8+
# Parameters used to configure the robot description through XACRO.
9+
# A URDF and SRDF are both required.
10+
# [Required]
11+
robot_description:
12+
urdf:
13+
package: "lab_sim"
14+
path: "description/picknik_ur.xacro"
15+
srdf:
16+
package: "lab_sim"
17+
path: "config/moveit/picknik_ur.srdf"
18+
urdf_params:
19+
- mujoco_model: "description/scene.xml"
20+
21+
moveit_params:
22+
servo:
23+
package: "lab_sim"
24+
path: "config/moveit/ur_servo.yaml"
25+
joint_limits:
26+
package: "lab_sim"
27+
path: "config/moveit/joint_limits.yaml"
28+
servo_joint_limits:
29+
package: "lab_sim"
30+
path: "config/moveit/hard_joint_limits.yaml"
31+
32+
# Configuration for loading behaviors and objectives.
33+
# [Required]
34+
objectives:
35+
# List of plugins for loading custom behaviors.
36+
# [Required]
37+
behavior_loader_plugins:
38+
# This plugin will load the core MoveIt Pro Behaviors.
39+
# Add additional plugin loaders as needed.
40+
core:
41+
- "moveit_studio::behaviors::CoreBehaviorsLoader"
42+
- "moveit_studio::behaviors::MTCCoreBehaviorsLoader"
43+
- "moveit_studio::behaviors::ServoBehaviorsLoader"
44+
- "moveit_studio::behaviors::VisionBehaviorsLoader"
45+
- "picknik_registration::PicknikRegistrationBehaviorsLoader"
46+
# Specify source folder for objectives
47+
# [Required]
48+
objective_library_paths:
49+
sim_objectives:
50+
package_name: "lab_sim"
51+
relative_path: "objectives"
52+
# Specify the location of the saved waypoints file.
53+
# [Required]
54+
waypoints_file:
55+
package_name: "lab_sim"
56+
relative_path: "waypoints/ur_waypoints.yaml"
57+
58+
59+
# Configuration for launching ros2_control processes.
60+
# [Required, if using ros2_control]
61+
ros2_control:
62+
config:
63+
package: "lab_sim"
64+
path: "config/control/picknik_ur.ros2_control.yaml"
65+
# MoveIt Pro will load and activate these controllers at start up to ensure they are available.
66+
# If not specified, it is up to the user to ensure the appropriate controllers are active and available
67+
# for running the application.
68+
# [Optional, default=[]]
69+
controllers_active_at_startup:
70+
- "force_torque_sensor_broadcaster"
71+
- "robotiq_gripper_controller"
72+
- "joint_state_broadcaster"
73+
- "servo_controller"
74+
# Load but do not start these controllers so they can be activated later if needed.
75+
controllers_inactive_at_startup:
76+
- "joint_trajectory_controller"
77+
- "joint_trajectory_admittance_controller"
78+
- "velocity_force_controller"
79+
# Any controllers here will not be spawned by MoveIt Pro.
80+
# [Optional, default=[]]
81+
controllers_not_managed: []
82+
# Optionally configure remapping rules to let multiple controllers receive commands on the same topic.
83+
# [Optional, default=[]]
84+
controller_shared_topics: []

0 commit comments

Comments
 (0)