The aim of this tutorial is to show how to control a SIGVerse agent using Joystick. ROS operating system is used to process data coming from the joystick and send them to the SIGVerse controller.
Download and install Microsoft directx sdk
When the server is launched, 2 ROS nodes are created, the SIGVerse controller node and SIGVerse command node, this involves the creation of 2 topics, command message topic and velocity topic. In the other part, the joystick service sends data to the SIGVerse command node which will publish it on the command message topic, then, the SIGVerse controller node receives the data, processes them, then publishes the corresponding command on the velocity topic, finally the SIGVerse command node receives the command and sends it to the robot.
Go to catkin_ws directory and create a new package:
$ cd ~/catkin_ws/src $ catkin_create_pkg sig_ros
In the server side we have two nodes, SIGVerwe controller node and ROS command node, the first one aims to receive data from the joystick, send them to the second node then receive the command, the second node receives the data from the first node and send the corresponding command.
sig_controller.cpp:
ros_controller.cpp file:
Click on the link to download the world file:
Open Visual studio and add new C++ project, then include sigverse libraries.
Joystick_Service.cpp
To download the plugin:
To download the project from GIT repository, use the following link:
git@socio4.iir.nii.ac.jp:~/SigverseGitServer/unstable/usersContribution/tafifet/ros_joystick.git
The project contains:
To install and run the server, please refer to the ROS integration tutorial.
Tutorial?