Skip to content

Commit d227e59

Browse files
authored
Merge pull request #2 from rticommunity/RenovatedGUIs
Refreshed GUIs
2 parents b949a18 + 1028ee6 commit d227e59

28 files changed

Lines changed: 3022 additions & 955 deletions

modules/01-operating-room/CMakeLists.txt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,30 @@ connextdds_rtiddsgen_run(
5353
OUTPUT_DIRECTORY
5454
"${CMAKE_CURRENT_BINARY_DIR}/src/"
5555
LANG C++11
56-
DISABLE_PREPROCESSOR
56+
UNBOUNDED
57+
)
58+
59+
# Generate C++ types for DDS Security builtin logging topic when NDDSHOME is available.
60+
set(BUILTIN_LOGGING_IDL "${CONNEXTDDS_DIR}/resource/idl/builtin_logging_type.idl")
61+
connextdds_rtiddsgen_run(
62+
IDL_FILE
63+
"${BUILTIN_LOGGING_IDL}"
64+
OUTPUT_DIRECTORY
65+
"${CMAKE_CURRENT_BINARY_DIR}/src/"
66+
LANG C++11
67+
UNBOUNDED
5768
)
5869

5970
# Use command line to manually generate Python types
6071
execute_process(
61-
COMMAND bash -c "rtiddsgen ../../system_arch/Types.xml -ppDisable -d src -language python -create typefiles"
72+
COMMAND bash -c "${RTICODEGEN_DIR}/rtiddsgen ../../system_arch/Types.xml -ppDisable -d src -language python -create typefiles"
6273
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
6374
)
6475

6576
# Build object library with types
66-
add_library(refArchTypes OBJECT
77+
add_library(refArchTypes OBJECT
6778
${Types_CXX11_GENERATED_SOURCES}
79+
${builtin_logging_type_CXX11_GENERATED_SOURCES}
6880
)
6981
target_link_libraries(refArchTypes
7082
PRIVATE

modules/01-operating-room/README.md

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,44 +54,51 @@ It displays current device statuses, presents buttons to administer device comma
5454

5555
To install Connext, follow the [installation guide](https://community.rti.com/static/documentation/connext-dds/7.3.0/doc/manuals/connext_dds_professional/installation_guide/installation_guide/Installing.htm#Chapter_1_Installing_RTI%C2%A0Connext) and other required tools. You will also need the [Python API](https://community.rti.com/static/documentation/connext-dds/7.3.0/doc/manuals/connext_dds_professional/getting_started_guide/python/before_python.html#installing-connext-heading) to be installed. **Make sure you run [Hands-On 1: Your First DataWriter and DataReader](https://community.rti.com/static/documentation/connext-dds/7.3.0/doc/manuals/connext_dds_professional/getting_started_guide/python/intro_pubsub_python.html#hands-on-1-your-first-datawriter-and-datareader) from the Getting Started Guide to confirm that the Python API works.**
5656

57-
Dependencies for building with C++:
57+
Dependencies for building the C++ applications:
5858

59-
- `build-essential`
59+
- `build-essential` — compiler toolchain
60+
- `pkg-config` — library discovery
61+
- `libgtkmm-3.0-dev` — GTK+ C++ bindings used by *Arm Controller* and *Orchestrator*
6062

61-
Dependencies used for GUI applications:
63+
Dependencies for the Python GUI applications (*Arm Monitor*, *Patient Monitor*):
6264

63-
- `PyGObject`
64-
- `GTK`
65+
- `PyQt5` — Qt5 widget toolkit
66+
- `pyqtgraph` — fast scientific plotting
67+
- `numpy` — numerical arrays
6568

66-
Install (Debian) system-provided packages with *apt*:
69+
#### Option A: Install system-provided packages with *apt*
6770

6871
```bash
6972
sudo apt install \
7073
build-essential \
74+
pkg-config \
75+
libgtkmm-3.0-dev \
7176
python3-pip \
72-
python3-gi \
73-
python3-gi-cairo \
74-
python3-matplotlib \
77+
python3-pyqt5 \
7578
python3-numpy \
76-
python3-cairo \
77-
gir1.2-gtk-4.0 \
78-
libgtksourceviewmm-3.0-dev
79+
python3-pyqtgraph
7980
```
8081

81-
Alternatively, install PyPI-provided packages with *pip* (for virtual environments):
82+
#### Option B: Install PyPI-provided packages with *pip* (recommended for virtual environments)
83+
84+
First install the system build dependencies:
8285

8386
```bash
8487
sudo apt install \
8588
build-essential \
89+
pkg-config \
90+
libgtkmm-3.0-dev \
8691
python3-dev \
87-
libcairo2-dev \
88-
libgirepository-2.0-dev \
89-
gir1.2-gtk-4.0
92+
python3-pip
93+
```
9094

95+
Then install the Python packages:
96+
97+
```bash
9198
pip install \
92-
pygobject \
93-
numpy \
94-
matplotlib
99+
PyQt5 \
100+
pyqtgraph \
101+
numpy
95102
```
96103

97104
### 2. Build the Project using CMake

0 commit comments

Comments
 (0)