20 int main(
int argc,
char ** argv)
22 std::cerr <<
"test a_block" << std::endl;
24 std::ifstream in(
"test_a_block.data");
25 if (!in) {std::cerr <<
"file does not exist" << std::endl;
return -3;}
27 std::cout << b << std::endl;
29 std::cout <<
"V: " << b.
V() << std::endl;
30 std::cout <<
"c: " << b.
c() << std::endl;
31 std::cout <<
"W: " << b.
W() << std::endl;
double V() const
volume of the block
a_wrench W() const
weight wrench in world coordinate
a_point c() const
centre of mass (in world coordinate)
int main(int argc, char **argv)