PickNikRobotics / ros_control_boilerplate

Provides a simple simulation interface and template for setting up a hardware interface for ros_control
BSD 3-Clause "New" or "Revised" License
244 stars 89 forks source link

Optional robot state initialization #61

Open captain-yoshi opened 1 year ago

captain-yoshi commented 1 year ago

Ability to set the desired robot state upon startup :

hardware_interface:
  sim_control_mode: 0
  joints:
    - shoulder_pan_joint
    - shoulder_lift_joint
    - elbow_joint
    - wrist_1_joint
    - wrist_2_joint
    - wrist_3_joint
  initial_state:
    - 0.0
    - 1.5707
    - 0.0
    - 1.5707
    - 0.0
    - 0.0

I can change the warning print and the ros param key to your liking.