Giter VIP home page Giter VIP logo

webots-doc's Introduction

This repository is not used anymore, please use omichel/webots instead.

webots-doc's People

Contributors

davidmansolino avatar fabienrohrer avatar fjolidon avatar flmichel avatar fzimmerm avatar luc4s avatar omichel avatar remidhum avatar stefaniapedrazzi avatar tpjnorton avatar valeriemichel avatar vincentdm05 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webots-doc's Issues

Local issue with Language Setup > Introduction page

I'm not sure if it is an issue of my local environment, but if I click on the Language Setup > Introduction page, the correct page is open but the left menu highlights the Getting Started with Webots > Introduction to Webots instead of the correct page.

I have this issue only when using the offline dock documentation widget.
I tested on the #102 branch.

Mathematical functions

For now, the formula sources are still into the TEX format in the webots/src/doc/formulas/ repository.

A better integration seems obviously required.

Several Javascript are doing mathematical text to HTML formula view conversion very well including:

MathJax is supposed to support TEX formulas, amongs other, which seems to be the shortest way to import our formulas.

Some code snippet are existing to integrate this into showdown:
https://gist.github.com/xentec/6588519
https://gist.github.com/npisenti/3028983

Version management of webots-doc

Instead of creating branches specific to a version as we have done for the fist time for Webots 8.5.3, and let the online documentation point on webots-doc master, it would be certainly easier to put all the modifications in master, and let the online documentation point on the git tag matching with the current Webots version.

Rename 'ms' argument in sensor enable functions

