Skip to content

Commit

Permalink
Directly open named pipe
Browse files Browse the repository at this point in the history
Turns out it's actually possible to directly open a named pipe, so we can do away with the redirect-named-pipe-to-file-in-mod-dir work-around.

Not sure why it works now, as from earlier tests we had the impression it didn't, but seeing as this simplifies things quite a bit, I'm not complaining.

Note: this also requires changes on the `fs_mod_ros_windows` side, but those will be made in that repository.
gavanderhoorn committed Jan 28, 2024
1 parent 869a170 commit 80770fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modROS.lua
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ function ModROS:loadMap()
self.l_v_z_0 = 0

-- initialise connection to the Python side (but do not connect it yet)
self.path = ModROS.MOD_DIR .. "ROS_messages"
self.path = "\\\\.\\pipe\\FS19_modROS_pipe"
self._conx = WriteOnlyFileConnection.new(self.path)

-- initialise no-namespace-specific publishers

0 comments on commit 80770fd

Please sign in to comment.