Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dynamixel_motor_cont
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
drivers
dynamixel_motor_cont
Commits
2ab47f1c
Commit
2ab47f1c
authored
12 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Chnaged the project name to avoid problems in ubuntu package creation.
parent
06671c6b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
src/examples/test_dynamixel_motor.cpp
+4
-3
4 additions, 3 deletions
src/examples/test_dynamixel_motor.cpp
with
5 additions
and
4 deletions
CMakeLists.txt
+
1
−
1
View file @
2ab47f1c
...
...
@@ -8,7 +8,7 @@ if(COMMAND cmake_policy)
endif
(
COMMAND cmake_policy
)
# The project name and the type of project
PROJECT
(
dynamixel
_
motor
_
cont
)
PROJECT
(
dynamixel
-
motor
-
cont
)
SET
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/bin
)
SET
(
LIBRARY_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib
)
...
...
This diff is collapsed.
Click to expand it.
src/examples/test_dynamixel_motor.cpp
+
4
−
3
View file @
2ab47f1c
...
...
@@ -19,14 +19,15 @@ int main(int argc, char *argv[])
std
::
vector
<
float
>
pos2
(
1
),
max
(
1
),
min
(
1
);
std
::
vector
<
float
>
position
(
1
);
std
::
vector
<
bool
>
enable
(
1
);
std
::
string
serial
=
"A9007DKA"
;
try
{
if
(
dyn_server
->
get_num_buses
()
>
0
)
{
cont2
=
new
CDynamixelMotor
(
cont2_name
,
0
,
1000000
,
1
1
);
cont2
=
new
CDynamixelMotor
(
cont2_name
,
serial
,
1000000
,
1
2
);
cont2
->
close
();
delete
cont2
;
cont2
=
new
CDynamixelMotor
(
cont2_name
,
0
,
1000000
,
1
1
);
cont2
=
new
CDynamixelMotor
(
cont2_name
,
serial
,
1000000
,
1
2
);
enable
[
0
]
=
true
;
cont2
->
enable
(
enable
);
#ifdef _HAVE_XSD
...
...
@@ -36,7 +37,7 @@ int main(int argc, char *argv[])
events2
.
push_back
(
cont2
->
config_position_feedback
(
fb_polling
,
100.0
));
#endif
cont2
->
set_torque
(
100.0
);
cont3
=
new
CDynamixelMotor
(
cont3_name
,
0
,
1000000
,
21
);
cont3
=
new
CDynamixelMotor
(
cont3_name
,
serial
,
1000000
,
21
);
enable
[
0
]
=
true
;
cont3
->
enable
(
enable
);
#ifdef _HAVE_XSD
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment