-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from LeoRover/devel
1.2.0 version
- Loading branch information
Showing
169 changed files
with
14,530 additions
and
446 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"env": { | ||
"hFrameworkPath": "/opt/hFramework", | ||
"DefaultIncludePath": [ | ||
"${hFrameworkPath}/include", | ||
"${hFrameworkPath}/ports/stm32/include", | ||
"/usr/include", | ||
"${workspaceFolder}/include", | ||
"${workspaceFolder}/lib/rosserial", | ||
"${workspaceFolder}/lib/sensors" | ||
] | ||
}, | ||
"configurations": [ | ||
{ | ||
"name": "Win32", | ||
"includePath": [ | ||
"${DefaultIncludePath}" | ||
], | ||
"defines": [ | ||
"BOARD_TYPE=CORE2", | ||
"PORT=STM32", | ||
"BOARD_VERSION=1.0.0" | ||
], | ||
"intelliSenseMode": "gcc-arm", | ||
"cStandard": "c11", | ||
"cppStandard": "c++17", | ||
"compilerPath": "arm-none-eabi-gcc.exe" | ||
}, | ||
{ | ||
"name": "Linux", | ||
"includePath": [ | ||
"${DefaultIncludePath}" | ||
], | ||
"defines": [ | ||
"BOARD_TYPE=CORE2", | ||
"PORT=STM32", | ||
"BOARD_VERSION=1.0.0" | ||
], | ||
"intelliSenseMode": "gcc-arm", | ||
"cStandard": "c11", | ||
"cppStandard": "c++17", | ||
"compilerPath": "/usr/bin/arm-none-eabi-gcc" | ||
}, | ||
{ | ||
"name": "Mac", | ||
"includePath": [ | ||
"${DefaultIncludePath}" | ||
], | ||
"defines": [ | ||
"BOARD_TYPE=CORE2", | ||
"PORT=STM32", | ||
"BOARD_VERSION=1.0.0" | ||
], | ||
"macFrameworkPath": [ | ||
"/System/Library/Frameworks", | ||
"/Library/Frameworks" | ||
], | ||
"intelliSenseMode": "clang-arm", | ||
"cStandard": "c11", | ||
"cppStandard": "c++17", | ||
"compilerPath": "/usr/bin/arm-none-eabi-gcc" | ||
} | ||
], | ||
"version": 4 | ||
} |
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,42 @@ | ||
#ifndef LEO_FIRMWARE_INCLUDE_PARAMETERS_H_ | ||
#define LEO_FIRMWARE_INCLUDE_PARAMETERS_H_ | ||
|
||
#include <ros.h> | ||
|
||
struct Parameters { | ||
// TF frames | ||
char robot_frame_id[50] = "base_link"; | ||
char odom_frame_id[50] = "odom"; | ||
char imu_frame_id[50] = "imu"; | ||
char gps_frame_id[50] = "gpu"; | ||
|
||
// Servo | ||
int servo_voltage = 2; | ||
int servo_period[6] = {20000, 20000, 20000, 20000, 20000, 20000}; | ||
int servo_angle_min[6] = {-90, -90, -90, -90, -90, -90}; | ||
int servo_angle_max[6] = {90, 90, 90, 90, 90, 90}; | ||
int servo_width_min[6] = {1000, 1000, 1000, 1000, 1000, 1000}; | ||
int servo_width_max[6] = {2000, 2000, 2000, 2000, 2000, 2000}; | ||
|
||
// Motor | ||
float motor_encoder_resolution = 878.4F; | ||
int motor_encoder_pullup = 1; | ||
float motor_max_speed = 800.0F; | ||
float motor_pid_p = 0.0F; | ||
float motor_pid_i = 0.005F; | ||
float motor_pid_d = 0.0F; | ||
float motor_power_limit = 1000.0F; | ||
float motor_torque_limit = 1000.0F; | ||
|
||
// Differential drive | ||
float dd_wheel_radius = 0.0625F; | ||
float dd_wheel_separation = 0.33F; | ||
float dd_angular_velocity_multiplier = 1.91F; | ||
float dd_input_timeout = 500.0F; | ||
|
||
void load(ros::NodeHandle &nh); | ||
}; | ||
|
||
extern Parameters params; | ||
|
||
#endif |
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.