ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Your question seems to indicate you're only looking to use a single function from the angles package. If that's the case it's really simpler, and better design, to just implement the function yourself.

def from_degrees(degrees):  
    return degrees * M_PI / 180.0;

Your question seems to indicate you're only looking to use a single function from the angles package. If that's the case it's really simpler, and better design, to just implement the function yourself.

def from_degrees(degrees):  
    return degrees * M_PI math.pi / 180.0;