Jaw and physics pick and place

This commit is contained in:
Behron 2025-04-14 18:29:27 -06:00
parent d1a3147844
commit f1240f01ed
24 changed files with 4110 additions and 43 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Map/Test_Level.umap (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
D:\Projects\luckyworld\luckyworld\Plugins\CPathfinding\Source\CPathfinding\Public\CPathDefines.h
D:\Projects\luckyworld\luckyworld\Plugins\CPathfinding\Source\CPathfinding\Public\CPathDynamicObstacle.h
D:\Projects\luckyworld\luckyworld\Plugins\CPathfinding\Source\CPathfinding\Public\CPathFindPath.h
D:\Projects\luckyworld\luckyworld\Plugins\CPathfinding\Source\CPathfinding\Public\CPathNode.h
D:\Projects\luckyworld\luckyworld\Plugins\CPathfinding\Source\CPathfinding\Public\CPathDynamicObstacle.h
D:\Projects\luckyworld\luckyworld\Plugins\CPathfinding\Source\CPathfinding\Public\CPathDefines.h
D:\Projects\luckyworld\luckyworld\Plugins\CPathfinding\Source\CPathfinding\Public\CPathVolume.h
D:\Projects\luckyworld\luckyworld\Plugins\CPathfinding\Source\CPathfinding\Public\CPathFindPath.h
D:\Projects\luckyworld\luckyworld\Plugins\CPathfinding\Source\CPathfinding\Public\CPathVolumeGroundPrio.h

Binary file not shown.

Binary file not shown.

View File

@ -15,6 +15,8 @@ EStateTreeRunStatus FSTT_PickAndPlace::EnterState(FStateTreeExecutionContext& Co
if (APickAndPlaceManager* Manager = ULuckyWorldFunctions::GetPickAndPlaceManager(Ref))
{
IPickAndPlaceUser::Execute_SetPickAndPlaceTargets(Ref,Manager->GetCurrentTargetActor(),Manager->GetCurrentPlaceArea());
FStateTreeSharedEvent Event = FStateTreeSharedEvent(Manager->PickAndPlaceStartTag, FConstStructView(), "PickAndPlace");
Context.ConsumeEvent(Event);
return EStateTreeRunStatus::Running;
}
}

View File

@ -39,5 +39,28 @@ public:
*/
UFUNCTION(BlueprintCallable,BlueprintNativeEvent,Category="PickAndPlaceUser")
bool PlaceTarget();
/**
* Tell the robot to close its jaw.
* @param TargetValue - The target value for the jaw.
* @return - True if both targets are valid.
*/
UFUNCTION(BlueprintCallable,BlueprintNativeEvent,Category="PickAndPlaceUser")
bool CloseJaw(float TargetValue);
/**
* Tell the robot to open its jaw.
* @param TargetValue - The target value for the jaw.
* @return - True if both targets are valid.
*/
UFUNCTION(BlueprintCallable,BlueprintNativeEvent,Category="PickAndPlaceUser")
bool OpenJaw(float TargetValue);
/**
* Tell the robot to release the object.
* @return - True if both targets are valid.
*/
UFUNCTION(BlueprintCallable,BlueprintNativeEvent,Category="PickAndPlaceUser")
bool DropTarget();
};