Skip to content

Commit e4dc26b

Browse files
committed
Apply pre-commit hooks
1 parent e6103ba commit e4dc26b

27 files changed

Lines changed: 808 additions & 241 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ doc/manifest.yaml
44
doc/html
55
build
66
Gemfile
7-
native_build
7+
native_build

_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.svg

Lines changed: 1 addition & 1 deletion
Loading

_themes/sphinx_rtd_theme/static/js/modernizr.min.js

Lines changed: 581 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 93 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,104 @@
1-
function toggleCurrent (elem) {
2-
var parent_li = elem.closest('li');
3-
parent_li.siblings('li.current').removeClass('current');
4-
parent_li.siblings().find('li.current').removeClass('current');
5-
parent_li.find('> ul li.current').removeClass('current');
6-
parent_li.toggleClass('current');
1+
function toggleCurrent(elem)
2+
{
3+
var parent_li = elem.closest('li');
4+
parent_li.siblings('li.current').removeClass('current');
5+
parent_li.siblings().find('li.current').removeClass('current');
6+
parent_li.find('> ul li.current').removeClass('current');
7+
parent_li.toggleClass('current');
78
}
89

910
$(document).ready(function() {
10-
// Shift nav in mobile when clicking the menu.
11-
$(document).on('click', "[data-toggle='wy-nav-top']", function() {
12-
$("[data-toggle='wy-nav-shift']").toggleClass("shift");
13-
$("[data-toggle='rst-versions']").toggleClass("shift");
14-
});
15-
// Nav menu link click operations
16-
$(document).on('click', ".wy-menu-vertical .current ul li a", function() {
17-
var target = $(this);
18-
// Close menu when you click a link.
19-
$("[data-toggle='wy-nav-shift']").removeClass("shift");
20-
$("[data-toggle='rst-versions']").toggleClass("shift");
21-
// Handle dynamic display of l3 and l4 nav lists
22-
toggleCurrent(target);
23-
if (typeof(window.SphinxRtdTheme) != 'undefined') {
24-
window.SphinxRtdTheme.StickyNav.hashChange();
25-
}
26-
});
27-
$(document).on('click', "[data-toggle='rst-current-version']", function() {
28-
$("[data-toggle='rst-versions']").toggleClass("shift-up");
29-
});
30-
// Make tables responsive
31-
$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");
11+
// Shift nav in mobile when clicking the menu.
12+
$(document).on('click', '[data-toggle=\'wy-nav-top\']', function() {
13+
$('[data-toggle=\'wy-nav-shift\']').toggleClass('shift');
14+
$('[data-toggle=\'rst-versions\']').toggleClass('shift');
15+
});
16+
// Nav menu link click operations
17+
$(document).on('click', '.wy-menu-vertical .current ul li a', function() {
18+
var target = $(this);
19+
// Close menu when you click a link.
20+
$('[data-toggle=\'wy-nav-shift\']').removeClass('shift');
21+
$('[data-toggle=\'rst-versions\']').toggleClass('shift');
22+
// Handle dynamic display of l3 and l4 nav lists
23+
toggleCurrent(target);
24+
if (typeof (window.SphinxRtdTheme) != 'undefined')
25+
{
26+
window.SphinxRtdTheme.StickyNav.hashChange();
27+
}
28+
});
29+
$(document).on('click', '[data-toggle=\'rst-current-version\']', function() {
30+
$('[data-toggle=\'rst-versions\']').toggleClass('shift-up');
31+
});
32+
// Make tables responsive
33+
$('table.docutils:not(.field-list)').wrap('<div class=\'wy-table-responsive\'></div>');
3234

33-
// Add expand links to all parents of nested ul
34-
$('.wy-menu-vertical ul').siblings('a').each(function () {
35-
var link = $(this);
36-
expand = $('<span class="toctree-expand"></span>');
37-
expand.on('click', function (ev) {
38-
toggleCurrent(link);
39-
ev.stopPropagation();
40-
return false;
41-
});
42-
link.prepend(expand);
35+
// Add expand links to all parents of nested ul
36+
$('.wy-menu-vertical ul').siblings('a').each(function() {
37+
var link = $(this);
38+
expand = $('<span class="toctree-expand"></span>');
39+
expand.on('click', function(ev) {
40+
toggleCurrent(link);
41+
ev.stopPropagation();
42+
return false;
4343
});
44+
link.prepend(expand);
45+
});
4446
});
4547

4648
// Sphinx theme state
47-
window.SphinxRtdTheme = (function (jquery) {
48-
var stickyNav = (function () {
49-
var navBar,
50-
win,
51-
winScroll = false,
52-
linkScroll = false,
53-
winPosition = 0,
54-
enable = function () {
55-
init();
56-
reset();
57-
win.on('hashchange', reset);
49+
window.SphinxRtdTheme = (function(jquery) {
50+
var stickyNav = (function() {
51+
var navBar, win, winScroll = false, linkScroll = false, winPosition = 0, enable = function() {
52+
init();
53+
reset();
54+
win.on('hashchange', reset);
5855

59-
// Set scrolling
60-
win.on('scroll', function () {
61-
if (!linkScroll) {
62-
winScroll = true;
63-
}
64-
});
65-
setInterval(function () {
66-
if (winScroll) {
67-
winScroll = false;
68-
var newWinPosition = win.scrollTop(),
69-
navPosition = navBar.scrollTop(),
70-
newNavPosition = navPosition + (newWinPosition - winPosition);
71-
navBar.scrollTop(newNavPosition);
72-
winPosition = newWinPosition;
73-
}
74-
}, 25);
75-
},
76-
init = function () {
77-
navBar = jquery('nav.wy-nav-side:first');
78-
win = jquery(window);
79-
},
80-
reset = function () {
81-
// Get anchor from URL and open up nested nav
82-
var anchor = encodeURI(window.location.hash);
83-
if (anchor) {
84-
try {
85-
var link = $('.wy-menu-vertical')
86-
.find('[href="' + anchor + '"]');
87-
$('.wy-menu-vertical li.toctree-l1 li.current')
88-
.removeClass('current');
89-
link.closest('li.toctree-l2').addClass('current');
90-
link.closest('li.toctree-l3').addClass('current');
91-
link.closest('li.toctree-l4').addClass('current');
92-
}
93-
catch (err) {
94-
console.log("Error expanding nav for anchor", err);
95-
}
96-
}
97-
},
98-
hashChange = function () {
99-
linkScroll = true;
100-
win.one('hashchange', function () {
101-
linkScroll = false;
102-
});
103-
};
104-
jquery(init);
105-
return {
106-
enable: enable,
107-
hashChange: hashChange
108-
};
109-
}());
110-
return {
111-
StickyNav: stickyNav
56+
// Set scrolling
57+
win.on('scroll', function() {
58+
if (!linkScroll)
59+
{
60+
winScroll = true;
61+
}
62+
});
63+
setInterval(function() {
64+
if (winScroll)
65+
{
66+
winScroll = false;
67+
var newWinPosition = win.scrollTop(), navPosition = navBar.scrollTop(),
68+
newNavPosition = navPosition + (newWinPosition - winPosition);
69+
navBar.scrollTop(newNavPosition);
70+
winPosition = newWinPosition;
71+
}
72+
}, 25);
73+
}, init = function() {
74+
navBar = jquery('nav.wy-nav-side:first');
75+
win = jquery(window);
76+
}, reset = function() {
77+
// Get anchor from URL and open up nested nav
78+
var anchor = encodeURI(window.location.hash);
79+
if (anchor)
80+
{
81+
try
82+
{
83+
var link = $('.wy-menu-vertical').find('[href="' + anchor + '"]');
84+
$('.wy-menu-vertical li.toctree-l1 li.current').removeClass('current');
85+
link.closest('li.toctree-l2').addClass('current');
86+
link.closest('li.toctree-l3').addClass('current');
87+
link.closest('li.toctree-l4').addClass('current');
88+
}
89+
catch (err)
90+
{
91+
console.log('Error expanding nav for anchor', err);
92+
}
93+
}
94+
}, hashChange = function() {
95+
linkScroll = true;
96+
win.one('hashchange', function() {
97+
linkScroll = false;
98+
});
11299
};
100+
jquery(init);
101+
return { enable: enable, hashChange: hashChange };
102+
}());
103+
return { StickyNav: stickyNav };
113104
}($));

_themes/sphinx_rtd_theme/theme.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ stylesheet = css/theme.css
44

55
[options]
66
typekit_id = hiw1hhg
7-
analytics_id =
7+
analytics_id =
88
sticky_navigation = False
99
logo_only =

_themes/sphinx_rtd_theme/version_dropdown.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
<option value="" selected>MoveIt 1 - Melodic</option>
88
</select>
99
</div>
10-
</div><br>
10+
</div><br>

_themes/sphinx_rtd_theme/versions.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@
3434
</div>
3535
</div>
3636
{% endif %}
37-

doc/chomp_planner/chomp_planner_tutorial.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ If you have the ``panda_moveit_config`` from the `ros-planning/panda_moveit_conf
3434

3535
Running CHOMP with Obstacles in the Scene
3636
+++++++++++++++++++++++++++++++++++++++++
37-
To run CHOMP in an evironment with obstacles, you can run the sample python script:
37+
To run CHOMP in an environment with obstacles, you can run the sample python script:
3838

3939
:codedir:`collision_scene_example.py<collision_environments/scripts/collision_scene_example.py>`.
4040

@@ -52,7 +52,7 @@ or: ::
5252

5353
rosrun moveit_tutorials collision_scene_example.py sparse
5454

55-
Next, in RViz, select CHOMP in the MotionPlanning pannel under the Context tab. Set the desired start and goal states by moving the end-effector around with the imarker and then click on the Plan button under the Planning tab in the MotionPlanning pannel to start planning. The planner will now attempt to find a feasible solution between the given start and end position.
55+
Next, in RViz, select CHOMP in the MotionPlanning panel under the Context tab. Set the desired start and goal states by moving the end-effector around with the imarker and then click on the Plan button under the Planning tab in the MotionPlanning panel to start planning. The planner will now attempt to find a feasible solution between the given start and end position.
5656

5757
Tweaking some of the parameters for CHOMP
5858
-----------------------------------------
@@ -86,7 +86,7 @@ CHOMP has some optimization parameters associated with it. These can be modified
8686

8787
- *use_stochastic_descent*: set this to true/false if you want to use stochastic descent while optimizing the cost. In stochastic descent, a random point from the trajectory is used, rather than all the trajectory points. This is faster and guaranteed to converge, but it may take more iterations in the worst case.
8888

89-
- *enable failure recovery*: if this is set to true, CHOMP tweaks ceratin parameters in the hope to find a solution when one does not exist with the default paramters specified in the ``chomp_planning.yaml`` file.
89+
- *enable failure recovery*: if this is set to true, CHOMP tweaks certain parameters in the hope to find a solution when one does not exist with the default parameters specified in the ``chomp_planning.yaml`` file.
9090

9191
- *max_recovery_attempts*: this is the maximum times that CHOMP is run with a varied set of parameters after the first attempt with the default parameters.
9292

@@ -132,7 +132,7 @@ To achieve this, follow the steps:
132132
</launch>
133133

134134
#. This launch file defines the new planning pipeline ``ompl-chomp``, deriving from the ``ompl`` pipeline,
135-
but adding the CHOMP post-processor as a planning adapter. Also, the ``trajectory_initialization_method`` is overriden to use the OMPL-generated trajectory.
135+
but adding the CHOMP post-processor as a planning adapter. Also, the ``trajectory_initialization_method`` is overridden to use the OMPL-generated trajectory.
136136

137137
#. Now you can launch the newly configure planning pipeline as follows: ::
138138

doc/collision_environments/scripts/collision_scene_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ def add_box_object(self, name, dimensions, pose):
7373
print "Correct usage:: \n\"rosrun moveit_tutorials collision_scene_example.py cluttered\" OR \n\"rosrun moveit_tutorials collision_scene_example.py sparse\""
7474
sys.exit()
7575
if sys.argv[1] == "cluttered":
76-
load_scene.add_four_boxes();
76+
load_scene.add_four_boxes()
7777
elif sys.argv[1] == "sparse":
78-
load_scene.add_one_box();
78+
load_scene.add_one_box()
7979
else:
8080
print "Please specify correct type of scene as cluttered or sparse"
8181
sys.exit()

doc/interactivity/src/interactive_robot.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
#include <moveit/robot_state/conversions.h>
4242

4343
// default world object position is just in front and left of Panda robot.
44-
const Eigen::Isometry3d InteractiveRobot::DEFAULT_WORLD_OBJECT_POSE_(Eigen::Isometry3d(Eigen::Translation3d(0.25, -0.5,
45-
0.5)));
44+
const Eigen::Isometry3d
45+
InteractiveRobot::DEFAULT_WORLD_OBJECT_POSE_(Eigen::Isometry3d(Eigen::Translation3d(0.25, -0.5, 0.5)));
4646

4747
// size of the world geometry cube
4848
const double InteractiveRobot::WORLD_BOX_SIZE_ = 0.15;

0 commit comments

Comments
 (0)