ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

roslaunch / gazebo failling

asked 2021-09-14 18:14:58 -0500

Theodoro Cardoso gravatar image

updated 2021-09-15 06:54:41 -0500

Hi there,

I want to build and launch a package with its gazebo.launch file using AWS RoboMaker environment.

I tried using colcon build but it results is the stderr as shown below:

ubuntu:~/environment/robot_ws $ colcon build
Starting >>> Project 
--- stderr: Project                                  
CMake Warning (dev) at /usr/share/cmake-3.10/Modules/FindBoost.cmake:911 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "chrono" will no longer be dereferenced when the
  policy is set to NEW.  Since the policy is not set the OLD behavior will be
  used.
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindBoost.cmake:1558 (_Boost_MISSING_DEPENDENCIES)
  /usr/share/OGRE/cmake/modules/FindOGRE.cmake:318 (find_package)
  /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake:175 (find_package)
  realsense_gazebo_plugin/CMakeLists.txt:12 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

---
Finished <<< Project [24.2s]

Summary: 1 package finished [24.8s]
  1 package had stderr output: Project

When I try to use roslaunch I get the following message:

RLException: {gazebo.launch} is neither a launch file in package {igt_one_description} nor is {igt_one_description} a launch file name The traceback for the exception was written to the log file.

The error persists even after sourcing, as you can see below:

ubuntu:~/environment/robot_ws $ rospack find igt_one_description
[rospack] Error: package 'igt_one_description' not found
ubuntu:~/environment/robot_ws $ source install/setup.bash
ubuntu:~/environment/robot_ws $ rospack find igt_one_description
/home/ubuntu/environment/robot_ws/install/Project/share/igt_one_description
ubuntu:~/environment/robot_ws $ roslaunch igt_one_description gazebo.launch
RLException: [gazebo.launch] is neither a launch file in package [igt_one_description] nor is [igt_one_description] a launch file name
The traceback for the exception was written to the log file

Additionally, as I'm not familiar with colcon tool, I tried building the package with catkin_make, and it was built without any issues, however, when I try to launch I get the following error:

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
what(): boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Aborted (core dumped)
{gazebo_gui-6} process has died {pid 13108, exit code 134, cmd /opt/ros/melodic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/ubuntu/.ros/log/0aec0696-15af-11ec-bc4d-023ea6c21994/gazebo_gui-6.log}.
log file: /home/ubuntu/.ros/log/0aec0696-15af-11ec-bc4d-023ea6c21994/gazebo_gui-6*.log

RealSensePlugin: The realsense_camera plugin is attach to model igt_one

RealSensePlugin: Depth Camera has not been found

Can you please help me figure out how to fix this issue?

Thanks in advance.

edit retag flag offensive close merge delete

Comments

1

I'm sorry to have to do this for something seemingly minor, but please don't post screenshots of terminal text in question on ROS Answers. It's all text, so there is no need. Just copy-paste the text from the terminal into your question text. Do make sure to format it properly by selecting the text and pressing ctrl+k (or clicking the Preformatted Text button (the one with 101010 on it)).

You don't need to post a new question, just edit your curent one. You can use the edit button/link for this.

After you replace the screenshot with the error message itself, we can re-open your question.

gvdhoorn gravatar image gvdhoorn  ( 2021-09-15 02:07:01 -0500 )edit

Thanks for the clarification @gvdhoorn, I edited the question as you suggested. It seems like I need more than 200 points to reopen the topic. Would you mind reopening it for me?

Theodoro Cardoso gravatar image Theodoro Cardoso  ( 2021-09-15 06:53:44 -0500 )edit

After you source it, can you run rospack list to see if it is present. Not sure if you have access to ~/.bashrc in RoboMaker. If not try sudo ~/.bashrc after sourcing it.

osilva gravatar image osilva  ( 2021-09-15 10:49:18 -0500 )edit

Hi @osilva, thanks for your reply. rospack finds the package without problems after sourcing. I will copy the content from the third preformatted text from the post down here

ubuntu:~/environment/robot_ws $ rospack find igt_one_description
[rospack] Error: package 'igt_one_description' not found
ubuntu:~/environment/robot_ws $ source install/setup.bash
**ubuntu:~/environment/robot_ws $ rospack find igt_one_description
/home/ubuntu/environment/robot_ws/install/Project/share/igt_one_description**
ubuntu:~/environment/robot_ws $ roslaunch igt_one_description gazebo.launch
RLException: [gazebo.launch] is neither a launch file in package [igt_one_description] nor is [igt_one_description] a launch file name
The traceback for the exception was written to the log file

As you can see, even with rospack finding the package and the gazebo.launch actually being there, roslaunch was not able to find it.

Maybe it has something to do with the stderr? Thanks man

Theodoro Cardoso gravatar image Theodoro Cardoso  ( 2021-09-15 10:58:19 -0500 )edit

Try executing the file directly vs using launch, that way you might get to see the error that may lead what is causing the execution not to launch. What is in the log file?

osilva gravatar image osilva  ( 2021-09-15 11:10:35 -0500 )edit

There is a similar error: https://github.com/tu-darmstadt-ros-p...

Looks it has to do with Gazebo. Do your system has enough memory?

osilva gravatar image osilva  ( 2021-09-15 11:14:36 -0500 )edit

Wonderful. You should write it as an answer. Cheers

osilva gravatar image osilva  ( 2021-09-15 19:18:38 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-09-15 18:02:16 -0500

Theodoro Cardoso gravatar image

@osilva I managed to make it work by following the AWS tutorials It seems that the following command did the trick

vcs import < .rosinstall

I'm not 100% positive though. In any case, I appreciate your effort to help me out. All the best!

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-09-14 18:14:58 -0500

Seen: 282 times

Last updated: Sep 15 '21