uscauv-legacy / old-uscauv-ros-pkg

ROS software used on robots made by the USC AUV Team.
4 stars 6 forks source link

Physics Simulator Needs Thruster Force Simulation #5

Open canondetortugas opened 11 years ago

canondetortugas commented 11 years ago

We need to write a ThrusterModel class that will contain:

At launch, (in the spinFirst method) the physics simulator will read the model/thrusters/names param, which contains a list of the thrusters to be simulated. For each thruster, make a new ThrusterModel class instance then attempt to find find the model/thrusters/ param and use model/thrusters//power and model/thrusters//force to populate the lookup table. It will then use tf to lookup a transform called link. If it can perform both of these operations successfully, the new ThrusterModel will be added to a deque of ThrusterModels called thrusters.

The node will also subscribe the topic on which motor values are published at this time. When it receives a motor callback it will do the following for each thruster:

Thruster forces will be cached until the next time a motor value message is received. The assumption is that the thruster forces will be constant between motor value callbacks.

At each simulation timestep, the current_thrusterforce wrench will be used to generate the total wrench experienced at the center of mass.

canondetortugas commented 11 years ago

Simulation works now under the assumption that thruster force does not vary with velocity.

canondetortugas commented 11 years ago

Need to investigate whether or not velocity effects are significant enough to warrant simulating them