[RDS] 008 - ROS Development Studio #Howto share a ROS Project with other users
The Construct Robotics Institute 16:09
201 views · 6 likes Watch on YouTube ↗
In this video we show how to share a ROS Project with other users in RDS (ROS Development Studio)
The steps we followed in the video were:
1. Load a project called move_robot that was previously created (let's call the user User1)
2. Executed the code to rotate the robot with User1
3. Shared the project with another user (let's call User2)
4. The User2 launched the shared project
5. User1 changed the code to stop the rotating every 3 seconds
6. User1 push the changes to a git repository
7. User2 executed a "git pull" and received the changes.
8. User2 executed the updated the code and the robot was rotating and stopping every 3 seconds.
9. Both users were happy at the end :)
In order to do this video, we have used RDS, which is available in the following URL: https://goo.gl/awSkqw
If you are new to ROS or want to improve your ROS Skills, we recommend you the Robot Ignite Academy platform: https://goo.gl/jroG19
To rotate the robot we publish a geometry_msg/Twist message on the ROS Topic called /cmd_vel
The python code used to rotate and stop the robot every 3 seconds was the following:
#! /usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
rospy.init_node("moving_from_python")
pub = rospy.Publisher("/cmd_vel", Twist, queue_size=1)
msg = Twist()
rate = rospy.Rate(1 / 3.0)
stop = True
while not rospy.is_shutdown():
msg.angular.z = 0.0 if stop else 5.0
pub.publish(msg)
stop = not stop
rospy.loginfo("Msg published!")
rate.sleep()
The steps we followed in the video were:
1. Load a project called move_robot that was previously created (let's call the user User1)
2. Executed the code to rotate the robot with User1
3. Shared the project with another user (let's call User2)
4. The User2 launched the shared project
5. User1 changed the code to stop the rotating every 3 seconds
6. User1 push the changes to a git repository
7. User2 executed a "git pull" and received the changes.
8. User2 executed the updated the code and the robot was rotating and stopping every 3 seconds.
9. Both users were happy at the end :)
In order to do this video, we have used RDS, which is available in the following URL: https://goo.gl/awSkqw
If you are new to ROS or want to improve your ROS Skills, we recommend you the Robot Ignite Academy platform: https://goo.gl/jroG19
To rotate the robot we publish a geometry_msg/Twist message on the ROS Topic called /cmd_vel
The python code used to rotate and stop the robot every 3 seconds was the following:
#! /usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
rospy.init_node("moving_from_python")
pub = rospy.Publisher("/cmd_vel", Twist, queue_size=1)
msg = Twist()
rate = rospy.Rate(1 / 3.0)
stop = True
while not rospy.is_shutdown():
msg.angular.z = 0.0 if stop else 5.0
pub.publish(msg)
stop = not stop
rospy.loginfo("Msg published!")
rate.sleep()
Category (YouTube): Science & Technology
Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.