Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instant crash at launch #22

Open
SteveNguyen opened this issue Dec 12, 2024 · 2 comments
Open

Instant crash at launch #22

SteveNguyen opened this issue Dec 12, 2024 · 2 comments

Comments

@SteveNguyen
Copy link

All the examples crashe immediately with no log or specific error message.
Example for ros2 launch mujoco_ros2_control_demos cart_example_position.launch.py
Image

Same behavior for both the main and humble-devel branches.
Digging a little bit it seems like calls to controller_manager (read/write and update) in the update() method of MujocoRos2Control provoke the problem?

controller_manager_->read(sim_time_ros, sim_period);

Any idea?

Tested under:

  • Ubuntu 22.04.3
  • ROS2 Humble
@sangteak601
Copy link
Member

It works fine on my machine. It looks like a dependency issue.

Can you try installing dependencies before launching them?

rosdep update && rosdep install --from-paths ./ --ignore-src -y

@SteveNguyen
Copy link
Author

Well, oddly enough, it works if I compile everything in debug mode with:
colcon build --packages-select mujoco_ros2_control --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants