Skip to content

ROS2 packages needed to run apple harvesting trials.

Notifications You must be signed in to change notification settings

OSUrobotics/apple-harvest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To run Marcus Path-Query:

  1. In the first terminal: (sim vs. real):
ros2 launch ur_robot_driver ur_control_custom_hw.launch.py ur_type:=ur5e robot_ip:=yyy.yyy.yyy.yyy use_fake_hardware:=true launch_rviz:=true

OR

ros2 launch ur_robot_driver ur_control_custom_hw.launch.py ur_type:=ur5e robot_ip:=169.254.177.230 launch_rviz:=true headless_mode:=true
  1. In the second terminal:
ros2 launch ur_moveit_config ur_moveit_custom_hw.launch.py ur_type:=ur5e launch_rviz:=true
  1. In a third terminal:
ros2 run harvest_control move_arm
  1. In a fourth terminal:
ros2 run harvest_control coordinate_to_trajectory.py
  1. In a fifth terminal: (set desired x,y,z coorinates):
ros2 service call /coordinate_to_trajectory harvest_interfaces/srv/CoordinateToTrajectory "{coordinate: {x: 0.2, y: 0.5, z: 0.8}}"
  1. To send the robot to home configuration by reversing the approach trajectory:
ros2 service call /return_home_trajectory std_srvs/srv/Trigger 
  1. To send the robot to home configuration:
ros2 service call /move_arm_to_home std_srvs/srv/Trigger
  1. To set a voxel mask for tree and wire locations: Valid inputs are tree_pos 1-5, each shifting the tree location from left to right. If 0 is entered, it will remove the tree mask and maintain the wire mask. Any values outside of this range, it will default to no voxel mask.
ros2 service call /voxel_mask harvest_interfaces/srv/VoxelMask "{tree_pos: 1}"

About

ROS2 packages needed to run apple harvesting trials.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •