-
Notifications
You must be signed in to change notification settings - Fork 14
Animated Box
가제보 플러그인을 이용해서 box를 움직이는 animation을 생성해보자. 플러그인은 가제보에 추가로 사용자 코딩을 할 수 있게 해주는 것으로서 예를 들어 박스를 생성하고 이것의 궤적을 코드 레벨에서 만들어 볼 수 있다.
추후에 플러그인 코드에 대해서는 자세히 다루고 여기서는 그런 플러그인을 한번 실행해보자.
working 디렉토리를 하나 생성하자.
$ mkdir animatedbox
$ cd animatedbox
plugin 코드를 다운받는다.
$ wget http://bitbucket.org/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/animated_box.cc
$ wget http://bitbucket.org/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/independent_listener.cc
$ wget http://bitbucket.org/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/integrated_main.cc
$ wget http://bitbucket.org/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/CMakeLists.txt
$ wget http://bitbucket.org/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/animated_box.world
제공되는 cmake파일을 이용해서 빌드한다.
$ mkdir build
$ cd build
$ cmake ../
$ make
build 디렉토리 안에 플러그인 실행 파일이 있으므로 GAZEBO_PLUGIN_PATH라는 환경변수에 이 경로를 인식시켜줘야 한다.
$ export GAZEBO_PLUGIN_PATH=$(pwd):$GAZEBO_PLUGIN_PATH
animated_box.world를 실행한다.
$ gazebo ~/animatedbox/animated_box.world
다른 터미널에서 "gz topic" 명령어로 box pose를 수신할 수 있다.
$ gz topic -v /gazebo/animated_box_world/pose/info
사용자가 코딩한 independent_listener 를 실행시켜서 거기서도 pose를 수신할 수 있다.
$ gazebo ~/animatedbox/animated_box.world & ./build/independent_listener
gazebo server(시뮬레이션 계산하는 부분)를 따로 실행시키고 client(gui로 보여주는 부분)를 따로 실행시킬 수도 있다.
$ cd ~/animatedbox
$ ./build/integrated_main animated_box.world
$ gzclient
-
Robot Simulators
-
Build a Robot
- Model structure and requirements
- How to contribute a model
- Make a model
- Make a Mobile Robot
- The relationship among Link, Joint and Axis
- Import Meshes
- Attach Meshes
- Add a Sensor to a Robot
- Make a Simple Gripper
- Attach Gripper to Robot
- Nested model
- Model Editor
- Animated Box
- Make an animated model(actor)
- Inertial parameters of triangle meshes
- Visibility layers
-
Model Editor
-
Build a World
-
Tools and utilities
-
Write a plugin
-
Plugins
-
Sensors
-
User input
-
Transport Library
-
Rendering Library
-
Connect to ROS
-
Ros Control - Advanced
-
DRCSIM for ROS Kinetic (Ubuntu16.04)
-
DRCSIM
- DRC Simulator installation
- Launchfile options
- Spawn Atlas into a custom world
- Animate joints
- Atlas Keyboard Teleoperation over ROS
- Teleoperate atlas with a music mixer
- Visualization and logging
- Atlas MultiSense SL head
- How to use the Atlas Sim Interface
- Atlas fake walking
- Grasp with Sandia hands
- DRC vehicle tele-operation
- DRC vehicle tele operation with Atlas
- Sending joint commands with ROS
- Atlas control over ROS with python
- Modify environment
- Atlas switching control modes
- Atlas Controller Synchronization over ROS Topics
- Changing Viscous Damping Coefficients Over ROS Service
- Running BDI controller demo
- Using the RobotiQ 3 Finger Adaptive Robot Gripper
- BDI Atlas Robot Interface 3.0.0 Stand In Example
-
HAPTIX
- HAPTIX software install and update
- HAPTIX C API
- HAPTIX Matlab and Octave API
- HAPTIX Simulation World API
- HAPTIX Teleoperation
- HAPTIX environment setup
- HAPTIX Optitrack Control
- HAPTIX Tactor Glove
- HAPTIX Simulation World API with Custom World Example
- HAPTIX logging
- HAPTIX DEKA Luke hand installation
- HAPTIX Simulation Scoring Plugin Example
-
MoveIt!
-
Rviz & rqt & ROSBAG
- Control Theory
- TroubleShooting
- Solidworks model to URDF
- ROS-Gazebo with MATLab
- MATLab installation in Linux
- [Gazebo simulation with MATLab]