Practice the ROS2 RViz2 - Marker Publisher coding problem in Visualization. Browser-based execution with automated grading — no local ROS install required. 88% of engineers pass this challenge.
Implement a ROS2 node that publishes a visualization marker on the /visualization_marker topic at 1 Hz.
Your node must:
visualization_msgs/Marker on /visualization_markercreate_timer(1.0, ...) for the publish loopheader.frame_id = 'map' and header.stamp from the node clockns (namespace string, any value)id (integer, e.g. 0)type = Marker.SPHERE (or CUBE, ARROW, CYLINDER, LINE_STRIP — your choice)action = Marker.ADDpose.position (x, y, z — any values)pose.orientation.w = 1.0 (valid quaternion)scale.x, scale.y, scale.z — all > 0 (scale of 0 makes the marker invisible)color.r, color.g, color.b, color.a — all in 0.0–1.0 range, alpha must be > 0Output: visualization_msgs/Marker messages on /visualization_marker at 1 Hz
RViz2 Markers are the primary tool for debugging perception and planning algorithms in the field. A robot engineer who can't publish markers can't visualize where their node thinks obstacles are, where the planned path goes, or what the sensor is seeing. In every robotics lab and company, "add a marker to see what's happening" is step 1 of any debugging process.
color.a == 0 the marker is completely transparent and invisible in RViz2. It will also fail the test.header.frame_id, RViz2 can't place the marker in any coordinate system.It is a hands-on Visualization challenge on SimuCode where you implement and run ROS2 code in the browser with runtime-verified tests.
Open this page, sign in, and solve the problem in the built-in IDE. Your solution is graded against real ROS2 execution checks.
This Easy problem focuses on rviz, markers, visualization skills used in robotics interviews and production systems.