Rename the ms argument to `sampling_rate``, for all the sensors, and to indicate that its unit is in milliseconds in the comments. => The argument name should describe its purpose, not its unit.

Improvement of the Webots version management

Currently, the Webots version is hardcoded here:

https://github.com/omichel/webots-doc/blob/gh-pages/scripts/showdown-extensions.js#L27

Defining it into a root file (such as "webots_version.txt" or so) would be better (but quite annoying to implement, because the javascript should load this file).
A better solution would be to create a javascript file especially for this.

We could think about adding a test which checks that the version stored in this file is matching with https://www.cyberbotics.com/webots_current_version.txt

Similarly, the date could be generated on the fly.

User Guide & Reference Manual as PDF

A client asks for a PDF version of what we can find on the website, in particular the User Guide and the Reference Manual.

We should see if there is an easy way to create a PDF from current HTML version.

Modal Image Viewing

It would be nice to be able to click images and have a modal dialog appear to preview the image in its full-size format.

Graphics

Similarily to #7, the diagram sources are still into the DIA format in the webots/src/doc/dia/ repository.

Here too, a better integration seems to be required.

This issue aims to report the best candidates to do so.

Use the class HTML attribute to better style the documentation

Using the class HTML attribute in the documentation will help us avoiding conflicts with the CSS of Cyberbotics' web site. The name of the class could be webots-doc. We should split the current main.css file into two files: main.css would remain the main CSS file of Cyberbotics' web site whereas webots-doc.css would contain only the class specific CSS for the Webots documentation. Only the webots-doc.css stylesheet file should be distributed with Webots.

Improve the note and code sections

Our note and code sections are not very well looking. In particular, the note sections have a too big font size and the code sections have a too small font size... See for example https://www.cyberbotics.com/doc/reference/camera

A nice looking example of note and code sections can be found here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript

Likewise, we could use some icons, colors or background images to improve the appearance of these sections. However, it seems this mozilla layout doesn't allow code inside notes which we do allow.

Review controller code snippets

I noticed that most of the code snippets uses the following form without checking for the wb_robot_step return value:

while(1) {
  ..
  wb_robot_step(TIME_STEP);
  ..
}

An the wb_robot_cleanup is not used, at least in the Controller Programming section.

Wouldn't be better to improve the examples in order to show to the users the correct way to implement their controller?

Add empty lines between fields descriptions

As discussed in #80, the field description is much more readable if an empty new line is inserted between the list items.
At the moment the source files are not consistent and some of them uses these empty lines and some not.
So it would be better to check and add the new line in all the nodes' fields description listing the fields in bullet format.

Clang Static Analyser Result

For information, the clang static analyse gave these issues:


Dead store: Dead assignment: Value stored to 'det' is never read
1: Value stored to 'det' is never read in /home/daniel/develop/webots/projects/robots/robotis-op2/libraries/robotis-op2/robotis/Framework/src/math/Matrix.cpp:100


Memory Error: Memory leak: Potential leak of memory pointed to by 'protoList'
1: Assuming 'isValidProject' is 0 in /home/daniel/develop/webots/src/webots/app/WbApplication.cpp:266
2: Memory is allocated in /home/daniel/develop/webots/src/webots/app/WbApplication.cpp:266


Dead store: Dead assignment: Value stored to 'found' is never read
1: Value stored to 'found' is never read in /home/daniel/develop/webots/src/webots/core/WbMacAddress.cpp:121


Logic error: Division by zero
1: Loop body executed 0 times in /home/daniel/develop/webots/src/webots/maths/WbMathsUtilities.cpp:274
2: Division by zero in /home/daniel/develop/webots/src/webots/maths/WbMathsUtilities.cpp:303


Dead store: Dead assignment: Value stored to 'max' is never read
1: Value stored to 'max' is never read in /home/daniel/develop/webots/src/webots/nodes/WbColor.cpp:45


Logic error: Called C++ object pointer is null
1: Calling 'computePath' in /home/daniel/develop/webots/src/webots/nodes/utils/WbUrl.cpp:96
2: Passing value via 1st parameter 'node' in /home/daniel/develop/webots/src/webots/nodes/utils/WbUrl.cpp:25
3: Calling 'computePath' in /home/daniel/develop/webots/src/webots/nodes/utils/WbUrl.cpp:25
4: Assuming pointer value is null in /home/daniel/develop/webots/src/webots/nodes/utils/WbUrl.cpp:58
5: Loop body executed 0 times in /home/daniel/develop/webots/src/webots/nodes/utils/WbUrl.cpp:58
6: Loop body executed 0 times in /home/daniel/develop/webots/src/webots/nodes/utils/WbUrl.cpp:72
7: Called C++ object pointer is null in /home/daniel/develop/webots/src/webots/nodes/utils/WbUrl.cpp:78


Logic error: Called C++ object pointer is null
1: Value assigned to field 'mField' in /home/daniel/develop/webots/src/webots/scene_tree/WbFieldEditor.cpp:198
2: Assuming pointer value is null in /home/daniel/develop/webots/src/webots/scene_tree/WbFieldEditor.cpp:209
3: Calling 'WbFieldEditor::computeFieldInformation' in /home/daniel/develop/webots/src/webots/scene_tree/WbFieldEditor.cpp:214
4: Called C++ object pointer is null in /home/daniel/develop/webots/src/webots/scene_tree/WbFieldEditor.cpp:276

Improve the layout

Then if the left menu area is small the section titles are not included in the menu gray area (see BallJointParameter section title in the following screenshot):
6c52d12c-2e23-11e6-8636-de9b681f3599
Additionally if the documentation widget width is small the up, left and right arrow icons overlap.

The position of the horizontal scrollbar is a little bit weird if the page content is short.
I would probably expect it to be in any case at the bottom of the widget instead of at the end of the page content:
dd59bff8-2e27-11e6-933c-c9813f9c1940

Visualize branches from forked repositories

It would be nice to be able to visualize branches from forked repositories (as users will have to fork the repository to contribute and will want to see the result before raising the thumb up on the pull request).

Link across books not working

It should be possible to create hyperlinks across books using relative pathes (e.g. from the guide use [Camera](../reference/camera.md)). Unfortunately it seems to work on Github but not in our viewer (on Cyberboitics website).

Once fixed, the references in the description of radarCrossSection and recognitionColors in automobile/ackermannvehicle.md` should be added.

Fix spaces in nodes declaration

