Hi,
Is it possible to declare Marker
from visualization_msgs.msg
in one line? Below is my code:
from std_msgs.msg import ColorRGBA
from visualization_msgs.msg import Marker
red = ColorRGBA(0.98, 0.30, 0.30, 1.00)
fixed_frame = 'base'
my_marker = Marker()
my_marker.id = 0
my_marker.ns = 'my_marker'
my_marker.color = red
my_marker.action = Marker.ADD
my_marker.type = Marker.LINE_STRIP
my_marker.scale.x = float(line_width)
my_marker.header.stamp = time
my_marker.header.frame_id = fixed_frame
I am using ROS Indigo in Ubuntu 14.04 LTS PC.
Originally posted by ravijoshi on ROS Answers with karma: 1744 on 2017-10-31
Post score: 0