-
Notifications
You must be signed in to change notification settings - Fork 103
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
Scenic Gazebo PR #246
base: main
Are you sure you want to change the base?
Scenic Gazebo PR #246
Conversation
@Kai-X-Org Should I go ahead and close #215 ? |
Hi Eric!
Yes, please close this PR. The new one is the good one. Thank you so much!
Sincerely,
Kai Xu
…On Wed, Apr 24, 2024 at 12:46 Eric Vin ***@***.***> wrote:
@Kai-X-Org <https://github.com/Kai-X-Org> Should I go ahead and close #215
<#215> ?
—
Reply to this email directly, view it on GitHub
<#246 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQXP3WQ3DWWEHMHQ32SBWDLY7AD27AVCNFSM6AAAAABGWRXBQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZVG4YTQNZQGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kai-X-Org I have been experimenting with some of the gazebo installations and had a couple of items that I wanted to flag as well that were pain points and unclear:
- How can we tell if pre-requisites and installation is successful? Can we provide a set of commands/script to run to determine this?
- Specifically, when installing Scenic I had trouble installing all the dependencies outside of a virtual environment. To do so can we instruct folks to (a) download the repo navigate to the root and then run (b)
/usr/bin/python3 -m pip install -e .
- I think we may need to have to add some more dependencies within the
pyproject.toml
in order to follow a clean installation process for Gazebo, namely I had to pip install the following on a clean environment since they were not readily available:
pyyaml
rospkg
defusedxml
|
||
## Instructions for Use | ||
|
||
1. Before running Scenic, start the Gazebo simulator with ROS, launch and bringup any ROS stack you need, and unpause the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we give explicit example commands to be run for this? It is a bit unclear as to how to do so!
1. Before running Scenic, start the Gazebo simulator with ROS, launch and bringup any ROS stack you need, and unpause the | ||
simulation. | ||
2. Open a separate terminal, run `scenic <YOUR PROGRAM>.scenic --simulate`(see https://scenic-lang.readthedocs.io/en/latest/options.html for more | ||
command-line options). Make sure you sourced the corresponding `.bash` or `.zsh` needed to run your simulaton in this terminal, too!. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By sourcing to run the simulation do you mean source /opt/ros/noetic/setup.bash
? If so I think we should make explicit mention of that here!
while (t1.secs + t1.nsecs/(10**9) - t0.secs - t0.nsecs/(10**9)) < wait_time: | ||
wait | ||
t1 = rospy.get_rostime() | ||
# print((t1.secs + t1.nsecs/(10**9) - t0.secs - t0.nsecs/(10**9))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove print statement
ResetGazeboWorldAndSim, | ||
UnpauseGazebo, | ||
) | ||
from scenic.simulators.Gazebo.utils.state_utils import ( # GetGazeboWorldModelNames,; GetGazeboWorldProperties, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove commented out imports
- Other than the official installation, ROS Noetic can also be installed with [RoboStack](https://robostack.github.io/index.html), which can be helpful if you are on MacOS or Windows. | ||
- Before you install, it might be good to consider installing Scenic outside any virtual environment for Gazebo/ROS purposes since Gazebo/ROS utilizes some Ubuntu native packages that is difficult to get from conda/pip | ||
- When installing Scenic, please do the "Repository" install outlined in this page: https://scenic-lang.readthedocs.io/en/latest/quickstart.html#installation | ||
- For the Sawyer simulator, please install according to the instruction here: https://github.com/RethinkRobotics/sawyer_simulator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link was unclear on where to find the installation instructions. I ended up using the installation instructions from the tutorial: https://support.rethinkrobotics.com/support/solutions/articles/80000980381-gazebo-tutorial
- Before you install, it might be good to consider installing Scenic outside any virtual environment for Gazebo/ROS purposes since Gazebo/ROS utilizes some Ubuntu native packages that is difficult to get from conda/pip | ||
- When installing Scenic, please do the "Repository" install outlined in this page: https://scenic-lang.readthedocs.io/en/latest/quickstart.html#installation | ||
- For the Sawyer simulator, please install according to the instruction here: https://github.com/RethinkRobotics/sawyer_simulator | ||
- For object models (sdf files), please clone this repo into the interface directory: https://github.com/osrf/gazebo_models |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here where do we clone? Where should this be placed?
@@ -0,0 +1,49 @@ | |||
model scenic.simulators.Gazebo_sawyer.model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This entire file should be moved to examples/gazebo_sawyer/example.scenic
. Also, we should create an example/gazebo
directory and place some example files under there as well!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for making those changes!
Description
Adds in the Scenic Gazebo template interface and the example implementation for the Sawyer
Additional Notes
Please ignore the previous PR as that one had some uncleaned comments here and there.
Documentation is in the README in each interface folder. Thank you so much!