https://github.com/advrhumanoids/xbot2_examples
Examples and tutorials on the new XBot2 framework -- WIP
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.0%) to scientific vocabulary
Repository
Examples and tutorials on the new XBot2 framework -- WIP
Basic Info
- Host: GitHub
- Owner: ADVRHumanoids
- Language: C++
- Default Branch: master
- Size: 1.42 MB
Statistics
- Stars: 9
- Watchers: 9
- Forks: 5
- Open Issues: 9
- Releases: 0
Metadata Files
README.md
xbot2_examples
Examples for the XBot2.0 middleware
This repository containes commented examples of use for the XBot2.0 real-time middleware for robotics. The IIT-Teleop robot, a 5-dof robotic arm, is provided as testing platform. Follow the link and install the framework before you go ahead!
Contents
- Simulating a robotic system with Gazebo
- Writing a simple control module as an XBot2 Plugin
- Configuring the middleware
- Inter-plugin communication (data streaming, rpc-like)
- Using ROS from a real-time plugin
- Adding a custom device
- Controlling the robot from ROS
How to build
Standard CMake workflow
mkdir build && cd buildccmake <path-to-repo>- select a build type and an install folder (must be visible to the dynamic linker), type
cand theng make -j installsudo ldconfigmight be required if installing to/usr/local
## How to setup
- make sure that the robot sdf and meshes are visible to Gazebo; for instance, you can add the following line to your
.bashrcexport GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:<path-to-repo>/models/database- set the XBot2 configuration file to the provided example with
set_xbot2_config <path-to-repo>/config/teleop_simple_example.yaml(note: this is optional as this information can be provided later as a command line argument)
- set the XBot2 configuration file to the provided example with
Note: a more complete teleop_complete_example.yaml is available, too; it requires to enable the XBOT2_EXAMPLES_WITH_GZ flag during compilation.
## How to run
- load the provided
.worldfile to Gazebo with the following command:gazebo <path-to-repo>/world/teleop_xbot2.worldyou should now see the robot inside Gazebo; a simple bash script<path-to-repo>/run_simulation.bashprovides a shorthand for this command. - run XBot2 with
xbot2-coreorxbot2-core --verbose(note: add--config <path-to-repo>/config/teleop_simple_example.yamlif you did not use theset_xbot2_configcommand during the setup phase)
You should now be able to (for instance)
- get the list of loaded plugins ->
rosservice call /xbotcore/get_plugin_list - monitor execution time ->
rostopic echo /xbotcore/statistics - monitor joint state ->
rostopic echo /xbotcore/joint_states
Running inside Docker container
- install docker and set it up so that it does not require sudo permissions
- install nvidia container toolkit if you have an nvidia card
./docker/run.shruns the container (the first time it will also download a crazy amount of data!)- to spawn more
bashsessions inside the same container instance, do./docker/attach.sh - open three
bashsessions - terminal #1:
./start.sh(startsroscoreandgazebo) - terminal #2:
xbot2-core(XBot2 executable) - terminal #3:
xbot2-gui(GUI should appear)
Owner
- Name: ADVR Humanoids
- Login: ADVRHumanoids
- Kind: organization
- Email: luca.muratore@iit.it
- Location: Istituto Italiano di Tecnologia
- Website: https://www.iit.it/lines/humanoids-human-centered-mechatronics
- Repositories: 206
- Profile: https://github.com/ADVRHumanoids
Humanoids & Human Centered Mechatronics, HHCM, IIT
GitHub Events
Total
- Push event: 4
- Create event: 1
Last Year
- Push event: 4
- Create event: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 52
- Total pull requests: 8
- Average time to close issues: 22 days
- Average time to close pull requests: 5 months
- Total issue authors: 9
- Total pull request authors: 4
- Average comments per issue: 3.21
- Average comments per pull request: 0.75
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- torydebra (19)
- lia2790 (2)
- alaurenzi (2)
- DavideAntonucci (2)
- FrancescoRuscelli (1)
- MarcoRuzzon (1)
- liesrock (1)
- MarcoMagriDev (1)
- m-tartari (1)
Pull Request Authors
- liesrock (1)
- fmros (1)
- alaurenzi (1)
- siddharthdeore (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- nvidia/opengl 1.0-glvnd-runtime-ubuntu20.04 build
- ros noetic-ros-base-focal build