[RDS] 006 - ROS Development Studio #Howto use Jupyter Notebook to move a Mobile Robot with ROS
The Construct Robotics Institute 15:18
1,419 views · 8 likes Watch on YouTube ↗
ROS Development Studio: http://www.theconstructsim.com/rds-ros-development-studio/
In this video we show how to use a Jupyter Notebook to move a Mobile Robot using ROS.
The code used on the Jupyter Notebook was the following:
import rospy
from geometry_msgs.msg import Twist
rospy.init_node("notebook_node")
rate = rospy.Rate(1)
move_forward = True
pub = rospy.Publisher('/cmd_vel', Twist, queue_size=1)
while not rospy.is_shutdown():
msg = Twist()
msg.linear.x = 0.4 if move_forward else -0.4
move_forward = not move_forward
pub.publish(msg)
rospy.loginfo("Msg published")
rate.sleep()
In this video we show how to use a Jupyter Notebook to move a Mobile Robot using ROS.
The code used on the Jupyter Notebook was the following:
import rospy
from geometry_msgs.msg import Twist
rospy.init_node("notebook_node")
rate = rospy.Rate(1)
move_forward = True
pub = rospy.Publisher('/cmd_vel', Twist, queue_size=1)
while not rospy.is_shutdown():
msg = Twist()
msg.linear.x = 0.4 if move_forward else -0.4
move_forward = not move_forward
pub.publish(msg)
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.