-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added packages for simulation(ignition-gazebo).
- Loading branch information
Showing
15 changed files
with
282 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
project(my_panda_bringup) | ||
|
||
find_package(ament_cmake REQUIRED) | ||
|
||
install(DIRECTORY | ||
launch | ||
DESTINATION share/${PROJECT_NAME} | ||
) | ||
|
||
ament_package() |
Empty file.
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,24 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>my_panda_bringup</name> | ||
<version>0.0.0</version> | ||
<description>TODO: Package description</description> | ||
<maintainer email="stefanoangeli12@gmail.com">user</maintainer> | ||
<license>TODO: License declaration</license> | ||
|
||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
|
||
<test_depend>ament_lint_auto</test_depend> | ||
<test_depend>ament_lint_common</test_depend> | ||
|
||
<!-- <exec_depend>my_panda_moveit</exec_depend> --> | ||
<exec_depend>my_panda_controller</exec_depend> | ||
|
||
<exec_depend>launch</exec_depend> | ||
<exec_depend>launch_ros</exec_depend> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
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,12 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
project(my_panda_controller) | ||
|
||
find_package(ament_cmake REQUIRED) | ||
|
||
install(DIRECTORY | ||
launch | ||
config | ||
DESTINATION share/${PROJECT_NAME} | ||
) | ||
|
||
ament_package() |
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,63 @@ | ||
simulation_ignition_ros_control: | ||
ros__parameters: | ||
use_sim_time: true | ||
|
||
# Separate controller manager used for simulation - only difference is | ||
# the use_sim_time parameter (it is the easiest way to do it with ign ros2 control) | ||
simulation_controller_manager: | ||
ros__parameters: | ||
use_sim_time: true | ||
update_rate: 1000 # Hz | ||
|
||
joint_state_broadcaster: | ||
type: joint_state_broadcaster/JointStateBroadcaster | ||
panda_arm_controller: | ||
type: joint_trajectory_controller/JointTrajectoryController | ||
|
||
controller_manager: | ||
ros__parameters: | ||
use_sim_time: false | ||
update_rate: 1000 # Hz | ||
|
||
joint_state_broadcaster: | ||
type: joint_state_broadcaster/JointStateBroadcaster | ||
panda_arm_controller: | ||
type: joint_trajectory_controller/JointTrajectoryController | ||
|
||
panda_arm_controller: | ||
ros__parameters: | ||
joints: | ||
- panda_joint1 | ||
- panda_joint2 | ||
- panda_joint3 | ||
- panda_joint4 | ||
- panda_joint5 | ||
- panda_joint6 | ||
- panda_joint7 | ||
gains: | ||
panda_joint1: { p: 600., d: 30., i: 0., i_clamp: 1. } | ||
panda_joint2: { p: 600., d: 30., i: 0., i_clamp: 1. } | ||
panda_joint3: { p: 600., d: 30., i: 0., i_clamp: 1. } | ||
panda_joint4: { p: 600., d: 30., i: 0., i_clamp: 1. } | ||
panda_joint5: { p: 250., d: 10., i: 0., i_clamp: 1. } | ||
panda_joint6: { p: 150., d: 10., i: 0., i_clamp: 1. } | ||
panda_joint7: { p: 50., d: 5., i: 0., i_clamp: 1. } | ||
|
||
command_interfaces: | ||
- position | ||
|
||
state_interfaces: | ||
- position | ||
- velocity | ||
|
||
state_publish_rate: 50.0 # Defaults to 50 | ||
action_monitor_rate: 20.0 # Defaults to 20 | ||
|
||
allow_partial_joints_goal: false # Defaults to false | ||
open_loop_control: true | ||
allow_integration_in_goal_trajectories: true | ||
constraints: | ||
stopped_velocity_tolerance: 0.0 # Defaults to 0.01 | ||
goal_time: 0.0 # Defaults to 0.0 (start immediately) | ||
|
||
|
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,31 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>my_panda_controller</name> | ||
<version>0.0.0</version> | ||
<description>TODO: Package description</description> | ||
<maintainer email="stefanoangeli12@gmail.com">user</maintainer> | ||
<license>TODO: License declaration</license> | ||
|
||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
|
||
<exec_depend>my_panda_description</exec_depend> | ||
|
||
<exec_depend>launch</exec_depend> | ||
<exec_depend>launch_ros</exec_depend> | ||
|
||
<exec_depend>xacro</exec_depend> | ||
<exec_depend>controller_manager</exec_depend> | ||
<exec_depend>robot_state_publisher</exec_depend> | ||
|
||
<exec_depend>joint_state_broadcaster</exec_depend> | ||
<exec_depend>joint_trajectory_controller</exec_depend> | ||
<exec_depend>position_controllers</exec_depend> | ||
|
||
<test_depend>ament_lint_auto</test_depend> | ||
<test_depend>ament_lint_common</test_depend> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
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 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
|
||
from ament_index_python.packages import get_package_share_directory | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
project(my_panda_gazebo) | ||
|
||
# find dependencies | ||
find_package(ament_cmake REQUIRED) | ||
|
||
install(DIRECTORY | ||
launch | ||
DESTINATION share/${PROJECT_NAME} | ||
) | ||
|
||
ament_package() |
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,41 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from launch import LaunchDescription | ||
from launch.actions import ( | ||
IncludeLaunchDescription, | ||
DeclareLaunchArgument, | ||
) | ||
from launch.substitutions import ( | ||
Command, | ||
FindExecutable, | ||
PathJoinSubstitution, | ||
PythonExpression, | ||
LaunchConfiguration, | ||
) | ||
from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
|
||
from launch_ros.actions import Node, SetParameter | ||
from launch_ros.substitutions import FindPackageShare | ||
|
||
from ament_index_python.packages import get_package_share_directory | ||
|
||
def generate_launch_description(): | ||
|
||
gz_sim = IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource( | ||
PathJoinSubstitution( | ||
[ | ||
get_package_share_directory("ros_gz_sim"), | ||
"launch", | ||
"gz_sim.launch.py", | ||
] | ||
) | ||
), | ||
launch_arguments={'gz_args': '-r empty.sdf'}.items(), | ||
) | ||
|
||
return LaunchDescription( | ||
[ | ||
gz_sim | ||
] | ||
) |
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,26 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>my_panda_gazebo</name> | ||
<version>0.0.0</version> | ||
<description>TODO: Package description</description> | ||
<maintainer email="stefanoangeli12@gmail.com">user</maintainer> | ||
<license>TODO: License declaration</license> | ||
|
||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
<exec_depend>my_panda_bringup</exec_depend> | ||
|
||
<exec_depend>launch</exec_depend> | ||
<exec_depend>launch_ros</exec_depend> | ||
|
||
<exec_depend>ros_gz_sim</exec_depend> | ||
<!-- Ignition dependency is specified in the ros_gz_sim package, | ||
version can chosen using GZ_VERSION (or IGNITION_VERSION) env variable, | ||
for details refer to the ros_gz_sim package --> | ||
<exec_depend>ros_gz_bridge</exec_depend> | ||
<exec_depend>ign_ros2_control</exec_depend> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
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