File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/applications/transporter_deployment Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
"""A basic debug/poc of identifying fruits with dino and sorting them."""
2
+ import os
2
3
import yaml
3
4
import numpy as np
4
5
import rclpy
5
6
from robot_workspaces .franka_table import FrankaTable
6
7
from scipy .spatial .transform import Rotation as R
7
8
9
+ script_dir = os .path .dirname (os .path .abspath (__file__ ))
10
+ yaml_file_path = os .path .join (script_dir , 'config' , 'franka_table_real.yaml' )
11
+
8
12
def sort_apples (config ):
9
13
"""
10
14
Demonstrate apple sorting with basic object detection.
@@ -72,7 +76,7 @@ def sample_pose_in_rect(location, size):
72
76
env .close ()
73
77
74
78
def main (args = None ):
75
- with open ('./config/franka_table_real.yaml' , 'r' ) as file :
79
+ with open (yaml_file_path , 'r' ) as file :
76
80
config = yaml .safe_load (file )
77
81
78
82
rclpy .init (args = args )
You can’t perform that action at this time.
0 commit comments