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

Update Makefile #2

Open
wants to merge 47 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
a5ad2db
Fix typo in bumper.c sample project (#6489)
amoor22 Jan 29, 2024
df9db42
Merge branch 'develop' into sync-master-a5ad2db87
omichel Jan 30, 2024
c98f831
Merge pull request #6490 from cyberbotics/sync-master-a5ad2db87
omichel Jan 30, 2024
eff5548
Update tutorial-1-your-first-simulation-in-webots.md (#6491)
yousefbilal Jan 30, 2024
46c57eb
Merge branch 'master' into sync-released-eff554879
omichel Jan 31, 2024
3a60e9f
Merge pull request #6492 from cyberbotics/sync-released-eff554879
omichel Jan 31, 2024
43ddacf
Merge branch 'develop' into sync-master-3a60e9f30
omichel Feb 1, 2024
25a6dad
Merge pull request #6493 from cyberbotics/sync-master-3a60e9f30
omichel Feb 1, 2024
12a4627
Update config.yml (#6500)
omichel Feb 14, 2024
3ce8b15
Fix jnilibs flags (#6501)
koenyskout Feb 14, 2024
7ba2592
Merge branch 'develop' into sync-master-3ce8b1596
omichel Feb 15, 2024
97cc06e
Merge pull request #6502 from cyberbotics/sync-master-3ce8b1596
omichel Feb 15, 2024
6540d4d
Fixed field type of followType and updated default value of bloomThre…
BlueAndi Feb 21, 2024
c904771
Merge branch 'master' into sync-released-6540d4dcd
omichel Feb 22, 2024
aa3c45e
Merge pull request #6509 from cyberbotics/sync-released-6540d4dcd
omichel Feb 22, 2024
10a7c58
Merge branch 'develop' into sync-master-aa3c45e3a
omichel Feb 23, 2024
d1794b9
Merge pull request #6510 from cyberbotics/sync-master-aa3c45e3a
omichel Feb 23, 2024
af596b4
remove position from crazyflie proto (#6511)
knmcguire Feb 23, 2024
65d7cfd
Merge branch 'develop' into sync-master-af596b463
omichel Feb 26, 2024
db8dbbd
Merge pull request #6512 from cyberbotics/sync-master-af596b463
omichel Feb 26, 2024
3a73f7b
Update generate_proto_list.py (#6523)
FrogGuaGuaGua Mar 25, 2024
f204779
Merge branch 'develop' into sync-master-3a73f7b9b
omichel Mar 26, 2024
9f43f44
Merge pull request #6526 from cyberbotics/sync-master-3a73f7b9b
omichel Mar 26, 2024
47d8da2
Fix missing pi offset after merge of #6417 (#6525)
TonyWelte Mar 26, 2024
4553b96
Removed installation of unused dependencies (#6529)
omichel Apr 2, 2024
ba21c2d
Merge branch 'develop' into sync-master-4553b962a
omichel Apr 3, 2024
7b2e6ed
Merge pull request #6530 from cyberbotics/sync-master-4553b962a
omichel Apr 3, 2024
b10dda3
Added script for counting lines of code
omichel Apr 10, 2024
03dc321
converted to UNIX LF
omichel Apr 10, 2024
01df207
Fixed PEP8 in count_lines.py (#6537)
omichel Apr 11, 2024
836e9ba
Merge branch 'develop' into sync-master-01df207c0
omichel Apr 12, 2024
08b6a5f
Merge pull request #6538 from cyberbotics/sync-master-01df207c0
omichel Apr 12, 2024
ddf2fde
Fixed Windows compilation on the CI worker (#6550)
omichel May 24, 2024
6c9cdcf
Merge branch 'develop' into master
omichel May 24, 2024
c1978ff
update PR template to refer to 2024 changelog (#6554)
CoolSpy3 May 29, 2024
06cb82a
Add libssl to MSys2 Windows Distribution (#6553)
CoolSpy3 May 29, 2024
fdaa208
Fix getPose() returning arrays of length 3 in Java. (#6556)
brettle May 30, 2024
e3a5f1f
Add Light Sensor to Sensors List (#6558)
CoolSpy3 Jun 1, 2024
69681a9
[Java Controller API] Fix Length of Arrays Returned by `CameraRecogni…
CoolSpy3 Jun 22, 2024
0c0e31c
Canged code to convert compass readings into a bearing (#6568)
AntaresMKII Jun 30, 2024
006a6b7
Merge branch 'master' into sync-released-0c0e31c77
omichel Jul 1, 2024
c2ea36b
Merge pull request #6569 from cyberbotics/sync-released-0c0e31c77
omichel Jul 1, 2024
62f04c7
Improved installation instructions (#6575)
omichel Jul 4, 2024
e2e52f3
Merge branch 'master' into sync-released-62f04c7db
omichel Jul 5, 2024
1c6c9a3
Merge pull request #6576 from cyberbotics/sync-released-62f04c7db
omichel Jul 5, 2024
a01ffad
Fix #6578 `Device`s with Duplicate Names Cause Unexpected Behavior (#…
CoolSpy3 Jul 10, 2024
e8f409e
Update Makefile
Kreijstal Jan 20, 2024
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
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ contact_links:
- name: GitHub Discussions
url: https://github.com/cyberbotics/webots/discussions/new
about: Ask a question or request a new feature in Webots
- name: StackOverflow
url: https://stackoverflow.com/questions/tagged/webots
- name: Robotics StackExchange
url: https://robotics.stackexchange.com
about: Ask technical questions (be sure to use the 'webots' tag).
- name: Discord Server
url: https://discordapp.com/invite/nTWbN9m
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This pull-request fixes issue #

**Tasks**
Add the list of tasks of this PR.
- [ ] Update the [changelog](https://github.com/cyberbotics/webots/blob/master/docs/reference/changelog-r2023.md)
- [ ] Update the [changelog](https://github.com/cyberbotics/webots/blob/master/docs/reference/changelog-r2024.md)
- [ ] Update the documentation (if needed)
- [ ] Task 1
- [ ] Task 2
Expand Down
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ START := $(shell date +%s)

ifeq ($(WEBOTS_HOME),)
ifneq ($(findstring MINGW,$(shell uname)),) # under MINGW, we need to set WEBOTS_HOME using the native Windows format
export WEBOTS_HOME:=`pwd -W | tr -s / '\\'`
# Check if cygpath exists
CYGPATH := $(shell which cygpath)
ifneq ($(CYGPATH),)
# If cygpath exists, use it to set WEBOTS_HOME
export WEBOTS_HOME:=$(shell cygpath -w $(PWD))
else
export WEBOTS_HOME:=`pwd -W | tr -s / '\\'`
endif
else
export WEBOTS_HOME = $(PWD)
endif
Expand Down
Binary file added docs/guide/images/sensors/LightSensor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/guide/installation-procedure.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ xvfb-run --auto-servernum webots --mode=fast --no-rendering --stdout --stderr --
It is possible to install Webots silently from an administrator DOS console, by typing:

```bash
webots-{{ webots.version.package }}_setup.exe /SILENT
webots-{{ webots.version.package }}_setup.exe /SUPPRESSMSGBOXES /VERYSILENT /NOCANCEL /NORESTART /ALLUSERS
```

Or:
Additional setup options are available and documented from:

```bash
webots-{{ webots.version.package }}\_setup.exe /VERYSILENT
webots-{{ webots.version.package }}_setup.exe /?
```

Once installed, if you observe 3D rendering anomalies or if Webots crashes, it is strongly recommend to upgrade your graphics driver.
Expand Down
1 change: 1 addition & 0 deletions docs/guide/sensors.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ In addition to the generic [Lidar](../reference/lidar.md) node, a wide range of
| ![Gyro.png](images/sensors/Gyro.png) | [Gyro](../reference/gyro.md) | *Simulates a gyroscope sensor which measures the relative angular velocities.* |
| ![InertialUnit.png](images/sensors/InertialUnit.png) | [InertialUnit](../reference/inertialunit.md) | *Simulates a sensor which measures the relative roll, pitch and yaw angles.* |
| ![Lidar.png](images/sensors/Lidar.png) | [Lidar](../reference/lidar.md) | *Simulates a laser-scanner sensor also known as lidar.* |
| ![LightSensor.png](images/sensors/LightSensor.png) | [LightSensor](../reference/lightsensor.md) | *Simulates a photo-sensitive device which can measure the irradiance of light in a given direction.* |
| ![PositionSensor.png](images/sensors/PositionSensor.png) | [PositionSensor](../reference/positionsensor.md) | *Simulates a sensor which can monitor a joint position, such as an encoder or a potentiometer.* |
| ![Radar.png](images/sensors/Radar.png) | [Radar](../reference/radar.md) | *Simulates a radar sensor.* |
| ![RangeFinder.png](images/sensors/RangeFinder.png) | [RangeFinder](../reference/rangefinder.md) | *Simulates a depth camera also known as range-finder.* |
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/tutorial-1-your-first-simulation-in-webots.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The guided tour is also available from the *Help* menu of Webots.

### Create a New World

A **World** is a file containing information like where the objects are, what they look like, how they interact with each other, what is the color of the sky, how is defined the gravity, friction, masses of the objects, etc.
A **World** is a file containing information like where the objects are, what they look like, how they interact with each other, what is the color of the sky, and the definitions of gravity, friction, masses of the objects, etc.
It defines the initial state of a simulation.
The different objects are called **Nodes** and are organized hierarchically in a **Scene Tree**.
Therefore, a node may contain sub-nodes.
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/changelog-r2023.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Released on XXX XXth, 2023.
- Fixed values returned by the [Receiver.getEmitterDirection](https://cyberbotics.com/doc/reference/receiver?tab-language=python#wb_receiver_get_emitter_direction) Python method ([#6394](https://github.com/cyberbotics/webots/pull/6394)).
- Fixed recognition of omnidirectional cameras with fov > pi/2 in [WbObjectDetection] ([#6396](https://github.com/cyberbotics/webots/pull/6396)).
- Fixed [ElevationGrid](elevationgrid.md) collisions not matching the displayed when the x and y dimensions are different ([#6412](https://github.com/cyberbotics/webots/pull/6412))
- Fixed JNILIB_FLAGS relative reference for Java controllers ([#5181](https://github.com/cyberbotics/webots/issues/5181))


## Webots R2023b
Released on June 28th, 2023.
Expand Down
5 changes: 5 additions & 0 deletions docs/reference/changelog-r2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ Released on December **th, 2023.
- Improved the image range of the rotating [Lidar](lidar.md) ([#6324](https://github.com/cyberbotics/webots/pull/6324)).
- Cleanup
- Removed deprecated `windowPosition`, `pixelSize` fields of [Display](display.md) node ([#6327](https://github.com/cyberbotics/webots/pull/6327)).
- Bug Fixes
- Fixed error message on Windows when `libssl-3-x64.dll` was added to `PATH` ([#6553](https://github.com/cyberbotics/webots/pull/6553)).
- Fixed length of arrays returned by `getPose()` in Java ([#6556](https://github.com/cyberbotics/webots/pull/6556)).
- Fixed length of arrays returned by `CameraRecognitionObject.getColors()` in Java ([#6564](https://github.com/cyberbotics/webots/pull/6564))
- Fixed handling of device objects with the same name in the controller API ([#6579](https://github.com/cyberbotics/webots/pull/6579))
2 changes: 1 addition & 1 deletion docs/reference/compass.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Now if the [Compass](#compass) node is in *upright* position, meaning that its z
double get_bearing_in_degrees() {
const double *north = wb_compass_get_values(tag);
double rad = atan2(north[1], north[0]);
double bearing = (rad - 1.5708) / M_PI * 180.0;
double bearing = (rad / M_PI) * 180.0;
if (bearing < 0.0)
bearing = bearing + 360.0;
return bearing;
Expand Down
8 changes: 6 additions & 2 deletions docs/reference/robot.md
Original file line number Diff line number Diff line change
Expand Up @@ -766,11 +766,12 @@ WbDeviceTag wb_robot_get_device(const char *name);
namespace webots {
class Robot {
Accelerometer *getAccelerometer(const std::string &name);
Altimeter *getAltimeter(const std::string &name);
Altimeter *getAltimeter(const std::string &name);
Brake *getBrake(const std::string &name);
Camera *getCamera(const std::string &name);
Compass *getCompass(const std::string &name);
Connector *getConnector(const std::string &name);
Device *getDevice(const std::string &name);
Display *getDisplay(const std::string &name);
DistanceSensor *getDistanceSensor(const std::string &name);
Emitter *getEmitter(const std::string &name);
Expand Down Expand Up @@ -826,6 +827,7 @@ public class Robot {
public Camera getCamera(String name);
public Compass getCompass(String name);
public Connector getConnector(String name);
public Device getDevice(String name);
public Display getDisplay(String name);
public DistanceSensor getDistanceSensor(String name);
public Emitter getEmitter(String name);
Expand Down Expand Up @@ -874,7 +876,7 @@ Devices are available through their services.

*get a unique identifier to a device*

The `wb_robot_get_device` function (available in C, Python and MATLAB) returns a unique identifier for a device corresponding to a specified `name`.
The `wb_robot_get_device` function returns a unique identifier for a device corresponding to a specified `name`.
For example, if a robot contains a [DistanceSensor](distancesensor.md) node whose `name` field is "ds1", the function will return the unique identifier of that device.
This `WbDeviceTag` identifier will be used subsequently for enabling, sending commands to, or reading data from this device.
If the specified device is not found, the function returns 0 in C and MATLAB or `None` in Python.
Expand All @@ -885,6 +887,8 @@ Depending on the called function, this object can be an instance of a `Device` s
For example, if a robot contains a [DistanceSensor](distancesensor.md) node whose `name` field is "ds1", the function `getDistanceSensor` will return a reference to a [DistanceSensor](distancesensor.md) object.
If the specified device is not found, the function returns `NULL` in C++ or `null` in Java.

Note that if any two devices share the same name, `wb_robot_get_device` will return the first one it finds. In order to distinguish between devices with the same name, users should consider iterating over a robot's devices using `wb_robot_get_device_by_index` and `wb_robot_get_number_of_devices`.

---

#### `wb_robot_get_device_by_index`
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/viewpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Viewpoint {
SFFloat far 0.0 # [near, inf)
SFFloat exposure 1.0 # [0, inf)
SFString follow "" # any string
SFBool followType "Tracking Shot" # {"None", "Tracking Shot", "Mounted Shot", "Pan and Tilt Shot"}
SFString followType "Tracking Shot" # {"None", "Tracking Shot", "Mounted Shot", "Pan and Tilt Shot"}
SFFloat followSmoothness 0.5 # [0, 1]
SFNode lensFlare NULL # {LensFlare, PROTO}
SFFloat ambientOcclusionRadius 2 # [0, inf)
SFFloat bloomThreshold 10 # [0, inf)
SFFloat bloomThreshold 21 # [0, inf)
}
```

Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Accelerometer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class Accelerometer : public Device {
public:
explicit Accelerometer(const std::string &name) : Device(name) {} // Use Robot::getAccelerometer() instead
explicit Accelerometer(WbDeviceTag tag) : Device(tag) {}
virtual ~Accelerometer() {}
virtual void enable(int samplingPeriod);
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Altimeter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class Altimeter : public Device {
public:
explicit Altimeter(const std::string &name) : Device(name) {} // Use Robot::getAltimeter instead
explicit Altimeter(WbDeviceTag tag) : Device(tag) {}
virtual ~Altimeter() {}
virtual void enable(int samplingPeriod);
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Brake.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ namespace webots {
Device(name),
motor(NULL),
positionSensor(NULL) {} // Use Robot::getBrake() instead
explicit Brake(WbDeviceTag tag) : Device(tag), motor(NULL), positionSensor(NULL) {}
virtual ~Brake() {}
Type getType() const;
void setDampingConstant(double dampingConstant) const;
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace webots {
class Camera : public Device {
public:
explicit Camera(const std::string &name) : Device(name) {} // Use Robot::getCamera() instead
explicit Camera(WbDeviceTag tag) : Device(tag) {}
virtual ~Camera() {}
virtual void enable(int samplingPeriod);
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Compass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class Compass : public Device {
public:
explicit Compass(const std::string &name) : Device(name) {} // Use Robot::getCompass() instead
explicit Compass(WbDeviceTag tag) : Device(tag) {}
virtual ~Compass() {}
virtual void enable(int samplingPeriod);
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Connector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class Connector : public Device {
public:
explicit Connector(const std::string &name) : Device(name) {} // Use Robot::getConnector() instead
explicit Connector(WbDeviceTag tag) : Device(tag) {}
virtual ~Connector() {}
virtual void enablePresence(int samplingPeriod);
virtual void disablePresence();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ namespace webots {

protected:
explicit Device(const std::string &name);
explicit Device(WbDeviceTag tag);

private:
WbDeviceTag tag;
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Display.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace webots {
public:
enum { RGB = 3, RGBA, ARGB, BGRA, ABGR };
explicit Display(const std::string &name) : Device(name) {} // Use Robot::getDisplay() instead
explicit Display(WbDeviceTag tag) : Device(tag) {}
virtual ~Display() {}
int getWidth() const;
int getHeight() const;
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/DistanceSensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace webots {
typedef enum { GENERIC = 0, INFRA_RED, SONAR, LASER } Type;

explicit DistanceSensor(const std::string &name) : Device(name) {} // Use Robot::getDistanceSensor() instead
explicit DistanceSensor(WbDeviceTag tag) : Device(tag) {}
virtual ~DistanceSensor() {}
virtual void enable(int samplingPeriod);
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Emitter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class Emitter : public Device {
public:
explicit Emitter(const std::string &name) : Device(name) {} // Use Robot::getEmitter() instead
explicit Emitter(WbDeviceTag tag) : Device(tag) {}
virtual ~Emitter() {}
enum { CHANNEL_BROADCAST = -1 };
virtual int send(const void *data, int size);
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/GPS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace webots {
typedef enum { LOCAL = 0, WGS84 } CoordinateSystem;

explicit GPS(const std::string &name) : Device(name) {} // Use Robot::getGPS() instead
explicit GPS(WbDeviceTag tag) : Device(tag) {}
virtual ~GPS() {}

virtual void enable(int samplingPeriod);
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Gyro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class Gyro : public Device {
public:
explicit Gyro(const std::string &name) : Device(name) {} // Use Robot::getGyro() instead
explicit Gyro(WbDeviceTag tag) : Device(tag) {}
virtual ~Gyro() {}
virtual void enable(int samplingPeriod);
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/InertialUnit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class InertialUnit : public Device {
public:
explicit InertialUnit(const std::string &name) : Device(name) {} // Use Robot::getInertialUnit() instead
explicit InertialUnit(WbDeviceTag tag) : Device(tag) {}
virtual ~InertialUnit() {}
virtual void enable(int samplingPeriod);
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/LED.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class LED : public Device {
public:
explicit LED(const std::string &name) : Device(name) {} // Use Robot::getLED() instead
explicit LED(WbDeviceTag tag) : Device(tag) {}
virtual ~LED() {}
virtual void set(int value);
int get() const;
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Lidar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace webots {
class Lidar : public Device {
public:
explicit Lidar(const std::string &name) : Device(name) {} // Use Robot::getLidar() instead
explicit Lidar(WbDeviceTag tag) : Device(tag) {}
virtual ~Lidar() {}
virtual void enable(int samplingPeriod);
void enablePointCloud();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/LightSensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class LightSensor : public Device {
public:
explicit LightSensor(const std::string &name) : Device(name) {} // Use Robot::getLightSensor() instead
explicit LightSensor(WbDeviceTag tag) : Device(tag) {}
virtual ~LightSensor() {}
virtual void enable(int samplingPeriod);
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Motor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ namespace webots {
Device(name),
brake(NULL),
positionSensor(NULL) {} // Use Robot::getMotor() instead
explicit Motor(WbDeviceTag tag) : Device(tag), brake(NULL), positionSensor(NULL) {}
virtual ~Motor() {}

virtual void setPosition(double position);
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Pen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class Pen : public Device {
public:
explicit Pen(const std::string &name) : Device(name) {} // Use Robot::getPen() instead
explicit Pen(WbDeviceTag tag) : Device(tag) {}
virtual ~Pen() {}
virtual void write(bool write);
virtual void setInkColor(int color, double density);
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/PositionSensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ namespace webots {
Device(name),
brake(NULL),
motor(NULL) {} // Use Robot::getPositionSensor() instead
explicit PositionSensor(WbDeviceTag tag) : Device(tag), brake(NULL), motor(NULL) {}
virtual ~PositionSensor() {}
virtual void enable(int samplingPeriod); // milliseconds
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Radar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace webots {
class Radar : public Device {
public:
explicit Radar(const std::string &name) : Device(name) {} // Use Robot::getRadar() instead
explicit Radar(WbDeviceTag tag) : Device(tag) {}
virtual ~Radar() {}
virtual void enable(int samplingPeriod);
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/RangeFinder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class RangeFinder : public Device {
public:
explicit RangeFinder(const std::string &name) : Device(name) {} // Use Robot::getRangeFinder() instead
explicit RangeFinder(WbDeviceTag tag) : Device(tag) {}
virtual ~RangeFinder() {}
virtual void enable(int samplingPeriod);
virtual void disable();
Expand Down
1 change: 1 addition & 0 deletions include/controller/cpp/webots/Receiver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace webots {
class Receiver : public Device {
public:
explicit Receiver(const std::string &name) : Device(name) {} // Use Robot::getReceiver() instead
explicit Receiver(WbDeviceTag tag) : Device(tag) {}
virtual ~Receiver() {}
enum { CHANNEL_BROADCAST = -1 };
virtual void enable(int samplingPeriod);
Expand Down
Loading
Loading