Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apartment and pouring #269

Open
wants to merge 7 commits into
base: ApartmentAndPouring
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Pouring simulator changes
  • Loading branch information
AbhijitVyas committed Oct 12, 2023
commit 2c436229aa09cfc6d9cbd12a1974e2c4579d6aee
4 changes: 2 additions & 2 deletions Config/DefaultInput.ini
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ DoubleClickTime=0.200000
+ActionMappings=(ActionName="SLGenericTrigger",bShift=False,bCtrl=False,bAlt=True,bCmd=False,Key=N)
+ActionMappings=(ActionName="VizQCineCamTrigger",bShift=False,bCtrl=False,bAlt=True,bCmd=False,Key=K)
+ActionMappings=(ActionName="VizQCineCamEffectTrigger",bShift=False,bCtrl=False,bAlt=True,bCmd=False,Key=J)
+ActionMappings=(ActionName="SLAudioStartTrigger",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=Vive_Right_Trackpad_Up)
+ActionMappings=(ActionName="SLAudioStopTrigger",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=Vive_Right_Trackpad_Down)
+ActionMappings=(ActionName="SLAudioStopTrigger",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=X)
+ActionMappings=(ActionName="SLAudioStartTrigger",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=Y)
+AxisMappings=(AxisName="LeftGrasp",Scale=1.000000,Key=Vive_Left_Trigger_Axis)
+AxisMappings=(AxisName="RightGrasp",Scale=1.000000,Key=Vive_Right_Trigger_Axis)
DefaultPlayerInputClass=/Script/EnhancedInput.EnhancedPlayerInput
Expand Down
2 changes: 1 addition & 1 deletion Config/DefaultRos.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@


[/Script/UROSBridge.RosSettings]
ROSBridgeServerHost=192.168.101.245
ROSBridgeServerHost=192.168.56.101

10 changes: 0 additions & 10 deletions Config/SteamVRBindings/steamvr_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,6 @@
"name": "/actions/main/in/RightGraspHelper",
"type": "boolean"
},
{
"name": "/actions/main/in/SLAudioStartTrigger",
"type": "boolean"
},
{
"name": "/actions/main/in/SLAudioStopTrigger",
"type": "boolean"
},
{
"name": "/actions/main/in/LeftGrasp axis",
"type": "vector1"
Expand Down Expand Up @@ -449,8 +441,6 @@
"/actions/main/in/SLTrigger": "SLTrigger",
"/actions/main/in/LeftGraspHelper": "LeftGraspHelper",
"/actions/main/in/RightGraspHelper": "RightGraspHelper",
"/actions/main/in/SLAudioStartTrigger": "SLAudioStartTrigger",
"/actions/main/in/SLAudioStopTrigger": "SLAudioStopTrigger",
"/actions/main/in/LeftGrasp axis": "LeftGrasp",
"/actions/main/in/RightGrasp axis": "RightGrasp",
"/actions/main": "Main Game Actions"
Expand Down
30 changes: 0 additions & 30 deletions Config/SteamVRBindings/vive_controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,36 +141,6 @@
}
}
},
{
"mode": "dpad",
"path": "/user/hand/right/input/trackpad",
"parameters":
{
"sub_mode": "click"
},
"inputs":
{
"north":
{
"output": "/actions/main/in/SLAudioStartTrigger"
}
}
},
{
"mode": "dpad",
"path": "/user/hand/right/input/trackpad",
"parameters":
{
"sub_mode": "click"
},
"inputs":
{
"south":
{
"output": "/actions/main/in/SLAudioStopTrigger"
}
}
},
{
"mode": "trigger",
"path": "/user/hand/left/input/trigger",
Expand Down
Binary file modified Content/Levels/Laborraum.umap
Binary file not shown.
Binary file added Content/Maps/Apartment/Breakfast_Map_1.umap
Binary file not shown.
Binary file modified Content/Maps/Apartment/Main.umap
Binary file not shown.
Binary file not shown.
Binary file modified Content/Maps/Simulation/PouringSimulator_1.umap
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 modified Content/Models/IAIKitchen/Dishes/BigBowl/SM_BigBowl_01.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Content/Models/Misc/PouringParticle/BP_SM_BigBowl.uasset
Binary file not shown.
Binary file modified Content/Models/Misc/PouringParticle/BP_SM_Table.uasset
Binary file not shown.
Binary file not shown.
Binary file modified Content/Models/Misc/PouringParticle/SM_BigBowl_1.uasset
Binary file not shown.
4 changes: 4 additions & 0 deletions SavedData.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SourceContainer,DestinationContainer,PouringTime,RotationSpeed,MaximumAngle,SourcePosX,SourcePosY,SourcePosZ,DestPosX,DestPosY,DestPosZ,NumberOfParticles,IsPouringFailed
SM_Cup,SM_Blue_Cup,2.485097,1.0,110.0,-0.06665,-6.788941,63.928764,-0.066666,0.375078,49.741776,132,True
SM_Cup,SM_Blue_Cup,1.969125,1.0,110.0,-0.06665,-6.788941,63.928764,-0.066666,0.375078,49.741776,132,True

8 changes: 4 additions & 4 deletions Source/RobCoG/Private/BP_ParentActor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void ABP_ParentActor::EndPlay(const EEndPlayReason::Type reason) {
SaveDirectory += TEXT("SavedData.csv");

// if overwriting is allowed then overwrite the file each time the game starts.
FString FinalString = TEXT("SourceContainer,DestinationContainer,PouringTime,RotationSpeed,MinimumAngle,MaximumAngle,SourcePosX,SourcePosY,SourcePosZ,DestPosX,DestPosY,DestPosZ,NumberOfParticles,IsPouringFailed");
FString FinalString = TEXT("SourceContainer,DestinationContainer,PouringTime,RotationSpeed,MaximumAngle,SourcePosX,SourcePosY,SourcePosZ,DestPosX,DestPosY,DestPosZ,NumberOfParticles,IsPouringFailed");
FinalString += LINE_TERMINATOR;

FString FinalOutPutStr = "";
Expand Down Expand Up @@ -74,11 +74,11 @@ void ABP_ParentActor::EndPlay(const EEndPlayReason::Type reason) {

// this is basically time stamps from first and last raws and getting how long it took to pour.
double PouringTime = 0.0;
FString MinimumPouringAngle, MaximumPouringAngle;
FString MaximumPouringAngle;
// check if all data are correctly logged from the blueprint
if(LastRawArrayData.Num() > 5 && FirstRawArrayData.Num() > 5) {
PouringTime = FCString::Atod(*LastRawArrayData[2]) - FCString::Atod(*FirstRawArrayData[2]);
MinimumPouringAngle = FirstRawArrayData[4];
//MinimumPouringAngle = FirstRawArrayData[4];
MaximumPouringAngle = LastRawArrayData[4];
}

Expand All @@ -95,7 +95,7 @@ void ABP_ParentActor::EndPlay(const EEndPlayReason::Type reason) {
FinalOutPutStr += FString::SanitizeFloat(PouringTime) + TEXT(",");
}
else if (i == 4) {
FinalOutPutStr += MinimumPouringAngle + TEXT(",");
//FinalOutPutStr += MinimumPouringAngle + TEXT(",");
FinalOutPutStr += MaximumPouringAngle + TEXT(",");
}
else {
Expand Down