Skip to content

Commit

Permalink
feat: adds more verbose output on version mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidPL1 committed Feb 7, 2024
1 parent 383ebbd commit 13489d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mujoco_ros/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
### Added
* Mocap plugin to programmatically control mocap bodies.
* Services to alter equality constraints. Note that by MuJoCo's design no new constraints can be added, though.
* The Server node now gives a more verbose error message on failure due to mismatched header and library versions.

### Fixed
* Repaired SIGINT handler callback. `C-c` in the roslaunch terminal now shuts down the MuJoCo ROS node instead of escalating to SIGTERM.
Expand Down
2 changes: 2 additions & 0 deletions mujoco_ros/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ int main(int argc, char **argv)

std::printf("MuJoCo version %s\n", mj_versionString());
if (mjVERSION_HEADER != mj_version()) {
ROS_ERROR_STREAM("Headers (" << mjVERSION_HEADER << ") and library (" << mj_versionString()
<< ") have different versions");
mju_error("Headers and library have different versions");
}

Expand Down

0 comments on commit 13489d5

Please sign in to comment.