Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;

public class Ball3DAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;

public class Ball3DHardAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;

public class BasicAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;

public class BouncerAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using UnityEngine;
using MLAgents;
using MLAgentsExamples;
using MLAgents.Sensors;

[RequireComponent(typeof(JointDriveController))] // Required to set joint forces
public class CrawlerAgent : Agent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;

public class FoodCollectorAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using UnityEngine;
using System.Linq;
using MLAgents;
using MLAgents.Sensors;
using UnityEngine.Serialization;

public class GridAgent : Agent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections;
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;

public class HallwayAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using UnityEngine;
using Random = UnityEngine.Random;
using MLAgents;
using MLAgents.Sensors;

public class PyramidAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;

public class ReacherAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;

public class TemplateAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using UnityEngine;
using UnityEngine.UI;
using MLAgents;
using MLAgents.Sensors;

public class TennisAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using UnityEngine;
using MLAgents;
using MLAgentsExamples;
using MLAgents.Sensors;

public class WalkerAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using UnityEngine;
using MLAgents;
using Barracuda;

using MLAgents.Sensors;

public class WallJumpAgent : Agent
{
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Beta support for ONNX export was added. If the `tf2onnx` python package is installed, models will be saved to `.onnx` as well as `.nn` format.
Note that Barracuda 0.6.0 or later is required to import the `.onnx` files properly
- Multi-GPU training and the `--multi-gpu` option has been removed temporarily. (#3345)
- All Sensor related code has been moved to the namespace `MLAgents.Sensors`.

### Minor Changes
- Monitor.cs was moved to Examples. (#3372)
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Editor/BehaviorParametersEditor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using UnityEngine;
using MLAgents.Sensors;
using UnityEditor;
using Barracuda;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;
using UnityEditor;
using Barracuda;
using MLAgents.Sensors;

namespace MLAgents
{
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/Runtime/Agent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
using Barracuda;
using MLAgents.Sensors;

namespace MLAgents
{
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using MLAgents.CommunicatorObjects;
using UnityEngine;
using System.Runtime.CompilerServices;
using MLAgents.Sensors;

[assembly: InternalsVisibleTo("Unity.ML-Agents.Editor")]
[assembly: InternalsVisibleTo("Unity.ML-Agents.Editor.Tests")]
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/Runtime/Communicator/ICommunicator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using MLAgents.Sensors;

namespace MLAgents
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Linq;
using UnityEngine;
using MLAgents.CommunicatorObjects;
using MLAgents.Sensors;
using System.IO;
using Google.Protobuf;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.IO;
using Google.Protobuf;
using System.Collections.Generic;
using MLAgents.Sensors;

namespace MLAgents
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using Barracuda;
using UnityEngine;
using MLAgents.Sensors;

namespace MLAgents.InferenceBrain
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Barracuda;
using MLAgents.InferenceBrain.Utils;
using UnityEngine;
using MLAgents.Sensors;

namespace MLAgents.InferenceBrain
{
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/InferenceBrain/ModelRunner.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Barracuda;
using UnityEngine.Profiling;
using System;
using MLAgents.Sensors;

namespace MLAgents.InferenceBrain
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Barracuda;
using MLAgents.Sensors;

namespace MLAgents.InferenceBrain
{
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/Runtime/Policy/BarracudaPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections.Generic;
using MLAgents.InferenceBrain;
using System;
using MLAgents.Sensors;

namespace MLAgents
{
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/Runtime/Policy/HeuristicPolicy.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System;
using MLAgents.Sensors;

namespace MLAgents
{
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/Runtime/Policy/IPolicy.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using MLAgents.Sensors;

namespace MLAgents
{
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/Runtime/Policy/RemotePolicy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using UnityEngine;
using System.Collections.Generic;
using System;
using MLAgents.Sensors;

namespace MLAgents
{
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Sensor/CameraSensor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// A sensor that wraps a Camera object to generate visual observations for an agent.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// A SensorComponent that creates a <see cref="CameraSensor"/>.
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Sensor/ISensor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// The compression setting for visual/camera observations.
Expand Down
3 changes: 1 addition & 2 deletions com.unity.ml-agents/Runtime/Sensor/Observation.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using UnityEngine;

namespace MLAgents
namespace MLAgents.Sensors
{
internal struct Observation
{
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Sensor/RayPerceptionSensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// Determines which dimensions the sensor will perform the casts in.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// A component for 2D Ray Perception.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using UnityEngine.Serialization;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// A component for 3D Ray Perception.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using UnityEngine;
using UnityEngine.Serialization;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// A base class to support sensor components for raycast-based sensors.
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Sensor/RenderTextureSensor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// Sensor class that wraps a <see cref="RenderTexture"/> instance.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// Component that wraps a <see cref="RenderTextureSensor"/>.
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Sensor/SensorBase.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// A base sensor that provides a number default implementations.
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Sensor/SensorComponent.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// Editor components for creating Sensors. Generally an ISensor implementation should have a
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Sensor/SensorShapeValidator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using UnityEngine;

namespace MLAgents
namespace MLAgents.Sensors
{
internal class SensorShapeValidator
{
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Sensor/StackingSensor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// Sensor that wraps around another Sensor to provide temporal stacking.
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Sensor/VectorSensor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using UnityEngine;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// A sensor implementation for vector observations.
Expand Down
2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Sensor/WriteAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Barracuda;
using MLAgents.InferenceBrain;

namespace MLAgents
namespace MLAgents.Sensors
{
/// <summary>
/// Allows sensors to write to both TensorProxy and float arrays/lists.
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/Runtime/Utilities.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using UnityEngine;
using MLAgents.Sensors;

namespace MLAgents
{
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/Tests/Editor/DemonstrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.IO.Abstractions.TestingHelpers;
using System.Reflection;
using MLAgents.CommunicatorObjects;
using MLAgents.Sensors;

namespace MLAgents.Tests
{
Expand Down
1 change: 1 addition & 0 deletions com.unity.ml-agents/Tests/Editor/MLAgentsEditModeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using NUnit.Framework;
using System.Reflection;
using System.Collections.Generic;
using MLAgents.Sensors;

namespace MLAgents.Tests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using NUnit.Framework;
using UnityEngine;
using MLAgents.Sensors;

namespace MLAgents.Tests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using MLAgents.Sensors;

namespace MLAgents.Tests
{
Expand Down
Loading