Skip to content

Commit e42cf9d

Browse files
committed
Add z-offset parameter to tool settings and remove debug output
1 parent a128b22 commit e42cf9d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ The plugin moves the three axes and adjusts the tool size according to the follo
103103
},
104104
"tool": {
105105
"length": <scalar>,
106-
"diameter": <scalar>
106+
"diameter": <scalar>,
107+
"z_offset": <scalar>
107108
},
108109
"metrics": {
109110
<map of custom key-values>
@@ -121,7 +122,9 @@ The plugin supports the following settings in the INI file:
121122

122123
```ini
123124
[machinetool]
124-
# Describe the settings available to the plugin
125+
sub_topic = ["fmu_machine_tool"]
126+
initial_position = [0, 0, 200]
127+
tool = {length = 100, diameter = 20, z_offset = 50}
125128
```
126129

127130
All settings are optional; if omitted, the default values are used.

src/machine_viewer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <vector>
1515

1616
#include <rerun.hpp>
17-
#include <iostream>
1817

1918
namespace {
2019

@@ -121,7 +120,6 @@ struct MachineViewer::Impl {
121120
0.0F,
122121
-0.5F * length_f + static_cast<float>(_tool_z_offset)
123122
);
124-
std::cout << "Loading tool with length " << length << " and diameter " << diameter << " and z_offset " << _tool_z_offset << std::endl;
125123

126124
const auto tool = rerun::Cylinders3D::from_lengths_and_radii({length_f}, {radius_f})
127125
.with_centers({center})

0 commit comments

Comments
 (0)