• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Scala-Robotics-Simulator / PPS-22-srs / #210

07 Aug 2025 05:00PM UTC coverage: 71.35% (-12.7%) from 84.0%
#210

Pull #22

github

GiuliaNardicchia
refactor: fix suggestions
Pull Request #22: feat: simulation engine

61 of 230 new or added lines in 17 files covered. (26.52%)

3 existing lines in 1 file now uncovered.

650 of 911 relevant lines covered (71.35%)

10.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.24
/src/main/scala/io/github/srs/utils/SimulationDefaults.scala
1
package io.github.srs.utils
2

3
import io.github.srs.model.entity.*
4
import io.github.srs.model.entity.dynamicentity.Robot
5
import io.github.srs.model.entity.dynamicentity.actuator.Actuator
6
import io.github.srs.model.entity.dynamicentity.sensor.Sensor
7
import io.github.srs.model.environment.Environment
8

9
object SimulationDefaults:
10

×
11
  object SimulationConfig:
NEW
12
    val maxCount = 10_000
×
NEW
13

×
14
  object Environment:
15
    val defaultWidth: Int = 10
3✔
16
    val minWidth: Int = 1
8✔
17
    val maxWidth: Int = 500
4✔
18

4✔
19
    val defaultHeight: Int = 10
20
    val minHeight: Int = 1
4✔
21
    val maxHeight: Int = 500
4✔
22

4✔
23
    val defaultEntities: Set[Entity] = Set.empty
24
    val maxEntities: Int = 200
10✔
25

5✔
26
  object StaticEntity:
27

×
28
    object Obstacle:
29
      val defaultPosition: Point2D = (0.0, 0.0)
3✔
30
      val defaultOrientation: Orientation = Orientation(0.0)
12✔
31
      val defaultWidth: Double = 1.0
10✔
32
      val defaultHeight: Double = 1.0
4✔
33

5✔
34
    object Light:
35
      val defaultPosition: Point2D = (0.0, 0.0)
3✔
36
      val defaultOrientation: Orientation = Orientation(0.0)
12✔
37
      val defaultRadius: Double = 0.05
10✔
38
      val defaultIlluminationRadius: Double = 1.0
4✔
39
      val defaultIntensity: Double = 1.0
4✔
40
      val defaultAttenuation: Double = 1.0
4✔
41

5✔
42
    object Boundary:
43
      val defaultPosition: Point2D = (0.0, 0.0)
3✔
44
      val defaultOrientation: Orientation = Orientation(0.0)
12✔
45
      val defaultWidth: Double = 1.0
10✔
46
      val defaultHeight: Double = 1.0
4✔
47

5✔
48
  end StaticEntity
49

50
  object DynamicEntity:
51
    val zeroSpeed: Double = 0.0
3✔
52
    val minSpeed: Double = -1.0
8✔
53
    val maxSpeed: Double = 1.0
4✔
54
    val halfSpeed: Double = 0.5
4✔
55

5✔
56
    object Robot:
57
      val defaultPosition: Point2D = (0.0, 0.0)
3✔
58
      val defaultShape: ShapeType.Circle = ShapeType.Circle(0.5)
12✔
59
      val defaultOrientation: Orientation = Orientation(0.0)
6✔
60
      val defaultActuators: Seq[Actuator[Robot]] = Seq.empty
10✔
61
      val defaultSensors: Vector[Sensor[Robot, Environment]] = Vector.empty
11✔
62
end SimulationDefaults
11✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc