summaryrefslogtreecommitdiff
path: root/LocomotorPrimitivesManager.h
blob: f58dd1776ec4932c627e4be6bfdc5e3997b32e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef LOCOMOTORPRIMITIVES_MANAGER_H_
#define LOCOMOTORPRIMITIVES_MANAGER_H_

#include "OpenSim/OpenSim.h"

class LocomotorPrimitivesManager : public OpenSim::Manager
{
public:
	LocomotorPrimitivesManager(OpenSim::Model &model, SimTK::Integrator &integrator)
		: OpenSim::Manager(model, integrator) { }
	bool integrate(SimTK::State &s, double dtFirst=1.0e-6);
	bool doIntegration(SimTK::State &s, int step, double dtFirst);
};

#endif /* LOCOMOTORPRIMITIVES_MANAGER_H_ */
'commit info' class='commit-info'> authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2015-11-13 12:01:32 +0100 committerHerbert Xu <herbert@gondor.apana.org.au>2015-11-17 22:00:39 +0800 commit9cbe21d8f89dfa851e593ca12725e910ec60c10c (patch) treee7485dcbc3244dd2db888b01773d29fd3bbf026f /lib/mpi/mpicoder.c parent7aff7d0abc83b0991e83af3c43f0d0df47e7c3bf (diff)
lib/mpi: only require buffers as big as needed for the integer
Since mpi_write_to_sgl and mpi_read_buffer explicitly left-align the integers being written it makes no sense to require a buffer big enough for the number + the leading zero bytes which are not written. The error returned also doesn't convey any information. So instead require only the size needed and return -EOVERFLOW to signal when buffer too short. Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/mpi/mpicoder.c')