Skip to content

Commit

Permalink
Improve: panda_moveit: Add parameters for perception tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
130s committed Jun 9, 2023
1 parent a035b68 commit 5badec1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion panda_moveit_config/launch/demo.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@
from moveit_configs_utils import MoveItConfigsBuilder


def _octomap_launch_params():
_path_panda_sensor_conf = PathJoinSubstitution(
[
FindPackageShare("panda_moveit_config"),
"config",
"sensors_kinect_pointcloud.yaml"
])
_params = [
launch_ros.parameter_descriptions.ParameterFile(
param_file=_path_panda_sensor_conf,
allow_substs=True),
{"octomap_frame": "odom_combined"},
{"octomap_resolution": "0.05"},
{"max_range": "5.0"}]
return _params

def generate_launch_description():

# Command-line arguments
Expand Down Expand Up @@ -49,7 +65,7 @@ def generate_launch_description():
package="moveit_ros_move_group",
executable="move_group",
output="screen",
parameters=[moveit_config.to_dict()],
parameters=[moveit_config.to_dict(), _octomap_launch_params()],
arguments=["--ros-args", "--log-level", "info"],
)

Expand Down

0 comments on commit 5badec1

Please sign in to comment.