-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CMake circular dependencies (#326)
* Remove E_STOP from globals * Add control interface and remove more dependencies on globals * minor cmake fix * Fix format * Fix mismatching parameter name
- Loading branch information
Showing
16 changed files
with
132 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#pragma once | ||
|
||
#include "world_interface/data.h" | ||
|
||
// This is a layer that provides further abstraction on top of | ||
// the motor-level control provided by the world interface | ||
|
||
namespace robot { | ||
|
||
/** | ||
* @brief Request the robot to drive at the given velocities. | ||
* | ||
* @param dtheta The heading velocity. | ||
* @param dx The forward velocity. | ||
* @return double If the requested velocities are too high, they will be scaled down. | ||
* The returned value is the scale divisor. If no scaling was performed, 1 is returned. | ||
*/ | ||
double setCmdVel(double dtheta, double dx); | ||
|
||
/** | ||
* @brief Set the power of the specified joint. | ||
* | ||
* @param joint The joint to set the power of. | ||
* @param power The power value to set, in the range [-1,1]. | ||
*/ | ||
void setJointPower(types::jointid_t joint, double power); | ||
|
||
/** | ||
* @brief Set the position of the specified joint. | ||
* | ||
* @param joint the jointid_t of the joint to set the position of. | ||
* @param targetPos the position to set the joint to, in millidegrees. | ||
*/ | ||
void setJointPos(types::jointid_t joint, int32_t targetPos); | ||
|
||
/** | ||
* @param joint the jointid_t of the joint to get the position of. | ||
* @return the position of the joint specified by the jointid_t argument joint, | ||
* in millidegrees. | ||
*/ | ||
types::DataPoint<int32_t> getJointPos(types::jointid_t joint); | ||
|
||
} // namespace robot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.