Parameter server dictionary lookups in rosjava
I've got file robot.yaml with massive of parameters
nxt_robot:
- type: motor
name: r_wheel_joint
port: PORT_A
desired_frequency: 20.0
- type: motor
name: l_wheel_joint
port: PORT_B
desired_frequency: 20.0
- type: ultrasonic
frame_id: ultrasonic_link
name: ultrasonic_sensor
port: PORT_2
spread_angle: 0.2
min_range: 0.01
max_range: 2.5
desired_frequency: 5.0
In Python I read parameters so:
config = rospy.get_param("~nxt_robot")
for c in config:
rospy.loginfo("Creating %s with name %s on %s",c['type'],c['name'],c['port'])
How to do it in rosjava?