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

Added script for coke can with friction #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

EdanSneh
Copy link
Contributor

adds a unique coke_can with friction

scripts/add_coke Outdated
}

# Look through http://models.gazebosim.org/ for the default objects
rosrun gazebo_ros spawn_model -file "$(dirname $(dirname $(realpath $0)) )/models/coke_can/model.sdf" -sdf -model coke_can -x 1.70 -y -5.10 -z 0.45 -Y 1.57
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the models folder is on the GAZEBO_MODEL_PATH, you should be able to insert it by its name.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once that works, consider using spawn if it's in the file
spawn coke_can coke_can0 -x 1.70 -y -5.10 -z 0.45 -Y 1.57 . Otherwise remove spawn.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw other modules doing $(find dir) but that wasnt working for me. I was able to shorten it to $(rospack find dir) tho

@@ -0,0 +1 @@
Only model.sdf has been edited everything else was left the same (not sure if all the files are even neccesary
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine to leave the extra SDFs. I think the older format versions are long out of date, but they're small files.
Do remove the model tar though.

removes unnessasary file and changes a command
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

Successfully merging this pull request may close these issues.

2 participants