[RDS] 003 – ROS Development Studio Howto #3 move a robot with a python script

[RDS] 003 – ROS Development Studio Howto #3 move a robot with a python script

 

In this video, the third of a series, we are going to show how to move a robot with a python script by using the ROS Development Studio environment (http://rds.theconstructsim.com)

This video shows:
1- How to create a new ROS project and how to open it for development
2- How to launch a simulation to test your program, with any of the robots already integrated in the system
3- How to move a robot by command line
4- How to create the python script that moves/rotates the robot.

You can access the ROS Development Studio here: http://rds.theconstructsim.com

The code used during the video was the following:

#! /usr/bin/env python

import rospy
from geometry_msgs.msg import Twist
from time import sleep

rospy.init_node(‘rotate’)

publisher = rospy.Publisher(‘/cmd_vel’, Twist, queue_size=1)

rotate_right = True

while not rospy.is_shutdown():
msg = Twist()
msg.angular.z = 0.1 if rotate_right else -0.1

publisher.publish(msg)
rospy.loginfo(‘Msg published.’)
rotate_right = not rotate_right
sleep(10)

[ROS Projects] – Making Aibo robot walk with ROS – #Part 2

[ROS Projects] – Making Aibo robot walk with ROS – #Part 2

 

In this second video we are going to see how to make Aibo execute a Motion File (MTN) using ROS.

Aibo Motion Files are files created by Sony that describe beautiful movements of Aibo. If we achieve to use those files with ROS, then we will be able to use all the already existing movement files. This will simplify, for instance, making the Aibo walk (just reproduce the walking MTN).

// VIDEO CONTENT

In this video we show:
▸ How to get the repo that contains the code that we are developing in the project
▸ How to convert MTN files to be able to use them with ROS
▸ How to send the movements of the MTN to the simulated Aibo

// RELATED LINKS

▸ The Aibo Motion File Format: http://www.dogsbodynet.com/fileformats/motion.html
▸ The repo containing the code shown on the video: https://bitbucket.org/theconstructcore/using_aibo_with_ros
▸ The ROS Development Studio: http://rds.theconstructsim.com
▸ The Academy to learn ROS online with a browser: http://rds.theconstructsim.com

[RDS] 002 – ROS Development Studio #Howto build, debug, test and train ROS programs

[RDS] 002 – ROS Development Studio #Howto build, debug, test and train ROS programs

In this video, the second of a series, we are going to show how to build, debug, test and train ROS programs by using the ROS Development Studio environment (http://rds.theconstructsim.com)

This video shows:
1- How to create a new ROS project and how to open it for development
2- How to clone/download a Gazebo simulation on the RDS environment
3- How to launch the simulation that you have cloned
4- How to issue ROS commands
5- How to save and close your project

You can access the ROS Development Studio here: http://rds.theconstructsim.com

 

[ROS Q&A] 103 – How can I represent a snake robot with many identical segmens in SDF #Part3

[ROS Q&A] 103 – How can I represent a snake robot with many identical segmens in SDF #Part3

 

In this final part you will learn how to use the XACRO system with shel scripts to fully automate the generation of a robot snake:

Q: How can I represent a snake robot with many identical segmens in SDF ?
A: We used shell scripts, python file completion and Xacro variable input to obtain this script that only giving the number of elements it initializes the robot including its controllers.

Pin It on Pinterest