-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 添加LuaRobot,和机械臂采用luasocket通讯 * fix: 移除调试注释 * fix: 修正dotnet上传nuget的bug。 * fix: 修正dotnet release版本问题 * feat: 添加speedl和speedj的支持,完善文档 * fix: 修正合并错误 * fix: 更新版本号 * feat: README多语言的框架 * fix: readme错误修正 * fix: 更新版本号 * fix: 修正github action 的问题 * feat: 修正文档错误 * fix: update pip * update linux_python_build.yml * fix: 修正依赖问题 * fix: 修正依赖问题 * feat: 添加speedl支持reference坐标系 * fix: 版本->1.1.8
- Loading branch information
1 parent
11b8570
commit a60d599
Showing
13 changed files
with
230 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# ChangeLog | ||
|
||
## 1.1.8 | ||
|
||
speedl添加参考坐标系 | ||
|
||
修正.net包描述问题 | ||
|
||
修正注释和文档的一些bug | ||
|
||
## 1.1.7 | ||
|
||
README添加多语言支持 | ||
|
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,56 @@ | ||
/** | ||
* Copyright 2022 lebai.ltd | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#include <iostream> | ||
#include <chrono> | ||
#include <thread> | ||
#include <cmath> | ||
#include <lebai/robot.hh> | ||
|
||
|
||
int main(int argc, char ** argv) | ||
{ | ||
if(argc < 2) | ||
{ | ||
std::cerr<<"You must specify the IP address of the robot"<<std::endl; | ||
std::cerr<<"Execute example as follow:"<<std::endl; | ||
std::cerr<<"./example 192.168.1.200 sim"<<std::endl; | ||
return 0; | ||
} | ||
std::string ip = argv[1]; | ||
bool sim = false; | ||
if(argc > 2) | ||
{ | ||
std::string sim_str = argv[2]; | ||
if(sim_str == "sim") | ||
{ | ||
sim = true; | ||
} | ||
} | ||
std::cout<<"Connecting to robot at "<<ip<<std::endl; | ||
std::cout<<"Connecting for simulation mode is "<<sim<<std::endl; | ||
// Create robot instance | ||
lebai::l_master::Robot robot(ip, sim); | ||
std::this_thread::sleep_for(std::chrono::seconds(1)); | ||
robot.movej({0.0/ 180.0 * M_PI, -45.0/ 180.0 * M_PI, 90.0/ 180.0 * M_PI, -45/ 180.0 * M_PI, 90.0/ 180.0 * M_PI, 0.0/ 180.0 * M_PI}, 1.0, 0.5, 0.0, 0.0); | ||
robot.wait_move(); | ||
lebai::l_master::CartesianPose dir = {{"x", 0.05}, {"y", 0.0}, {"z", 0.0}, {"rx", 0.0}, {"ry", 0.0}, {"rz", 0.0}}; | ||
auto tcp = robot.get_target_tcp_pose(); | ||
robot.speedl(1.0, dir, 2.0, tcp); | ||
std::this_thread::sleep_for(std::chrono::seconds(2)); | ||
robot.stop_move(); | ||
return 0; | ||
} |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
swig==4.0.2 | ||
cmake==3.18.2 | ||
readme-renderer==34.0 |
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.