The spacing is not consistent between the data type and the field name and between the field name and the default value and between the default value and the comment. Sometimes, we have a minimum amount of spaces (up to 1) and sometimes, we have an arbitrary number of spaces, like here 4 or 5.

Consistency of note format

In the User Guide we use the Note: format but in the other books (Reference Manual, automobile and darwin-op) we use note:.

Personally, I don't have any preference on the format but it would be good to use the same format in all the books.

Fix spelling of NVIDIA in doc

It seems that the upper case NVIDIA version is the preferred spelling.
We should check that we always use the same upper case format in everywhere in the documentation.

Integration to the Webots website

It is planned to integrate the new documentation to the Cyberbotics website for Webots 8.5.0.

To do this, it seems that the best way is to redirect the cyberbotics/guide to github.io/?index.html?book=guide and so on.

The redirection may be more or less complex depending on what we would like (GET attribute forging, etc.)

Document the HTML robot window

At the moment the HTML robot windows functions are not documented.
I don't know in which version we want to make them public but it is good to have an issue in order to not forget it.

Joint schemas in doc

From @Cypherluc on November 26, 2013 10:25

In the reference manual, it would be nice to have schemas such as the one in the InsertNodeDialog depicting the joints visually.

Copied from original issue: omichel/webots#84

Poke: develop branch is created

The develop branch has been created, the usual workflow can be applied.

The develop branch doesn't differ from the master branch for now.

Lost tag

Upon changing or clicking on a new section in here, the ID tag (i.e. remidhum) disappears. This causes some pages not to load up (Advertising Board in particular) and if refreshed, none of the pages load.
However, as long as the page is not refreshed, the rest of the sections will correctly open even without the name tag.

After a refresh (and a sub section change), the url is similar to this:

https://www.cyberbotics.com/doc/automobile/buildings?version=doc-automobile-objects

By adding remidhum: just after version= fixes the problem.

https://www.cyberbotics.com/doc/automobile/buildings?version=remidhum:doc-automobile-objects

User Guide 'Sample Webots Applications' chapter outdated

From @DavidMansolino on January 27, 2016 8:49

The user guide Sample Webots Applications (http://www.cyberbotics.com/guide/sample-webots-applications.php) chapter is largely outdated, a large number of samples are not included. Maybe once the new documentation system will be working it will be good to refactore it (add missing samples, replace pictures by x3d models /animations, etc.).

Samples (should be renamed Demos):

  • missing anaglyph
  • missing uneven_terrain
  • order should be checked (should be order alphabetically to match order in the 'Open Sample World' window)

Devices:

  • missing camera_auto_focus
  • missing camera_compositors
  • missing camera_noise_mask
  • missing display
  • missing force3d_sensor
  • missing gyro
  • missing hokuyo
  • missing inertial_unit
  • missing laser_pointer
  • missing lidar
  • missing position_sensor
  • missing propeller
  • missing receiver_noise
  • missing sick
  • missing spherical_camera
  • missing supervisor
  • missing track

Howto:

  • missing asymmetric_friction1
  • missing asymmetric_friction2
  • missing center_of_mass
  • missing contact_points
  • missing cylinder_stack
  • missing four_wheels
  • missing gui_tracker
  • missing omni_wheels
  • missing passive_dynamic_walker
  • missing pedal racer
  • missing rope
  • missing sick_terrain_scanning
  • supervisor should be renamed soccer_demo
  • missing vision
  • missing ziegler_nichols

Geometries:

  • missing capsule
  • missing extended_solids
  • missing extrusion
  • missing floating_geometries
  • missing high_resolution_indexedfaceset
  • missing textured_boxes
  • missing textured_proto_shapes

Missing environments category:

  • indoor/apartment
  • indoor/kitchen
  • indoor/spinning_top (is this really the right location for this sample?)

The mybot directory is missing and seems redundant with the devices category.

The Real Robots part should be updated and is somehow redundant with the Robots chapter (http://www.cyberbotics.com/guide/robots.php).

Copied from original issue: omichel/webots#3437

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.