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

Unable to run R2 Simulation

asked 2016-01-28 12:59:47 -0500

baila gravatar image

updated 2016-01-28 13:01:49 -0500

Hi all, I am new to ROS. I was trying to build existing R2 (Robonaut 2) project on ROS Indigo. I was following the steps from the book named "Programming Robots with ROS" (page no : 232). I was trying to run r2_mime.py. But whenever i run r2_mime.py, it shows error like :

[rospack] Error: package 'r2_description' not found

Can anyone please help me what i am doing wrong?

Thanks in advance.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-01-28 18:12:33 -0500

jackie gravatar image

updated 2016-01-28 18:12:55 -0500

Make sure you've cloned and the nasa_r2_simulator and nasa_r2_common (instructions are page 172 in the copy I have) into your catkin workspace (i.e. run the "git clone" commands in chessbot/src). You should also make sure that you've sourced the devel/setup.bash file before you try run the r2_mime.py script.

r2_description is in the nasa_r2_common repository. Therefore you need to get the repository, build it into your catkin workspace, and source the setup.bash for that workspace before you can run code that uses it.

If you have more problems, please describe the state of your workspace and the commands that you've typed in and report the issue on https://github.com/osrf/rosbook/issues

edit flag offensive delete link more

Comments

Thank you jackie. "You should also make sure that you've sourced the devel/setup.bash file before you try run the r2_mime.py script." solves my problem. Can you please explain why do we run that command before any action?

baila gravatar image baila  ( 2016-01-29 14:17:14 -0500 )edit

In a catkin workspace, you need to source the devel/setup.bash in order to configure your PATH and your ROS environment to find the files that you built in the workspace. See page 14 of the book, or the catkin tutorials http://wiki.ros.org/catkin/Tutorials/...

jackie gravatar image jackie  ( 2016-01-29 15:31:58 -0500 )edit

I also try to build the r2_mime into another package inside the workspace. What are the dependencies that I need to run those r2 code?

Jumuu gravatar image Jumuu  ( 2016-08-15 11:19:31 -0500 )edit
0

answered 2016-09-06 09:41:18 -0500

dustingooding gravatar image

Might be too late, but we've migrated to a new host and had a few major upgrades to the sim. https://gitlab.com/nasa-jsc-robotics/...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-01-28 12:59:47 -0500

Seen: 338 times

Last updated: Sep 06 '16