Complete the code to import the Marker message type for visualization.
from visualization_msgs.msg import [1]
The Marker message is used to create custom visualization markers in ROS.
Complete the code to create a publisher for Marker messages on the 'visualization_marker' topic.
marker_pub = rospy.Publisher('visualization_marker', [1], queue_size=10)
The publisher must use the Marker message type to send individual markers.
Fix the error in setting the marker type to a cube shape.
marker.type = [1]The cube shape is specified by Marker.CUBE constant.
Fill both blanks to set the marker's position and orientation.
marker.pose.position.[1] = 1.0 marker.pose.orientation.[2] = 0.0
The position coordinate is set with x, and orientation uses quaternion component w.
Fill all three blanks to create a dictionary for marker color with red, green, and alpha values.
marker.color = [1](r=1.0, g=[2], b=0.0, a=[3])
The ColorRGBA class is used for colors with red, green, blue, and alpha channels. Here green is 0.0 and alpha is 1.0 for full opacity.
