Skip to content

Commit

Permalink
Merge from gz-launch7
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <ichen@openrobotics.org>
  • Loading branch information
iche033 committed Aug 5, 2024
2 parents f0875c3 + 0851899 commit 33146c0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
5 changes: 0 additions & 5 deletions .github/ci/packages.apt
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ binutils-dev
libgflags-dev
libgz-cmake4-dev
libgz-common6-dev
libgz-fuel-tools10-dev
libgz-sim9-dev
libgz-gui9-dev
libgz-math8-dev
libgz-math8-eigen3-dev
libgz-msgs11-dev
libgz-physics8-dev
libgz-plugin3-dev
libgz-rendering9-dev
libgz-sensors9-dev
libgz-tools2-dev
libgz-transport14-dev
libsdformat15-dev
libtinyxml2-dev
libwebsockets-dev
libxi-dev
Expand Down
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,8 @@ gz_create_docs(
TAGFILES
"${GZ-MATH_DOXYGEN_TAGFILE} = ${GZ-MATH_API_URL}"
"${GZ-MSGS_DOXYGEN_TAGFILE} = ${GZ-MSGS_API_URL}"
"${GZ-PHYSICS_DOXYGEN_TAGFILE} = ${GZ-PHYSICS_API_URL}"
"${GZ-PLUGIN_DOXYGEN_TAGFILE} = ${GZ-PLUGIN_API_URL}"
"${GZ-TRANSPORT_DOXYGEN_TAGFILE} = ${GZ-TRANSPORT_API_URL}"
"${GZ-SENSORS_DOXYGEN_TAGFILE} = ${GZ-SENSORS_API_URL}"
"${GZ-COMMON_DOXYGEN_TAGFILE} = ${GZ-COMMON_API_URL}"
"${GZ-SIM_DOXYGEN_TAGFILE} = ${GZ-SIM_API_URL}"
"${GZ-GUI_DOXYGEN_TAGFILE} = ${GZ-GUI_API_URL}"
Expand Down
5 changes: 0 additions & 5 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@
<depend>binutils</depend>
<depend>gz-cmake4</depend>
<depend>gz-common6</depend>
<depend>gz-fuel-tools9</depend>
<depend>gz-gui9</depend>
<depend>gz-math8</depend>
<depend>gz-msgs11</depend>
<depend>gz-physics7</depend>
<depend>gz-plugin3</depend>
<depend>gz-rendering8</depend>
<depend>gz-sensors8</depend>
<depend>gz-sim9</depend>
<depend>gz-tools2</depend>
<depend>gz-transport14</depend>
Expand All @@ -29,7 +25,6 @@
<depend>libxi-dev</depend>
<depend>libxmu-dev</depend>
<depend>libyaml-dev</depend>
<depend>sdformat14</depend>
<depend>tinyxml2</depend>
<depend>uuid</depend>

Expand Down
1 change: 1 addition & 0 deletions plugins/joy_to_twist/JoyToTwist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#endif

#include <string>
#include <vector>

#include <gz/msgs/joy.pb.h>
#include <gz/msgs/twist.pb.h>
Expand Down
11 changes: 8 additions & 3 deletions plugins/websocket_server/WebsocketServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,14 @@ void WebsocketServer::Run()

while (this->run)
{
// The second parameter is a timeout that is no longer used by
// libwebsockets.
lws_service(this->context, 0);
// The second parameter is used to control lws's event wait time.
// A -1 does not wait for an event, and 0 causes lws to wait
// for an event. When shutting down the websocket server, the
// wait time could be over 30 seconds if 0 is used.
//
// We are running lws in a separate thread with out our own
// condition variable. So, we will not use lws's event wait.
lws_service(this->context, -1);

// Wait for (1/60) seconds or an event.
std::unique_lock<std::mutex> lock(this->runMutex);
Expand Down
6 changes: 3 additions & 3 deletions src/cmd/cmdlaunch.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'pathname'
# Constants.
LIBRARY_VERSION = '@PROJECT_VERSION_FULL@'
COMMANDS = {
Expand All @@ -28,9 +29,8 @@ class Cmd
command = args[0]
exe_name = COMMANDS[command]

if exe_name[0] == '/'
# If the first character is a slash, we'll assume that we've been given an
# absolute path to the executable. This is only used during test mode.
if Pathname.new(exe_name).absolute?
# The exe_name can be absolute path during test. We'll leave it unchanged
else
# We're assuming that the library path is relative to the current
# location of this script.
Expand Down

0 comments on commit 33146c0

Please sign in to comment.