Skip to content

Commit

Permalink
Fixed a stupid naming issue of feature extractor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benteng Ma committed Apr 23, 2024
1 parent a89b50c commit 8e867d1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def describe(self) -> str:
wearables.append('a necktie')
description += ", ".join(wearables[:-2] + [" and ".join(wearables[-2:])]) + '. '

if description != "This customer has ":
if description == "This customer has ":
description = "I didn't manage to get any attributes from this customer, I'm sorry."

result = {
Expand Down
2 changes: 1 addition & 1 deletion skills/launch/unit_test_describe_people.launch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<arg name="preload" value="['resnet50']" />
</include>

<include file="$(find lasr_vision_feature_extraction)/launch/service.launch" />
<node pkg="lasr_vision_feature_extraction" type="service" name="torch_service" output="screen"/>

<node name="image_view_yolo" pkg="rqt_image_view" type="rqt_image_view" respawn="false" output="screen" args="/yolov8/debug/yolov8nsegpt" />
<node name="image_view_bodypix" pkg="rqt_image_view" type="rqt_image_view" respawn="false" output="screen" args="/bodypix/debug/resnet50" />
Expand Down
1 change: 1 addition & 0 deletions skills/src/lasr_skills/describe_people.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def execute(self, userdata):
'detection': person,
'features': rst
})
print(people)

# Userdata:
# - people
Expand Down
4 changes: 2 additions & 2 deletions skills/src/lasr_skills/vision/image_msg_to_cv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class ImageMsgToCv2(smach.State):

def __init__(self):
smach.State.__init__(
self, outcomes=['succeeded'], input_keys=['img_msg_2d'], output_keys=['img'])
self, outcomes=['succeeded'], input_keys=['img_msg'], output_keys=['img'])

def execute(self, userdata):
userdata.img = cv2_img.msg_to_cv2_img(userdata.img_msg_2d)
userdata.img = cv2_img.msg_to_cv2_img(userdata.img_msg)
return 'succeeded'


Expand Down

0 comments on commit 8e867d1

Please sign in to comment.