Skip to content

Commit

Permalink
gh: debug egl runner
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidPL1 committed Dec 5, 2024
1 parent d66c562 commit e297dfd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,31 @@ jobs:
distro: [noetic, one]
render_backend: [GLFW, OSMESA, EGL, DISABLE]
mujoco: [3.2.0]
include:
# include:
# - distro: noetic
# mujoco: 3.2.0
# env:
# CATKIN_LINT: true
# CCOV: true
# - distro: one
# mujoco: 3.2.0
# env:
# CLANG_TIDY: pedantic
exclude:
- distro: noetic
mujoco: 3.2.0
env:
CATKIN_LINT: true
CCOV: true
render_backend: GLFW
- distro: noetic
render_backend: OSMESA
- distro: noetic
render_backend: EGL
- distro: noetic
render_backend: DISABLE
- distro: one
render_backend: GLFW
- distro: one
render_backend: OSMESA
- distro: one
mujoco: 3.2.0
env:
CLANG_TIDY: pedantic
render_backend: DISABLE

env:
BUILDER: colcon
Expand Down
6 changes: 5 additions & 1 deletion mujoco_ros/src/mujoco_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,16 @@ MujocoEnv::MujocoEnv(const std::string &admin_hash /* = std::string()*/)
nh_ = std::make_unique<ros::NodeHandle>("~");
ROS_DEBUG_STREAM("New MujocoEnv created");

ROS_WARN("MuJoCo ROS Server is starting ...");
if (!admin_hash.empty()) {
ROS_WARN("Hash not empty");
mju::strcpy_arr(settings_.admin_hash, admin_hash.c_str());
}

ROS_WARN("Getting eval mode...");
nh_->param<bool>("eval_mode", settings_.eval_mode, false);
if (settings_.eval_mode) {
ROS_INFO("Running in evaluation mode. Parsing admin hash...");
ROS_WARN("Running in evaluation mode. Parsing admin hash...");
if (!settings_.admin_hash[0]) {
ROS_ERROR_NAMED("mujoco", "Evaluation mode requires a hash to verify critical operations are allowed. No "
"hash was provided, aborting launch.");
Expand All @@ -103,6 +106,7 @@ MujocoEnv::MujocoEnv(const std::string &admin_hash /* = std::string()*/)
}
}

ROS_WARN("Checking sim time");
if (!ros::param::get("/use_sim_time", settings_.use_sim_time)) {
ROS_FATAL_NAMED("mujoco", "/use_sim_time ROS param is unset. This node requires you to explicitly set it to true "
"or false. Also Make sure it is set before starting any node, "
Expand Down

0 comments on commit e297dfd

Please sign in to comment.