Skip to content

Commit

Permalink
Merge pull request #5 from hariharan20/main
Browse files Browse the repository at this point in the history
Refactor and Removed Angular Velocity Constraint
  • Loading branch information
hariharan20 authored Dec 17, 2023
2 parents 9b953d8 + f45cee3 commit 6f03a43
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 292 deletions.
2 changes: 1 addition & 1 deletion dogtooth_base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ endif()
# endif()

install(
DIRECTORY launch
DIRECTORY launch config
DESTINATION share/${PROJECT_NAME}
)

Expand Down
2 changes: 1 addition & 1 deletion dogtooth_base/launch/dogtooth.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def generate_launch_description():

robot_controllers = PathJoinSubstitution(
[
FindPackageShare("dogtooth_control"),
FindPackageShare("dogtooth_base"),
"config",
"hardware_controllers.yaml",
]
Expand Down
32 changes: 0 additions & 32 deletions dogtooth_control/CMakeLists.txt

This file was deleted.

232 changes: 0 additions & 232 deletions dogtooth_control/config/view_dogtooth.rviz

This file was deleted.

18 changes: 0 additions & 18 deletions dogtooth_control/package.xml

This file was deleted.

8 changes: 4 additions & 4 deletions dogtooth_controller/src/dogtooth_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ controller_interface::return_type DogtoothController::update(
// float x = x_value;
// float z = z_value;
message["velocity"]["x"] = linear_command ;
if ((linear_command >= 0.0 && linear_command < 0.05) || (linear_command <= 0.0 && linear_command > -0.05)){
message["angulary"]["z"] = 0.0; }
else {
message["angulary"]["z"] = angular_command;}
// if ((linear_command >= 0.0 && linear_command < 0.05) || (linear_command <= 0.0 && linear_command > -0.05)){
// message["angulary"]["z"] = 0.0; }
// else {
message["angulary"]["z"] = angular_command;//}
// std::cout<< "============before_update_time" << std::endl;

update_time();
Expand Down
4 changes: 2 additions & 2 deletions dogtooth_description/description/dogtooth.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<xacro:include filename="robot_core.xacro"/>
<xacro:dogbot prefix="$(arg prefix)" />
<xacro:if value="$(arg use_ros2_control)">
<xacro:include filename="$(find dogtooth_control)/description/ros2_control.xacro" />
<xacro:include filename="$(find dogtooth_description)/description/ros2_control.xacro" />
</xacro:if>
<xacro:unless value="$(arg use_ros2_control)">
<xacro:include filename="$(find dogtooth_control)/description/gazebo_control.xacro" />
<xacro:include filename="$(find dogtooth_description)/description/gazebo_control.xacro" />
</xacro:unless>

</robot>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<xacro:include filename="$(find ros2_control_demo_description)/diffbot/urdf/diffbot.materials.xacro" /> -->

<!-- Import diffbot ros2_control description -->
<xacro:include filename="$(find dogtooth_control)/description/dogtooth.ros2_control.xacro" />
<xacro:include filename="$(find dogtooth_description)/description/dogtooth.ros2_control.xacro" />

<xacro:dogbot prefix="$(arg prefix)" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<gazebo>
<plugin name="gazebo_ros2_control" filename="libgazebo_ros2_control.so">
<parameters>$(find dogtooth_control)/config/controllers.yaml</parameters>
<parameters>$(find dogtooth_gazebo)/config/controllers.yaml</parameters>
</plugin>
</gazebo>

Expand Down
File renamed without changes.

0 comments on commit 6f03a43

Please sign in to comment.